Index | Thread | Search

From:
Daniel Dickman <didickman@gmail.com>
Subject:
[update] math/py-gmpy2 for Python 3.12
To:
ports@openbsd.org
Date:
Sun, 20 Oct 2024 10:39:09 -0400

Download raw body.

Thread
Now that we have newer devel/libmpc, below updates math/py-gmpy2 to a 
version that builds with Python 3.12.

I cleaned up the Makefile a bit to shorten COMMMENT, use HOMEPAGE from 
PKG-INFO, and update WANTLIB.

security/badkeys (the only consumer) might benefit from tests from any 
user of that port.

ok?

Index: Makefile
===================================================================
RCS file: /cvs/ports/math/py-gmpy2/Makefile,v
diff -u -p -u -r1.2 Makefile
--- Makefile	6 May 2024 12:23:45 -0000	1.2
+++ Makefile	20 Oct 2024 14:36:38 -0000
@@ -1,33 +1,33 @@
-COMMENT=	interface to GMP/MPIR, MPFR, and MPC for Python
+COMMENT=	Python interface to GMP, MPFR, and MPC
 
-MODPY_EGG_VERSION=	2.1.5
+MODPY_EGG_VERSION=	2.2.1
 DISTNAME=	gmpy2-${MODPY_EGG_VERSION}
 PKGNAME=	py-${DISTNAME}
-REVISION=	0
 
 CATEGORIES=	math
 
-# https://github.com/aleaxit/gmpy
-HOMEPAGE=	https://gmpy2.readthedocs.io/
+HOMEPAGE=	https://github.com/aleaxit/gmpy
 
 # LGPLv3+
 PERMIT_PACKAGE=	Yes
 
-WANTLIB += gmp m mpc mpfr
+WANTLIB += gmp mpc mpfr
+
+MODULES=	lang/python
 
 FLAVORS=	python3
 FLAVOR=		python3
 
-MODULES=	lang/python
 MODPY_PI=	Yes
 MODPY_PYBUILD=	setuptools
 
 LIB_DEPENDS=	devel/gmp \
 		devel/libmpc \
 		devel/mpfr
+
 CFLAGS+=	-I${LOCALBASE}/include
 
 do-test:
-	cd ${WRKSRC}; ${TEST_ENV} ${MODPY_BIN} test/runtests.py
+	cd ${WRKSRC} && ${TEST_ENV} ${MODPY_BIN} test/conftest.py
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/math/py-gmpy2/distinfo,v
diff -u -p -u -r1.1.1.1 distinfo
--- distinfo	11 Jan 2023 15:55:11 -0000	1.1.1.1
+++ distinfo	20 Oct 2024 14:36:38 -0000
@@ -1,2 +1,2 @@
-SHA256 (gmpy2-2.1.5.tar.gz) = vCl/H9jDd65npPST/A+Sbl0bFX5cNC4wpNhNx7n5XZY=
-SIZE (gmpy2-2.1.5.tar.gz) = 261709
+SHA256 (gmpy2-2.2.1.tar.gz) = 6D4HVnRBt4y4dUSRDLPMT+lOfamH6T73Yi52+5ZlBDI=
+SIZE (gmpy2-2.2.1.tar.gz) = 234228