summaryrefslogtreecommitdiff
path: root/math/py-primecountpy/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'math/py-primecountpy/Makefile')
-rw-r--r--math/py-primecountpy/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/math/py-primecountpy/Makefile b/math/py-primecountpy/Makefile
index a2ddc6cac0d3..dff8d1687203 100644
--- a/math/py-primecountpy/Makefile
+++ b/math/py-primecountpy/Makefile
@@ -1,6 +1,5 @@
PORTNAME= primecountpy
-PORTVERSION= 0.1.0
-PORTREVISION= 6
+PORTVERSION= 0.1.1
CATEGORIES= math python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -18,11 +17,17 @@ LIB_DEPENDS= libpari.so:math/pari \
RUN_DEPENDS= ${PYDEPS}
USES= localbase python
-USE_PYTHON= cython distutils
+USE_PYTHON= cython3 distutils
.if !defined(WITH_DEBUG)
LDFLAGS+= -s
.endif
PYDEPS= ${PYTHON_PKGNAMEPREFIX}cysignals>0:devel/py-cysignals@${PY_FLAVOR}
+post-build:
+ ${FIND} ${WRKSRC} -name "*gnu.so" -delete -o -name "*313.pyc" -delete
+
+post-stage:
+ ${FIND} ${STAGEDIR} -name "*.cpp" -delete -o -name "*.pyx" -delete
+
.include <bsd.port.mk>