git: 94ae98221aa5 - main - biology/star: Use EXTRACT_AFTER_ARGS to omit unused htslib dir

From: Jason W. Bacon <jwb_at_FreeBSD.org>
Date: Sun, 05 May 2024 15:00:22 UTC
The branch main has been updated by jwb:

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

commit 94ae98221aa55d9dfac0cbd7a6a68d189d090222
Author:     Jason W. Bacon <jwb@FreeBSD.org>
AuthorDate: 2024-05-05 14:58:47 +0000
Commit:     Jason W. Bacon <jwb@FreeBSD.org>
CommitDate: 2024-05-05 14:58:47 +0000

    biology/star: Use EXTRACT_AFTER_ARGS to omit unused htslib dir
    
    Reduces I/O during builds
    
    PR:             278751
    Reported by:    diizzy
---
 biology/star/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/biology/star/Makefile b/biology/star/Makefile
index 968caa762551..8e01f3198cd4 100644
--- a/biology/star/Makefile
+++ b/biology/star/Makefile
@@ -26,13 +26,14 @@ USE_GCC=	yes
 USE_GITHUB=	yes
 GH_ACCOUNT=	alexdobin
 
+EXTRACT_AFTER_ARGS=	--exclude ${GH_PROJECT_DEFAULT}-${GH_TAGNAME_EXTRACT}/source/htslib --no-same-owner --no-same-permissions
+
 WRKSRC_SUBDIR=	source
 MAKE_FLAGS=	HTSLIB='' CXXFLAGS_SIMD=""
 
 PLIST_FILES=	bin/STAR
 
 post-patch:
-	${RM} -rf ${WRKSRC}/htslib
 	${REINPLACE_CMD} \
 		-e 's|"htslib/htslib/sam.h"|<htslib/sam.h>|g' \
 		-e 's|"htslib/htslib/kstring.h"|<htslib/kstring.h>|g' \