Skip to content

Commit

Permalink
devel/pycharm-ce: Update to 2023.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
metalefty committed Jan 7, 2024
1 parent 7757924 commit 829793b
Show file tree
Hide file tree
Showing 3 changed files with 1,641 additions and 296 deletions.
30 changes: 20 additions & 10 deletions devel/pycharm-ce/Makefile
@@ -1,5 +1,5 @@
PORTNAME= pycharm-ce
DISTVERSION= 2023.2.5
DISTVERSION= 2023.3.2
CATEGORIES= devel java python
MASTER_SITES= https://download.jetbrains.com/python/ \
http://download.jetbrains.com/python/
Expand All @@ -11,18 +11,18 @@ WWW= https://www.jetbrains.com/pycharm/

LICENSE= APACHE20

BUILD_DEPENDS= jna>0:devel/jna
RUN_DEPENDS= intellij-fsnotifier>0:java/intellij-fsnotifier \
intellij-pty4j>0:java/intellij-pty4j
jetbrains-pty4j>=0.12.13:devel/jetbrains-pty4j \
jetbrains-sqlite>=232.8660.185:devel/jetbrains-sqlite

USES= python:run shebangfix
USE_JAVA= yes
JAVA_VERSION= 17+
SHEBANG_FILES= bin/restart.py \
plugins/python-ce/helpers/pycodestyle.py \
plugins/python-ce/helpers/pycodestyle-2.10.0.py
SHEBANG_FILES= plugins/python-ce/helpers/pycodestyle.py \
plugins/python-ce/helpers/pycodestyle-2.10.0.py \
plugins/python-ce/helpers/typeshed/scripts/sync_tensorflow_protobuf_stubs.sh


NO_ARCH= yes
NO_BUILD= yes

.include "${.CURDIR}/../../java/intellij/common.mk"
Expand All @@ -32,15 +32,14 @@ SUB_LIST+= IDEA_HOME=${IDEA_HOME}

# Remove non-native binaries
post-extract:
@${RM} ${WRKSRC}/bin/*fsnotifier* ${WRKSRC}/bin/*.so ${WRKSRC}/bin/repair
@${RM} ${WRKSRC}/bin/*fsnotifier* ${WRKSRC}/bin/*.so ${WRKSRC}/bin/repair ${WRKSRC}/bin/restarter
@${FIND} ${WRKSRC}/lib ${WRKSRC}/plugins -name '*.so' -delete
@${FIND} ${WRKSRC}/lib ${WRKSRC}/plugins -type d -empty -delete
@${RM} -r ${WRKSRC}/plugins/cwm-plugin/quiche-native
@${RM} -r ${WRKSRC}/plugins/python-ce/helpers/pydev/pydevd_attach_to_process
# Remove the bundled native Pty4J support libraries, they are replaced
# by java/intellij-pty4j
@${RM} -r ${WRKSRC}/lib/pty4j-native
@${RM} ${WRKSRC}/lib/pty4j-0.5.jar
@${RM} -r ${WRKSRC}/lib/pty4j
# Remove bundled linux-only JRE
@${RM} -r ${WRKSRC}/jbr
# TODO: Remove and enable fsnotifier when devel/libinotify is fixed
Expand All @@ -54,5 +53,16 @@ do-install:
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 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 <bsd.port.mk>
6 changes: 3 additions & 3 deletions devel/pycharm-ce/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1700602584
SHA256 (pycharm-community-2023.2.5.tar.gz) = 3a35e0b2245e6ecad5dc05b0fc81cf36cb4f5fe0bc987c8559e04c808de9d072
SIZE (pycharm-community-2023.2.5.tar.gz) = 588548535
TIMESTAMP = 1704229387
SHA256 (pycharm-community-2023.3.2.tar.gz) = 1a4a95648c68890f2f9eb41cbb9eb041dcd08388c75a91298dfbe73f83a858c8
SIZE (pycharm-community-2023.3.2.tar.gz) = 610736516

0 comments on commit 829793b

Please sign in to comment.