aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-05-28 10:01:00 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-05-28 10:21:37 +0000
commit7d76cc89e62214bec41010f39d14d678190ea6d4 (patch)
treed38d190f4668f095eb587a4e457ecb2440b7b762
parentc00fd3f2ccd461e8499b0e93d384f2e7daf950da (diff)
downloadports-7d76cc89e62214bec41010f39d14d678190ea6d4.tar.gz
ports-7d76cc89e62214bec41010f39d14d678190ea6d4.zip
x11-fonts/py-cffsubr: Adjust 5a1b97e112821ed12840f97e1b6a68e84570da15
-rw-r--r--x11-fonts/py-cffsubr/Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/x11-fonts/py-cffsubr/Makefile b/x11-fonts/py-cffsubr/Makefile
index b192826ba70e..bdd725366876 100644
--- a/x11-fonts/py-cffsubr/Makefile
+++ b/x11-fonts/py-cffsubr/Makefile
@@ -21,13 +21,18 @@ RUN_DEPENDS= tx:x11-fonts/afdko \
USES= python
USE_PYTHON= autoplist concurrent pep517
-# Remove bundled libraries
-EXTRACT_AFTER_ARGS= --exclude ${DISTNAME}/external \
- --no-same-owner --no-same-permissions
-
NO_ARCH= yes
PLIST_FILES= ${PYTHON_SITELIBDIR}/cffsubr/tx
+# Clean up bundled libraries
+.if !defined(MAINTAINER_MODE)
+EXTRACT_AFTER_ARGS= --exclude ${DISTNAME}/external \
+ --no-same-owner --no-same-permissions
+.else
+post-patch:
+ @${RM} -r ${WRKSRC}/external/
+.endif
+
post-install:
${LN} -s ${LOCALBASE}/bin/tx ${STAGEDIR}${PYTHON_SITELIBDIR}/cffsubr/tx