git: 5790e17ba7c7 - main - audio/nosefart: Convert pre-build to EXTRACT_AFTER_ARGS

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

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

commit 5790e17ba7c7bd4bec375e09ce7e1cb3691c3ffa
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2024-05-20 21:30:18 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2024-05-20 21:53:51 +0000

    audio/nosefart: Convert pre-build to EXTRACT_AFTER_ARGS
    
    Reduce I/O by excluding files we don't need during extraction
    
    PR:             278744
    Approved by:    portmgr (maintainer timeout, 2+ weeks)
---
 audio/nosefart/Makefile | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/audio/nosefart/Makefile b/audio/nosefart/Makefile
index 658386f3c686..e346317ac2c6 100644
--- a/audio/nosefart/Makefile
+++ b/audio/nosefart/Makefile
@@ -16,10 +16,12 @@ MAKE_ENV=	INSTALL="${INSTALL}" COPY="${COPY}" STRIP="${STRIP}" \
 		BINGRP="${BINGRP}" BINMODE="${BINMODE}" BINOWN="${BINOWN}"
 CPE_VENDOR=	nosefart_project
 
-PLIST_FILES=	bin/nosefart
+EXTRACT_AFTER_ARGS=	--exclude ${DISTNAME}/nsfobj \
+			--exclude *.bat \
+			--exclude *.exe \
+			--no-same-owner --no-same-permissions
 
-pre-build:
-	@${RM} -r ${BUILD_WRKSRC}/nsfobj
+PLIST_FILES=	bin/nosefart
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/nsfobj/${PORTNAME} ${STAGEDIR}${PREFIX}/bin