git: 33ce495ae4c4 - main - devel/py-gevent: Adjust 3f2436c02e8314614dda02f9ef9f5a13de6d18c2

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 28 May 2024 10:23:07 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=33ce495ae4c46eaa3984e11bb4811c67552b8373

commit 33ce495ae4c46eaa3984e11bb4811c67552b8373
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-05-28 10:00:26 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-05-28 10:21:30 +0000

    devel/py-gevent: Adjust 3f2436c02e8314614dda02f9ef9f5a13de6d18c2
---
 devel/py-gevent/Makefile | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/devel/py-gevent/Makefile b/devel/py-gevent/Makefile
index b83801d10978..dd5e428882c0 100644
--- a/devel/py-gevent/Makefile
+++ b/devel/py-gevent/Makefile
@@ -33,12 +33,17 @@ TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}sqlite3>=0:databases/py-sqlite3@${PY_FLAVOR
 USES=		compiler:c11 localbase python
 USE_PYTHON=	autoplist concurrent pep517
 
-EXTRACT_AFTER_ARGS=	--exclude ${DISTNAME}/deps \
-			--no-same-owner --no-same-permissions
-
 MAKE_ENV=	GEVENTSETUP_EMBED_CARES=0 GEVENTSETUP_EMBED_LIBEV=0 GEVENTSETUP_EMBED_LIBUV=0
 TEST_ENV=	PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR}
 
+# Clean up bundled libraries
+.if !defined(MAINTAINER_MODE)
+EXTRACT_AFTER_ARGS=	--exclude ${DISTNAME}/deps \
+			--no-same-owner --no-same-permissions
+.else
+	@${RM} -r ${WRKSRC}/deps/
+.endif
+
 post-install:
 	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +