Changeset View
Changeset View
Standalone View
Standalone View
java/jetbrains-phpstorm/Makefile
# Created by: Pedro Giffuni <pfg@FreeBSD.org> | |||||
# $FreeBSD$ | |||||
PORTNAME= phpstorm | |||||
PORTVERSION= 2018.3.1 | |||||
CATEGORIES= java devel | |||||
MASTER_SITES= https://download.jetbrains.com/webide/ \ | |||||
http://download.jetbrains.com/webide/ | |||||
PKGNAMEPREFIX= jetbrains- | |||||
DISTNAME= PhpStorm-${PORTVERSION} | |||||
MAINTAINER= pfg@FreeBSD.org | |||||
COMMENT= JetBrains PhpStorm IDE | |||||
LICENSE= IntelliJ-PhpStorm | |||||
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:java/intellij-pty4j | |||||
USES= python:run shebangfix | |||||
USE_JAVA= yes | |||||
JAVA_VERSION= 1.8+ | |||||
SHEBANG_FILES= bin/printenv.py bin/restart.py | |||||
NO_ARCH= yes | |||||
NO_BUILD= yes | |||||
WRKSRC= ${WRKDIR}/PhpStorm-183.4588.67 | |||||
.include "${.CURDIR}/../intellij/common.mk" | |||||
mat: Any reason you are creating a new variable instead of using `WRKSRC` everywhere? | |||||
Done Inline ActionsWRKDIST came from the original intellij-Rubymine port on which this was based. I later noted the port wanted WRKSRC and added it. I will try defining only WRKSRC. pfg: WRKDIST came from the original intellij-Rubymine port on which this was based. I later noted… | |||||
PLIST_SUB+= DATADIR=${DATADIR} | |||||
SUB_FILES+= phpstorm phpstorm.desktop pkg-message | |||||
SUB_LIST+= DATADIR=${DATADIR} | |||||
do-install: | |||||
${MKDIR} ${STAGEDIR}${DATADIR} | |||||
@${TAR} -czf - -C ${WRKSRC} . | ${TAR} xzf - -C ${STAGEDIR}${DATADIR} | |||||
# Linux/Windows/OS X only so remove them | |||||
@${RM} ${STAGEDIR}${DATADIR}/bin/fsnotifier \ | |||||
${STAGEDIR}${DATADIR}/bin/fsnotifier-arm \ | |||||
${STAGEDIR}${DATADIR}/bin/fsnotifier64 \ | |||||
${STAGEDIR}${DATADIR}/bin/libbreakgen.so \ | |||||
${STAGEDIR}${DATADIR}/bin/libbreakgen64.so \ | |||||
${STAGEDIR}${DATADIR}/plugins/gradle/lib/native-platform-linux-amd64-0.10.jar \ | |||||
${STAGEDIR}${DATADIR}/plugins/gradle/lib/native-platform-linux-i386-0.10.jar \ | |||||
${STAGEDIR}${DATADIR}/plugins/gradle/lib/native-platform-osx-amd64-0.10.jar \ | |||||
${STAGEDIR}${DATADIR}/plugins/gradle/lib/native-platform-osx-i386-0.10.jar \ | |||||
${STAGEDIR}${DATADIR}/plugins/gradle/lib/native-platform-windows-amd64-0.10.jar \ | |||||
${STAGEDIR}${DATADIR}/plugins/gradle/lib/native-platform-windows-i386-0.10.jar \ | |||||
${STAGEDIR}${DATADIR}/bin/libyjpagent-linux.so \ | |||||
${STAGEDIR}${DATADIR}/bin/libyjpagent-linux64.so | |||||
@${RM} -r ${STAGEDIR}${DATADIR}/plugins/tfsIntegration/lib/native/hpux/ \ | |||||
${STAGEDIR}${DATADIR}/plugins/tfsIntegration/lib/native/linux/ \ | |||||
${STAGEDIR}${DATADIR}/plugins/tfsIntegration/lib/native/macosx/ \ | |||||
${STAGEDIR}${DATADIR}/plugins/tfsIntegration/lib/native/solaris/ \ | |||||
${STAGEDIR}${DATADIR}/plugins/tfsIntegration/lib/native/win32/ \ | |||||
${STAGEDIR}${DATADIR}/plugins/tfsIntegration/lib/native/aix/ | |||||
# Remove the bundled native Pty4J support libraries, they are replaced | |||||
# by java/intellij-pty4j | |||||
@${RM} -r ${STAGEDIR}${DATADIR}/lib/libpty | |||||
@${RM} -r ${STAGEDIR}${DATADIR}/jre/jre | |||||
@${RM} ${STAGEDIR}${DATADIR}/lib/pty4j-0.7.1.jar | |||||
${INSTALL_SCRIPT} ${WRKDIR}/phpstorm ${STAGEDIR}${PREFIX}/bin/phpstorm | |||||
${INSTALL_MAN} ${FILESDIR}/phpstorm.1 ${STAGEDIR}${PREFIX}/man/man1 | |||||
${INSTALL_DATA} ${WRKDIR}/phpstorm.desktop ${STAGEDIR}${PREFIX}/share/applications/ | |||||
cd ${WRKSRC}/lib && ${JAVA_HOME}/bin/jar xf icons.jar | |||||
${INSTALL_DATA} ${WRKSRC}/lib/icon.png ${STAGEDIR}${DATADIR}/phpstorm.png | |||||
# Remove bundled linux OpenJDK and DroidSerif fonts | |||||
@${RM} -r ${STAGEDIR}${DATADIR}/jre64 | |||||
# TODO: Remove and enable fsnotifier when devel/libinotify is fixed | |||||
# Disable filewatcher warning message on IDEA startup | |||||
${ECHO} "idea.filewatcher.disabled=true" >> ${STAGEDIR}${DATADIR}/bin/idea.properties | |||||
# Use fsnotifier replacement provided by java/intellij-fsnotifier | |||||
# ${ECHO} "idea.filewatcher.executable.path=${DATADIR}/bin/fsnotifier" >> ${STAGEDIR}${DATADIR}/bin/idea.properties | |||||
.include <bsd.port.mk> |
Any reason you are creating a new variable instead of using WRKSRC everywhere?