PORTNAME= pycharm-ce DISTVERSION= 2024.3 CATEGORIES= devel java python MASTER_SITES= https://download.jetbrains.com/python/ \ http://download.jetbrains.com/python/ DISTNAME= pycharm-community-${PORTVERSION} MAINTAINER= jonc@chen.org.nz COMMENT= JetBrains PyCharm Community Edition IDE WWW= https://www.jetbrains.com/pycharm/ LICENSE= APACHE20 BUILD_DEPENDS= jna>0:devel/jna RUN_DEPENDS= intellij-fsnotifier>0:java/intellij-fsnotifier \ jetbrains-pty4j>=0.12.13:devel/jetbrains-pty4j \ jetbrains-restarter>=233.11799.241:devel/jetbrains-restarter \ jetbrains-sqlite>=232.8660.185:devel/jetbrains-sqlite USES= desktop-file-utils python:run shebangfix USE_JAVA= yes JAVA_VERSION= 17+ SHEBANG_FILES= plugins/python-ce/helpers/pycodestyle-2.10.0.py \ plugins/python-ce/helpers/pycodestyle.py \ plugins/python-ce/helpers/py3only/docutils/utils/math/math2html.py \ plugins/python-ce/helpers/py3only/docutils/utils/smartquotes.py \ plugins/python-ce/helpers/py3only/docutils/writers/odf_odt/prepstyles.py \ plugins/python-ce/helpers/typeshed/scripts/sync_tensorflow_protobuf_stubs.sh \ plugins/python-ce/helpers/typeshed/scripts/sync_s2clientprotocol_protobuf_stubs.sh # Ignore: # - non-native binaries # - the bundled native Pty4J support libraries, they are replaced by java/jetbrains-pty4j # - bundled linux-only JRE EXTRACT_AFTER_ARGS= --exclude ${DISTNAME}/bin/*fsnotifier* \ --exclude ${DISTNAME}/bin/*.so \ --exclude ${DISTNAME}/bin/pycharm \ --exclude ${DISTNAME}/bin/repair \ --exclude ${DISTNAME}/bin/restarter \ --exclude ${DISTNAME}/lib/*.so \ --exclude ${DISTNAME}/plugins/*.so \ --exclude ${DISTNAME}/plugins/cwm-plugin/quiche-native \ --exclude ${DISTNAME}/plugins/python-ce/helpers/pydev/pydevd_attach_to_process \ --exclude ${DISTNAME}/lib/pty4j \ --exclude ${DISTNAME}/jbr \ --no-same-owner --no-same-permissions NO_BUILD= yes .include "${.CURDIR}/../../java/intellij/common.mk" SUB_FILES+= ${PORTNAME}.desktop pkg-message pycharm SUB_LIST+= IDEA_HOME=${IDEA_HOME} post-extract: @${FIND} ${WRKSRC}/lib ${WRKSRC}/plugins -type d -empty -delete # TODO: Remove and enable fsnotifier when devel/libinotify is fixed # Disable filewatcher warning message on IDEA startup ${ECHO} "idea.filewatcher.disabled=true" >> ${WRKSRC}/bin/idea.properties # Use fsnotifier replacement provided by java/intellij-fsnotifier ${ECHO} "idea.filewatcher.executable.path=${IDEA_HOME}/bin/fsnotifier" >> ${WRKSRC}/bin/idea.properties do-install: @${MKDIR} ${STAGEDIR}${DATADIR} cd "${WRKSRC}" && ${FIND} . | ${CPIO} -pdum -R root:wheel ${STAGEDIR}${DATADIR} ${INSTALL_SCRIPT} ${WRKDIR}/pycharm ${STAGEDIR}${PREFIX}/bin/${PORTNAME} ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR} # 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 ${MKDIR} ${STAGEDIR}${DATADIR}/lib/pty4j/freebsd/x86-64 ${LN} -sf ../../../../../jetbrains/pty4j/amd64/libpty.so ${STAGEDIR}${DATADIR}/lib/pty4j/freebsd/x86-64/libpty.so # Use restarter provided by devel/jetbrains-restarter ${LN} -sf ../../jetbrains/restarter/restarter ${STAGEDIR}${DATADIR}/bin/restarter # Use sqlite replacement provided by devel/jetbrains-sqlite ${MKDIR} ${STAGEDIR}${DATADIR}/lib/native/linux-x86_64 ${LN} -sf ../../../../jetbrains/sqlite/amd64/libsqliteij.so ${STAGEDIR}${DATADIR}/lib/native/linux-x86_64/libsqliteij.so .include