610a06d010
Reported by: portscout Submitted by: Dmitry Wagin Approved by: thierry (mentor)
60 lines
2.1 KiB
Makefile
60 lines
2.1 KiB
Makefile
# Created by: Pedro Giffuni <pfg@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= phpstorm
|
|
PORTVERSION= 2019.1.2
|
|
CATEGORIES= devel java
|
|
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-191.7141.52
|
|
|
|
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/lib*.so
|
|
@${RM} ${STAGEDIR}${DATADIR}/plugins/performanceTesting/lib/lib*.so
|
|
# Remove the bundled native Pty4J support libraries, they are replaced
|
|
# by java/intellij-pty4j
|
|
@${RM} -r ${STAGEDIR}${DATADIR}/lib/pty4j-native
|
|
# Remove bundled linux OpenJDK and DroidSerif fonts
|
|
@${RM} -r ${STAGEDIR}${DATADIR}/jre64
|
|
${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
|
|
# Use fsnotifier replacement provided by java/intellij-fsnotifier
|
|
${ECHO} "idea.filewatcher.executable.path=${PREFIX}/intellij/bin/fsnotifier" >> ${STAGEDIR}${DATADIR}/bin/idea.properties
|
|
|
|
.include <bsd.port.mk>
|