mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
bdaa430205
Changes: https://www.jetbrains.com/idea/whatsnew/#v20201-apr-9 PR: 245708 Submitted by: Dmitry Wagin <dmitry.wagin@ya.ru> Approved by: Andrey Cherkashin <andoriyu@gmail.com> (maintainer)
75 lines
2.9 KiB
Makefile
75 lines
2.9 KiB
Makefile
# Created by: Andrey Cherkashin <andoriyu@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
# Based on the java/intellij port
|
|
|
|
PORTNAME= intellij-ultimate
|
|
PORTVERSION= 2020.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
|
|
|
|
USES= python:run shebangfix
|
|
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 8+
|
|
|
|
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
|
|
|
|
NO_ARCH= yes
|
|
NO_ARCH_IGNORE= libjansi.so
|
|
NO_BUILD= yes
|
|
|
|
WRKSRC= ${WRKDIR}/idea-IU-201.6668.121
|
|
|
|
SUB_FILES= idea idea.desktop pkg-message
|
|
CONFLICTS= intellij-20*
|
|
|
|
do-install:
|
|
# Linux/Windows/OS X only so remove them
|
|
@${RM} -r ${WRKSRC}/bin/fsnotifier \
|
|
${WRKSRC}/bin/fsnotifier-arm \
|
|
${WRKSRC}/bin/fsnotifier64 \
|
|
${WRKSRC}/lib/pty4j-native/ \
|
|
${WRKSRC}/plugins/android/lib/libwebp/ \
|
|
${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/
|
|
${MKDIR} ${STAGEDIR}${DATADIR}
|
|
@(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} \
|
|
"! -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
|
|
# 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
|
|
|
|
.include <bsd.port.mk>
|