Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Aug 2019 09:08:53 +0000 (UTC)
From:      Alex Dupre <ale@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r509636 - in head/java/intellij-ultimate: . files
Message-ID:  <201908230908.x7N98r6r041951@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ale
Date: Fri Aug 23 09:08:52 2019
New Revision: 509636
URL: https://svnweb.freebsd.org/changeset/ports/509636

Log:
  Various improvements:
  - remove unneeded intellij-pty4j dependency
  - install native library for jansi
  - fix the "Typeahead timeout is exceeded" error
  - general cleanup
  
  PR:		239787

Modified:
  head/java/intellij-ultimate/Makefile
  head/java/intellij-ultimate/files/pkg-message.in
  head/java/intellij-ultimate/pkg-plist

Modified: head/java/intellij-ultimate/Makefile
==============================================================================
--- head/java/intellij-ultimate/Makefile	Fri Aug 23 09:02:38 2019	(r509635)
+++ head/java/intellij-ultimate/Makefile	Fri Aug 23 09:08:52 2019	(r509636)
@@ -5,6 +5,7 @@
 
 PORTNAME=	intellij-ultimate
 PORTVERSION=	2019.2
+PORTREVISION=	1
 CATEGORIES=	java devel
 MASTER_SITES=	https://download-cf.jetbrains.com/idea/
 DISTNAME=	ideaIU-${PORTVERSION}-no-jbr
@@ -18,13 +19,12 @@ LICENSE_NAME=	Subscription license agreement for busin
 LICENSE_TEXT=	See: https://www.jetbrains.com/store/license.html
 LICENSE_PERMS=	dist-mirror pkg-mirror auto-accept
 
-RUN_DEPENDS=	intellij-fsnotifier>0:java/intellij-fsnotifier \
-		intellij-pty4j>0:java/intellij-pty4j
+RUN_DEPENDS=	intellij-fsnotifier>0:java/intellij-fsnotifier
 
 USES=		python:run shebangfix
 
 USE_JAVA=	yes
-JAVA_VERSION=	1.8+
+JAVA_VERSION=	8+
 
 SHEBANG_FILES=	bin/printenv.py bin/restart.py \
 		plugins/spy-js/server/node_modules/node-uuid/benchmark/bench.sh \
@@ -32,12 +32,12 @@ SHEBANG_FILES=	bin/printenv.py bin/restart.py \
 		plugins/spy-js/server/proxy-osx.sh
 
 NO_ARCH=	yes
+NO_ARCH_IGNORE=	libjansi.so
 NO_BUILD=	yes
 
 WRKSRC=		${WRKDIR}/idea-IU-192.5728.98
 
 SUB_FILES=	idea idea.desktop pkg-message
-SUB_LIST=	DATADIR=${DATADIR}
 CONFLICTS=	intellij-20*
 
 do-install:
@@ -45,23 +45,30 @@ do-install:
 	@${RM} -r ${WRKSRC}/bin/fsnotifier \
 		${WRKSRC}/bin/fsnotifier-arm \
 		${WRKSRC}/bin/fsnotifier64 \
+		${WRKSRC}/bin/libdbm64.so \
+		${WRKSRC}/lib/pty4j-native/ \
 		${WRKSRC}/plugins/android/lib/libwebp \
-		${WRKSRC}/plugins/maven/lib/maven3/lib/jansi-native \
+		${WRKSRC}/plugins/maven/lib/maven3/lib/jansi-native/linux32/ \
+		${WRKSRC}/plugins/maven/lib/maven3/lib/jansi-native/linux64/ \
+		${WRKSRC}/plugins/maven/lib/maven3/lib/jansi-native/osx/ \
+		${WRKSRC}/plugins/maven/lib/maven3/lib/jansi-native/windows32/ \
+		${WRKSRC}/plugins/maven/lib/maven3/lib/jansi-native/windows64/ \
 		${WRKSRC}/plugins/performanceTesting/bin
-# Remove the bundled native Pty4J support libraries, they are replaced
-# by java/intellij-pty4j
-	@${RM} -r ${WRKSRC}/lib/pty4j-native
-# Remove bundled linux JetBrains Runtime and OpenJDK
-	@${RM} -r ${WRKSRC}/jbr ${WRKSRC}/jre64
 	${MKDIR} ${STAGEDIR}${DATADIR}
 	@(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} \
 		"! -name *\.so ! -name *\.dll ! -name *\.dylib ! -name *\.pdb ! -name *\.sh")
+	@(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} "-name *\.so")
+	@${STRIP_CMD} \
+		${STAGEDIR}${DATADIR}/plugins/maven/lib/maven3/lib/jansi-native/freebsd32/libjansi.so \
+		${STAGEDIR}${DATADIR}/plugins/maven/lib/maven3/lib/jansi-native/freebsd64/libjansi.so
 	@(cd ${WRKSRC} && ${COPYTREE_BIN} . ${STAGEDIR}${DATADIR} "-name *\.sh")
 	${INSTALL_SCRIPT} ${WRKDIR}/idea ${STAGEDIR}${PREFIX}/bin/idea
 	${INSTALL_MAN} ${FILESDIR}/idea.1 ${STAGEDIR}${PREFIX}/man/man1
 	${INSTALL_DATA} ${WRKDIR}/idea.desktop ${STAGEDIR}${PREFIX}/share/applications/
 # Use fsnotifier replacement provided by java/intellij-fsnotifier
 	${ECHO} "idea.filewatcher.executable.path=${PREFIX}/intellij/bin/fsnotifier" >> ${STAGEDIR}${DATADIR}/bin/idea.properties
+# Fix "Typeahead timeout is exceeded" error
+	${ECHO} "action.aware.typeAhead=false" >> ${STAGEDIR}${DATADIR}/bin/idea.properties
 # Fix slow render
 	${ECHO} "-Dsun.java2d.xrender=false" >> ${STAGEDIR}${DATADIR}/bin/idea.vmoptions
 	${ECHO} "-Dsun.java2d.xrender=false" >> ${STAGEDIR}${DATADIR}/bin/idea64.vmoptions

Modified: head/java/intellij-ultimate/files/pkg-message.in
==============================================================================
--- head/java/intellij-ultimate/files/pkg-message.in	Fri Aug 23 09:02:38 2019	(r509635)
+++ head/java/intellij-ultimate/files/pkg-message.in	Fri Aug 23 09:08:52 2019	(r509636)
@@ -3,8 +3,8 @@
   message: <<EOM
 There is a native (faster) file watching support backed by kqueue which is
 enabled by default.  If you encounter problems with watching large
-trees, you can disable it by appending the following property into
-%%DATADIR%%/bin/idea.properties:
+trees, you can disable it by adding the following property via the menu
+entry Help -> Edit Custom Properties...
 
       idea.filewatcher.disabled=true
 EOM

Modified: head/java/intellij-ultimate/pkg-plist
==============================================================================
--- head/java/intellij-ultimate/pkg-plist	Fri Aug 23 09:02:38 2019	(r509635)
+++ head/java/intellij-ultimate/pkg-plist	Fri Aug 23 09:08:52 2019	(r509636)
@@ -10303,6 +10303,9 @@ share/applications/idea.desktop
 %%DATADIR%%/plugins/maven/lib/maven3/lib/guice-4.2.1-no_aop.jar
 %%DATADIR%%/plugins/maven/lib/maven3/lib/j2objc-annotations-1.1.jar
 %%DATADIR%%/plugins/maven/lib/maven3/lib/jansi-1.17.1.jar
+%%DATADIR%%/plugins/maven/lib/maven3/lib/jansi-native/README.txt
+%%DATADIR%%/plugins/maven/lib/maven3/lib/jansi-native/freebsd32/libjansi.so
+%%DATADIR%%/plugins/maven/lib/maven3/lib/jansi-native/freebsd64/libjansi.so
 %%DATADIR%%/plugins/maven/lib/maven3/lib/javax.inject-1.jar
 %%DATADIR%%/plugins/maven/lib/maven3/lib/jcl-over-slf4j-1.7.25.jar
 %%DATADIR%%/plugins/maven/lib/maven3/lib/jcl-over-slf4j.license



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908230908.x7N98r6r041951>