Lines 1-8
Link Here
|
1 |
# Created by: Boris Samorodov <bsam@FreeBSD.org> |
1 |
# Created by: Boris Samorodov <bsam@FreeBSD.org> |
2 |
|
2 |
|
3 |
PORTNAME= pycharm-ce |
3 |
PORTNAME= pycharm-ce |
4 |
PORTVERSION= 2022.1 |
4 |
PORTVERSION= 2022.1.1 |
5 |
PORTREVISION= 1 |
|
|
6 |
CATEGORIES= devel java python |
5 |
CATEGORIES= devel java python |
7 |
MASTER_SITES= https://download.jetbrains.com/python/ \ |
6 |
MASTER_SITES= https://download.jetbrains.com/python/ \ |
8 |
http://download.jetbrains.com/python/ |
7 |
http://download.jetbrains.com/python/ |
Lines 30-56
NO_BUILD= yes
Link Here
|
30 |
SUB_FILES+= pkg-message pycharm ${PORTNAME}.desktop |
29 |
SUB_FILES+= pkg-message pycharm ${PORTNAME}.desktop |
31 |
SUB_LIST+= IDEA_HOME=${IDEA_HOME} |
30 |
SUB_LIST+= IDEA_HOME=${IDEA_HOME} |
32 |
|
31 |
|
33 |
do-install: |
32 |
# Remove non-native binaries |
34 |
@${MKDIR} ${STAGEDIR}${DATADIR} |
33 |
post-extract: |
35 |
@${TAR} -czf - -C ${WRKSRC} . | ${TAR} xzf - -C ${STAGEDIR}${DATADIR} |
34 |
@${RM} ${WRKSRC}/bin/*fsnotifier* ${WRKSRC}/bin/*.so ${WRKSRC}/bin/repair |
36 |
# Linux/Windows/OS X only so remove them |
35 |
@${FIND} ${WRKSRC}/plugins -name '*.so' -delete |
37 |
@${RM} ${STAGEDIR}${DATADIR}/bin/*fsnotifier* ${STAGEDIR}${DATADIR}/bin/*.so ${STAGEDIR}${DATADIR}/bin/repair |
36 |
@${RM} -r ${WRKSRC}/plugins/cwm-plugin/quiche-native |
38 |
@${FIND} ${STAGEDIR}${DATADIR}/plugins -name '*.so' -delete |
37 |
@${RM} -r ${WRKSRC}/plugins/python-ce/helpers/pydev/pydevd_attach_to_process |
39 |
@${RM} -r ${STAGEDIR}${DATADIR}/plugins/cwm-plugin/quiche-native |
|
|
40 |
# Remove the bundled native Pty4J support libraries, they are replaced |
38 |
# Remove the bundled native Pty4J support libraries, they are replaced |
41 |
# by java/intellij-pty4j |
39 |
# by java/intellij-pty4j |
42 |
@${RM} -r ${STAGEDIR}${DATADIR}/lib/pty4j-native |
40 |
@${RM} -r ${WRKSRC}/lib/pty4j-native |
|
|
41 |
@${RM} ${WRKSRC}/lib/pty4j-0.5.jar |
43 |
# Remove bundled linux-only JRE |
42 |
# Remove bundled linux-only JRE |
44 |
@${RM} -r ${STAGEDIR}${DATADIR}/jbr |
43 |
@${RM} -r ${WRKSRC}/jbr |
45 |
@${RM} -r ${STAGEDIR}${DATADIR}/plugins/python-ce/helpers/pydev/pydevd_attach_to_process |
|
|
46 |
@${RM} ${STAGEDIR}${DATADIR}/lib/pty4j-0.5.jar |
47 |
${INSTALL_SCRIPT} ${WRKDIR}/pycharm ${STAGEDIR}${PREFIX}/bin/${PORTNAME} |
48 |
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.desktop ${STAGEDIR}${PREFIX}/share/applications/ |
49 |
#cd ${WRKSRC}/lib && ${JAVA_HOME}/bin/jar xf icons.jar |
50 |
# TODO: Remove and enable fsnotifier when devel/libinotify is fixed |
44 |
# TODO: Remove and enable fsnotifier when devel/libinotify is fixed |
51 |
# Disable filewatcher warning message on IDEA startup |
45 |
# Disable filewatcher warning message on IDEA startup |
52 |
${ECHO} "idea.filewatcher.disabled=true" >> ${STAGEDIR}${DATADIR}/bin/idea.properties |
46 |
${ECHO} "idea.filewatcher.disabled=true" >> ${WRKSRC}/bin/idea.properties |
53 |
# Use fsnotifier replacement provided by java/intellij-fsnotifier |
47 |
# Use fsnotifier replacement provided by java/intellij-fsnotifier |
54 |
${ECHO} "idea.filewatcher.executable.path=${IDEA_HOME}/bin/fsnotifier" >> ${STAGEDIR}${DATADIR}/bin/idea.properties |
48 |
${ECHO} "idea.filewatcher.executable.path=${IDEA_HOME}/bin/fsnotifier" >> ${WRKSRC}/bin/idea.properties |
|
|
49 |
|
50 |
do-install: |
51 |
@${MKDIR} ${STAGEDIR}${DATADIR} |
52 |
cd "${WRKSRC}" && ${FIND} . | ${CPIO} -pdum -R root:wheel ${STAGEDIR}${DATADIR} |
53 |
${INSTALL_SCRIPT} ${WRKDIR}/pycharm ${STAGEDIR}${PREFIX}/bin/${PORTNAME} |
54 |
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR} |
55 |
|
55 |
|
56 |
.include <bsd.port.mk> |
56 |
.include <bsd.port.mk> |