git: 5d8c7870e192 - main - databases/mongodb50: Convert post-patch to EXTRACT_AFTER_ARGS

From: Ronald Klop <ronald_at_FreeBSD.org>
Date: Sun, 19 May 2024 18:12:49 UTC
The branch main has been updated by ronald:

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

commit 5d8c7870e192c0ca21e055f636eeccbbf500fba4
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2024-05-19 18:11:01 +0000
Commit:     Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2024-05-19 18:12:33 +0000

    databases/mongodb50: Convert post-patch to EXTRACT_AFTER_ARGS
    
    Saves I/O by not extracting bundled deps
    
    PR:     278758
---
 databases/mongodb50/Makefile | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/databases/mongodb50/Makefile b/databases/mongodb50/Makefile
index b2e4388e884e..169df9b81a7b 100644
--- a/databases/mongodb50/Makefile
+++ b/databases/mongodb50/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	mongodb
 DISTVERSIONPREFIX=	r
 DISTVERSION=	5.0.26
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	databases net
 MASTER_SITES=	https://fastdl.mongodb.org/src/ \
 		http://fastdl.mongodb.org/src/
@@ -38,6 +38,14 @@ USE_RC_SUBR=	mongod
 SHEBANG_FILES=	buildscripts/scons.py
 python_OLD_CMD=	@python_interpreter@
 
+EXTRACT_AFTER_ARGS=	--exclude src/third_party/pcre-* \
+			--exclude src/third_party/snappy-* \
+			--exclude src/third_party/unwind \
+			--exclude src/third_party/yaml-cpp \
+			--exclude src/third_party/zlib-* \
+			--exclude src/third_party/zstandard-* \
+			--no-same-owner --no-same-permissions
+
 # --modules= disables "enterprise" module from src/mongo/db/modules/
 MAKE_ARGS=	--cxx-std=17 \
 		--disable-warnings-as-errors \
@@ -94,14 +102,6 @@ CPE_PRODUCT=	mongodb
 pre-patch:
 	${MV} ${WRKSRC}/src/third_party/wiredtiger/src/checksum/power8/crc32.sx ${WRKSRC}/src/third_party/wiredtiger/src/checksum/power8/crc32.S
 
-post-patch:
-	${RM} -rf ${WRKSRC}/src/third_party/pcre-*
-	${RM} -rf ${WRKSRC}/src/third_party/snappy-*
-	${RM} -rf ${WRKSRC}/src/third_party/unwind
-	${RM} -rf ${WRKSRC}/src/third_party/yaml-cpp
-	${RM} -rf ${WRKSRC}/src/third_party/zlib-*
-	${RM} -rf ${WRKSRC}/src/third_party/zstandard-*
-
 do-build:
 	${WRKSRC}/buildscripts/scons.py	-C ${WRKSRC} ${MAKE_ARGS}