Skip to content

Commit

Permalink
devel/py-gevent: Convert post-patch to EXTRACT_AFTER_ARGS
Browse files Browse the repository at this point in the history
Reduces I/O by not extracting files at all
Remove reference to src/gevent/_util_py2.py as it's no longer distributed

PR:		278737
Approved by:	portmgr (maintainer timeout, 2+ weeks)
  • Loading branch information
Daniel Engberg authored and Daniel Engberg committed May 20, 2024
1 parent aa8d1b3 commit 3f2436c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions devel/py-gevent/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,12 @@ 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}

post-patch:
@${RM} ${WRKSRC}/src/gevent/_util_py2.py
# Clean up bundled libraries
@${RM} -r ${WRKSRC}/deps/

post-install:
${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +

Expand Down

0 comments on commit 3f2436c

Please sign in to comment.