Skip to content

Commit

Permalink
devel/jetbrains-webstorm: Fixed pseudo terminal support
Browse files Browse the repository at this point in the history
PR:		268155
  • Loading branch information
dwagin authored and yzgyyang committed Dec 7, 2022
1 parent 3a79bfc commit 54d9137
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
16 changes: 14 additions & 2 deletions devel/jetbrains-webstorm/Makefile
@@ -1,5 +1,6 @@
PORTNAME= webstorm
PORTVERSION= 2022.3
PORTREVISION= 1
CATEGORIES= devel java
MASTER_SITES= https://download-cdn.jetbrains.com/webstorm/
PKGNAMEPREFIX= jetbrains-
Expand All @@ -15,7 +16,9 @@ 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

BUILD_DEPENDS= jna>0:devel/jna
RUN_DEPENDS= intellij-fsnotifier>0:java/intellij-fsnotifier \
jetbrains-pty4j>=0.12.10:devel/jetbrains-pty4j \
lsof:sysutils/lsof

USES= cpe python:run shebangfix
Expand All @@ -27,6 +30,7 @@ JAVA_VERSION= 17+
SHEBANG_FILES= bin/restart.py

NO_ARCH= yes
NO_ARCH_IGNORE= libjnidispatch.so
NO_BUILD= yes
SUB_FILES= ${PORTNAME} ${PORTNAME}.desktop pkg-message

Expand All @@ -42,19 +46,27 @@ do-install:
${WRKSRC}/bin/repair \
${WRKSRC}/jbr \
${WRKSRC}/jre64 \
${WRKSRC}/lib/pty4j-native \
${WRKSRC}/lib/pty4j \
${WRKSRC}/plugins/cwm-plugin \
${WRKSRC}/plugins/gateway-plugin/lib/remote-dev-workers \
${WRKSRC}/plugins/performanceTesting \
${WRKSRC}/plugins/remote-dev-server \
${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")
"! -name *\.bak ! -name *\.so ! -name *\.dll ! -name *\.dylib ! -name *\.pdb ! -name *\.sh ! -name *\.exe")
@(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
# Install FreeBSD native lib provided by devel/jna
@${MKDIR} ${WRKDIR}/jna
@(cd ${WRKDIR}/jna && ${JAR} xf ${JAVAJARDIR}/jna.jar com/sun/jna/freebsd-x86-64/libjnidispatch.so)
${MKDIR} ${STAGEDIR}${DATADIR}/lib/jna/amd64
${INSTALL_LIB} ${WRKDIR}/jna/com/sun/jna/freebsd-x86-64/libjnidispatch.so ${STAGEDIR}${DATADIR}/lib/jna/amd64/
# Use pty4j replacement provided by devel/jetbrains-pty4j
${LN} -sf ../../../lib/pty4j ${STAGEDIR}${DATADIR}/lib/pty4j

.include <bsd.port.mk>
10 changes: 2 additions & 8 deletions devel/jetbrains-webstorm/pkg-plist
Expand Up @@ -43,11 +43,13 @@ share/applications/webstorm.desktop
%%DATADIR%%/lib/intellij-coverage-agent-1.0.682.jar
%%DATADIR%%/lib/intellij-test-discovery.jar
%%DATADIR%%/lib/jetbrains-annotations.jar
%%DATADIR%%/lib/jna/amd64/libjnidispatch.so
%%DATADIR%%/lib/jps-model.jar
%%DATADIR%%/lib/jsch-agent.jar
%%DATADIR%%/lib/platform-objectSerializer-annotations.jar
%%DATADIR%%/lib/platform-statistics-devkit.jar
%%DATADIR%%/lib/protobuf.jar
%%DATADIR%%/lib/pty4j
%%DATADIR%%/lib/rd.jar
%%DATADIR%%/lib/stats.jar
%%DATADIR%%/lib/util.jar
Expand Down Expand Up @@ -100,12 +102,6 @@ share/applications/webstorm.desktop
%%DATADIR%%/plugins/gateway-plugin/lib/gateway-plugin.jar
%%DATADIR%%/plugins/gateway-plugin/lib/gateway-standalone/gateway.core.jar
%%DATADIR%%/plugins/gateway-plugin/lib/gateway-standalone/gateway.jar
%%DATADIR%%/plugins/gateway-plugin/lib/remote-dev-workers/remote-dev-worker-darwin-amd64
%%DATADIR%%/plugins/gateway-plugin/lib/remote-dev-workers/remote-dev-worker-darwin-arm64
%%DATADIR%%/plugins/gateway-plugin/lib/remote-dev-workers/remote-dev-worker-linux-amd64
%%DATADIR%%/plugins/gateway-plugin/lib/remote-dev-workers/remote-dev-worker-linux-arm64
%%DATADIR%%/plugins/gateway-plugin/lib/remote-dev-workers/remote-dev-worker-windows-amd64.exe
%%DATADIR%%/plugins/gateway-plugin/lib/remote-dev-workers/remote-dev-worker-windows-arm64.exe
%%DATADIR%%/plugins/gateway-plugin/resources/gateway.vmoptions
%%DATADIR%%/plugins/gateway-terminal/lib/gateway-terminal.jar
%%DATADIR%%/plugins/gherkin/lib/gherkin.jar
Expand Down Expand Up @@ -810,5 +806,3 @@ share/applications/webstorm.desktop
%%DATADIR%%/plugins/xml-refactoring/lib/xml-refactoring.jar
%%DATADIR%%/plugins/yaml/lib/yaml.jar
%%DATADIR%%/product-info.json
@dir %%DATADIR%%/lib/jna/amd64
@dir %%DATADIR%%/lib/pty4j/linux/x86-64

0 comments on commit 54d9137

Please sign in to comment.