diff --git a/devel/py-amalgamate/Makefile b/devel/py-amalgamate/Makefile index c8694a38686c..03d0facfd95b 100644 --- a/devel/py-amalgamate/Makefile +++ b/devel/py-amalgamate/Makefile @@ -1,18 +1,22 @@ PORTNAME= amalgamate PORTVERSION= 0.1.3 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= python@FreeBSD.org COMMENT= Collapse Python packages into a single module LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE USES= python:3.4+ -USE_PYTHON= autoplist distutils +USE_PYTHON= autoplist distutils concurrent NO_ARCH= yes +post-patch: + @${REINPLACE_CMD} -e 's|%%DOCSDIR%%|${DOCSDIR}|' ${WRKSRC}/setup.py + .include diff --git a/devel/py-amalgamate/files/patch-setup.py b/devel/py-amalgamate/files/patch-setup.py new file mode 100644 index 000000000000..c716bf4acc5b --- /dev/null +++ b/devel/py-amalgamate/files/patch-setup.py @@ -0,0 +1,11 @@ +--- setup.py.orig 2022-01-18 11:48:00 UTC ++++ setup.py +@@ -26,7 +26,7 @@ setup_kwargs = { + ], + "zip_safe": False, + "scripts": ['amalgamate.py'], +- "data_files": [("", ['LICENSE', 'README.rst']),], ++ "data_files": [("%%DOCSDIR%%", ['LICENSE', 'README.rst']),], + } + +