# Created by: Andrey Cherkashin # $FreeBSD: head/java/intellij-ultimate/Makefile 566830 2021-03-01 07:53:45Z fernape $ # Based on the java/intellij port PORTNAME= intellij-ultimate PORTVERSION= 2020.3.2 PORTREVISION= 1 CATEGORIES= java devel MASTER_SITES= https://download-cf.jetbrains.com/idea/ DISTNAME= ideaIU-${PORTVERSION}-no-jbr DIST_SUBDIR= jetbrains MAINTAINER= andoriyu@gmail.com COMMENT= IntelliJ IDEA Ultimate Edition LICENSE= IntelliJ-Ultimate LICENSE_NAME= Subscription license agreement for business and organizations 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.11.4:java/intellij-pty4j \ lsof:sysutils/lsof USES= python:run shebangfix USE_JAVA= yes JAVA_VERSION= 11+ SHEBANG_FILES= bin/printenv.py bin/restart.py \ plugins/spy-js/server/node_modules/node-uuid/benchmark/bench.sh \ plugins/spy-js/server/proxy-nix.sh \ plugins/spy-js/server/proxy-osx.sh CONFLICTS= intellij-20* NO_ARCH= yes NO_ARCH_IGNORE= libjansi.so NO_BUILD= yes SUB_FILES= idea idea.desktop pkg-message WRKSRC= ${WRKDIR}/idea-IU-203.7148.57 do-install: # Initial JDK 15+ support @${REINPLACE_CMD} '/UseConcMarkSweepGC/d' ${WRKSRC}/bin/idea.vmoptions @${REINPLACE_CMD} '/UseConcMarkSweepGC/d' ${WRKSRC}/bin/idea64.vmoptions # Linux/Windows/OS X only so remove them @${RM} -r \ ${WRKSRC}/bin/fsnotifier \ ${WRKSRC}/bin/fsnotifier64 \ ${WRKSRC}/lib/pty4j-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/ \ ${WRKSRC}/plugins/webp/lib/libwebp/ ${MKDIR} ${STAGEDIR}${DATADIR} @(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} \ "! -name *\.bak ! -name *\.so ! -name *\.dll ! -name *\.dylib ! -name *\.pdb ! -name *\.sh") @(cd ${WRKSRC} && ${COPYTREE_BIN} . ${STAGEDIR}${DATADIR} "-name *\.sh") ${INSTALL_LIB} ${WRKSRC}/plugins/maven/lib/maven3/lib/jansi-native/freebsd32/libjansi.so \ ${STAGEDIR}${DATADIR}/plugins/maven/lib/maven3/lib/jansi-native/freebsd32/ ${INSTALL_LIB} ${WRKSRC}/plugins/maven/lib/maven3/lib/jansi-native/freebsd64/libjansi.so \ ${STAGEDIR}${DATADIR}/plugins/maven/lib/maven3/lib/jansi-native/freebsd64/ ${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 # Use pty4j replacement provided by java/intellij-pty4j ${LN} -sf ../../../intellij/lib/libpty ${STAGEDIR}${DATADIR}/lib/pty4j-native # Fix "Typeahead timeout is exceeded" error ${ECHO} "action.aware.typeAhead=false" >> ${STAGEDIR}${DATADIR}/bin/idea.properties .include