Skip to content

Commit

Permalink
databases/mongodb50: Convert post-patch to EXTRACT_AFTER_ARGS
Browse files Browse the repository at this point in the history
Saves I/O by not extracting bundled deps

PR:	278758
  • Loading branch information
Daniel Engberg authored and Ronald Klop committed May 19, 2024
1 parent 37cd4e5 commit 5d8c787
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions databases/mongodb50/Makefile
Original file line number Diff line number Diff line change
@@ -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/
Expand Down Expand Up @@ -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 \
Expand Down Expand Up @@ -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}

Expand Down

0 comments on commit 5d8c787

Please sign in to comment.