# Created by: Pedro Giffuni # $FreeBSD: head/devel/jetbrains-webstorm/Makefile 568673 2021-03-17 16:23:44Z lwhsu $ PORTNAME= webstorm PORTVERSION= 2020.3.3 CATEGORIES= devel java MASTER_SITES= https://download-cf.jetbrains.com/webstorm/ PKGNAMEPREFIX= jetbrains- DISTNAME= WebStorm-${PORTVERSION} DIST_SUBDIR= jetbrains MAINTAINER= dmitry.wagin@ya.ru COMMENT= JetBrains JavaScript IDE LICENSE= IntelliJ-WebStorm 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 NO_ARCH= yes NO_BUILD= yes SUB_FILES= ${PORTNAME} ${PORTNAME}.desktop pkg-message WRKSRC= ${WRKDIR}/WebStorm-203.7717.59 do-install: # Initial JDK 15+ support @${REINPLACE_CMD} '/UseConcMarkSweepGC/d' ${WRKSRC}/bin/${PORTNAME}.vmoptions @${REINPLACE_CMD} '/UseConcMarkSweepGC/d' ${WRKSRC}/bin/${PORTNAME}64.vmoptions # Linux/Windows/OS X only so remove them @${RM} -r \ ${WRKSRC}/bin/fsnotifier \ ${WRKSRC}/bin/fsnotifier-arm \ ${WRKSRC}/bin/fsnotifier64 \ ${WRKSRC}/jbr \ ${WRKSRC}/jre64 \ ${WRKSRC}/lib/pty4j-native \ ${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_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} ${INSTALL_MAN} ${FILESDIR}/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/man/man1 ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.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 .include