git: 7d76cc89e622 - main - x11-fonts/py-cffsubr: Adjust 5a1b97e112821ed12840f97e1b6a68e84570da15

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 28 May 2024 10:23:37 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7d76cc89e62214bec41010f39d14d678190ea6d4

commit 7d76cc89e62214bec41010f39d14d678190ea6d4
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-05-28 10:01:00 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-05-28 10:21:37 +0000

    x11-fonts/py-cffsubr: Adjust 5a1b97e112821ed12840f97e1b6a68e84570da15
---
 x11-fonts/py-cffsubr/Makefile | 13 +++++++++----
 1 file 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