aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Engberg <diizzy@FreeBSD.org>2024-05-06 20:02:58 +0000
committerDaniel Engberg <diizzy@FreeBSD.org>2024-05-06 20:08:41 +0000
commitdc99303b1691df946e9223cc9756e120e1ff38ec (patch)
tree352a151c57f5b3237829980f964a7b59ac7ca0cf
parentd02d0110f1d133f703f8b5649b7a0d11d7eb24f8 (diff)
downloadports-dc99303b1691df946e9223cc9756e120e1ff38ec.tar.gz
ports-dc99303b1691df946e9223cc9756e120e1ff38ec.zip
devel/pycharm-ce: Use EXTRACT_AFTER_ARGS
To decrease I/O load skip extracting files instead of removing after extraction PR: 278759 Reviewed by: Jonathan Chen <jonc@chen.org.nz> (maintainer, previous version)
-rw-r--r--devel/pycharm-ce/Makefile22
1 files changed, 14 insertions, 8 deletions
diff --git a/devel/pycharm-ce/Makefile b/devel/pycharm-ce/Makefile
index aaa306fd88b1..42bcd93e62ad 100644
--- a/devel/pycharm-ce/Makefile
+++ b/devel/pycharm-ce/Makefile
@@ -24,6 +24,20 @@ SHEBANG_FILES= plugins/python-ce/helpers/pycodestyle-2.10.0.py \
plugins/python-ce/helpers/pycodestyle.py \
plugins/python-ce/helpers/typeshed/scripts/sync_tensorflow_protobuf_stubs.sh
+# Remove the bundled native Pty4J support libraries, they are replaced by java/jetbrains-pty4j
+# Remove bundled linux-only JRE
+EXTRACT_AFTER_ARGS= --exclude ${DISTNAME}/bin/*fsnotifier* \
+ --exclude ${DISTNAME}/bin/*.so \
+ --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"
@@ -33,15 +47,7 @@ SUB_LIST+= IDEA_HOME=${IDEA_HOME}
# Remove non-native binaries
post-extract:
- @${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/jetbrains-pty4j
- @${RM} -r ${WRKSRC}/lib/pty4j
-# Remove bundled linux-only JRE
- @${RM} -r ${WRKSRC}/jbr
# 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