git: 6c9ab36afd7a - main - math/py-primecountpy: upgrade to v0.1.1

From: Thierry Thomas <thierry_at_FreeBSD.org>
Date: Thu, 22 May 2025 16:50:46 UTC
The branch main has been updated by thierry:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6c9ab36afd7a8d4113e674bc98aa4a631913ab78

commit 6c9ab36afd7a8d4113e674bc98aa4a631913ab78
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2025-05-22 16:27:10 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2025-05-22 16:49:53 +0000

    math/py-primecountpy: upgrade to v0.1.1
    
    Release notes at https://github.com/dimpase/primecountpy/releases/tag/v0.1.1
---
 math/py-primecountpy/Makefile                            | 11 ++++++++---
 math/py-primecountpy/distinfo                            |  6 +++---
 .../files/patch-primecountpy.egg-info_SOURCES.txt        | 16 ++++++++++++++++
 3 files changed, 27 insertions(+), 6 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>
diff --git a/math/py-primecountpy/distinfo b/math/py-primecountpy/distinfo
index ad3fbcadde22..67b21416d88d 100644
--- a/math/py-primecountpy/distinfo
+++ b/math/py-primecountpy/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1642085161
-SHA256 (primecountpy-0.1.0.tar.gz) = 78fe7cc32115f0669a45d7c90faaf39f7ce3939e39e2e7e5f14c17fe4bff0676
-SIZE (primecountpy-0.1.0.tar.gz) = 16070
+TIMESTAMP = 1747926193
+SHA256 (primecountpy-0.1.1.tar.gz) = c8561817c0be86eeffc41b97b6ef617d795f72cf3de59d9234d1c83d7e424030
+SIZE (primecountpy-0.1.1.tar.gz) = 117697
diff --git a/math/py-primecountpy/files/patch-primecountpy.egg-info_SOURCES.txt b/math/py-primecountpy/files/patch-primecountpy.egg-info_SOURCES.txt
new file mode 100644
index 000000000000..ff02d703f757
--- /dev/null
+++ b/math/py-primecountpy/files/patch-primecountpy.egg-info_SOURCES.txt
@@ -0,0 +1,16 @@
+--- primecountpy.egg-info/SOURCES.txt.orig	2025-05-20 20:18:19 UTC
++++ primecountpy.egg-info/SOURCES.txt
+@@ -8,7 +8,6 @@ primecountpy/primecount.cpp
+ primecountpy/__init__.py
+ primecountpy/defs.pxd
+ primecountpy/primecount.cpp
+-primecountpy/primecount.cpython-313-x86_64-linux-gnu.so
+ primecountpy/primecount.pyx
+ primecountpy.egg-info/PKG-INFO
+ primecountpy.egg-info/SOURCES.txt
+@@ -16,4 +15,3 @@ primecountpy.egg-info/top_level.txt
+ primecountpy.egg-info/not-zip-safe
+ primecountpy.egg-info/requires.txt
+ primecountpy.egg-info/top_level.txt
+-primecountpy/__pycache__/__init__.cpython-313.pyc
+\ No newline at end of file