mirror of
https://git.freebsd.org/ports.git
synced 2026-06-02 11:08:52 +00:00
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
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user