git: 5a1b97e11282 - main - x11-fonts/py-cffsubr: Convert post-patch to EXTRACT_AFTER_ARGS

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Mon, 20 May 2024 21:54:02 UTC
The branch main has been updated by diizzy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5a1b97e112821ed12840f97e1b6a68e84570da15

commit 5a1b97e112821ed12840f97e1b6a68e84570da15
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2024-05-20 21:28:07 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2024-05-20 21:53:51 +0000

    x11-fonts/py-cffsubr: Convert post-patch to EXTRACT_AFTER_ARGS
    
    Reduce I/O by not extract unnecessary files
    
    PR:             278746
    Approved by:    portmgr (maintainer timeout, 2+ weeks)
---
 x11-fonts/py-cffsubr/Makefile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/x11-fonts/py-cffsubr/Makefile b/x11-fonts/py-cffsubr/Makefile
index 8b1b87be4eca..b192826ba70e 100644
--- a/x11-fonts/py-cffsubr/Makefile
+++ b/x11-fonts/py-cffsubr/Makefile
@@ -21,13 +21,13 @@ 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
 
-post-patch:
-# Clean up bundled libraries
-	@${RM} -r ${WRKSRC}/external/
-
 post-install:
 	${LN} -s ${LOCALBASE}/bin/tx ${STAGEDIR}${PYTHON_SITELIBDIR}/cffsubr/tx