git: bdf3e90638a1 - main - emulators/playonbsd: Fix unwanted files in extract stage

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Thu, 12 Feb 2026 21:34:01 UTC
The branch main has been updated by eduardo:

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

commit bdf3e90638a15d7ba40a7c43bdd38fbf8f434fc3
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2026-02-12 21:30:01 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2026-02-12 21:33:44 +0000

    emulators/playonbsd: Fix unwanted files in extract stage
    
    Fix unwanted __pycache__ dir in extract stage instead of deletion in post
    install.
    
    PR:             287658
    Reported by:    diizzy
---
 emulators/playonbsd/Makefile | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/emulators/playonbsd/Makefile b/emulators/playonbsd/Makefile
index a3b5f08a9120..a80510a3b0f9 100644
--- a/emulators/playonbsd/Makefile
+++ b/emulators/playonbsd/Makefile
@@ -30,6 +30,11 @@ USE_WX=		3.2
 WX_COMPS=	python:run
 SHEBANG_FILES=	bash/expert/* lib/*
 SHEBANG_GLOB=	*.py
+
+EXTRACT_AFTER_ARGS=	--exclude \
+			${GH_PROJECT_DEFAULT}-${GH_TAGNAME_EXTRACT}/python/*__pycache__* \
+			--no-same-owner --no-same-permissions
+
 NO_ARCH=	yes
 
 OPTIONS_DEFINE=		GECKO MONO NLS
@@ -68,9 +73,6 @@ do-install:
 		${MKDIR} ${STAGEDIR}${PREFIX}/lib/playonbsd/lang/po
 		${INSTALL_SCRIPT} ${WRKSRC}/lang/po/en_GB.po ${STAGEDIR}${PREFIX}/lib/playonbsd/lang/po/en_GB.po
 
-post-install:
-		${FIND} ${STAGEDIR} -name __pycache__ -type d -exec ${RM} -r {} +
-
 post-install-NLS-on:
 		cd ${WRKSRC} && ${COPYTREE_BIN} lang ${STAGEDIR}${PREFIX}/lib/playonbsd/ "! -name *\.orig ! -name *\.bak"