Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 May 2024 23:58:09 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 5d49fc886eb0 - main - devel/grpc: Add EXTRACT_AFTER_ARGS
Message-ID:  <202405282358.44SNw9ua010639@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

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

commit 5d49fc886eb0527b17c9f3c06301343c21730768
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-05-28 23:57:54 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-05-28 23:57:54 +0000

    devel/grpc: Add EXTRACT_AFTER_ARGS
    
    PR:             278736
    Reported by:    diizzy
---
 devel/grpc/Makefile | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/devel/grpc/Makefile b/devel/grpc/Makefile
index 9a31b48fcd62..8ac19259c151 100644
--- a/devel/grpc/Makefile
+++ b/devel/grpc/Makefile
@@ -52,8 +52,19 @@ PLIST_SUB=	PORTVERSION=${PORTVERSION} \
 
 CONFLICTS_INSTALL=	grpc[0-9][0-9][0-9]
 
-post-patch:
 # Clean up bundled libraries
+.if !defined(MAINTAINER_MODE)
+EXTRACT_AFTER_ARGS=	--exclude ${DISTNAME}/third_party/abseil-cpp/ \
+			--exclude ${DISTNAME}/third_party/benchmark/ \
+			--exclude ${DISTNAME}/third_party/boringssl-with-bazel/ \
+			--exclude ${DISTNAME}/third_party/cares/ \
+			--exclude ${DISTNAME}/third_party/protobuf/ \
+			--exclude ${DISTNAME}/third_party/re2/ \
+			--exclude ${DISTNAME}/third_party/xxhash/ \
+			--exclude ${DISTNAME}/third_party/zlib/ \
+			--no-same-owner --no-same-permissions
+.else
+post-patch:
 	@${RM} -r ${WRKSRC}/third_party/abseil-cpp/
 	@${RM} -r ${WRKSRC}/third_party/benchmark/
 	@${RM} -r ${WRKSRC}/third_party/boringssl-with-bazel/
@@ -64,5 +75,6 @@ post-patch:
 	#@${RM} -r ${WRKSRC}/third_party/utf8_range/
 	@${RM} -r ${WRKSRC}/third_party/xxhash/
 	@${RM} -r ${WRKSRC}/third_party/zlib/
+.endif
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202405282358.44SNw9ua010639>