import ports/math/py-gmpy2, ok tb@
gmpy2 is an optimized, C-coded Python extension module that supports fast multiple-precision arithmetic. gmpy2 is based on the original gmpy module but adds support for correctly rounded multiple-precision real arithmetic (using the MPFR library) and complex arithmetic (using the MPC library).
This commit is contained in:
parent
8248f6eef3
commit
496b01d40c
32
math/py-gmpy2/Makefile
Normal file
32
math/py-gmpy2/Makefile
Normal file
@ -0,0 +1,32 @@
|
||||
COMMENT= interface to GMP/MPIR, MPFR, and MPC for Python
|
||||
|
||||
MODPY_EGG_VERSION= 2.1.5
|
||||
DISTNAME= gmpy2-${MODPY_EGG_VERSION}
|
||||
PKGNAME= py-${DISTNAME}
|
||||
|
||||
CATEGORIES= math
|
||||
|
||||
# https://github.com/aleaxit/gmpy
|
||||
HOMEPAGE= https://gmpy2.readthedocs.io/
|
||||
|
||||
# LGPLv3+
|
||||
PERMIT_PACKAGE= Yes
|
||||
|
||||
WANTLIB += gmp m mpc mpfr
|
||||
|
||||
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
|
||||
|
||||
.include <bsd.port.mk>
|
2
math/py-gmpy2/distinfo
Normal file
2
math/py-gmpy2/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (gmpy2-2.1.5.tar.gz) = vCl/H9jDd65npPST/A+Sbl0bFX5cNC4wpNhNx7n5XZY=
|
||||
SIZE (gmpy2-2.1.5.tar.gz) = 261709
|
6
math/py-gmpy2/pkg/DESCR
Normal file
6
math/py-gmpy2/pkg/DESCR
Normal file
@ -0,0 +1,6 @@
|
||||
gmpy2 is an optimized, C-coded Python extension module that supports
|
||||
fast multiple-precision arithmetic.
|
||||
|
||||
gmpy2 is based on the original gmpy module but adds support for
|
||||
correctly rounded multiple-precision real arithmetic (using the MPFR
|
||||
library) and complex arithmetic (using the MPC library).
|
16
math/py-gmpy2/pkg/PLIST
Normal file
16
math/py-gmpy2/pkg/PLIST
Normal file
@ -0,0 +1,16 @@
|
||||
lib/python${MODPY_VERSION}/site-packages/gmpy2/
|
||||
lib/python${MODPY_VERSION}/site-packages/gmpy2-${MODPY_EGG_VERSION}.dist-info/
|
||||
lib/python${MODPY_VERSION}/site-packages/gmpy2-${MODPY_EGG_VERSION}.dist-info/COPYING
|
||||
lib/python${MODPY_VERSION}/site-packages/gmpy2-${MODPY_EGG_VERSION}.dist-info/COPYING.LESSER
|
||||
lib/python${MODPY_VERSION}/site-packages/gmpy2-${MODPY_EGG_VERSION}.dist-info/METADATA
|
||||
lib/python${MODPY_VERSION}/site-packages/gmpy2-${MODPY_EGG_VERSION}.dist-info/RECORD
|
||||
lib/python${MODPY_VERSION}/site-packages/gmpy2-${MODPY_EGG_VERSION}.dist-info/WHEEL
|
||||
lib/python${MODPY_VERSION}/site-packages/gmpy2-${MODPY_EGG_VERSION}.dist-info/top_level.txt
|
||||
lib/python${MODPY_VERSION}/site-packages/gmpy2/__init__.pxd
|
||||
lib/python${MODPY_VERSION}/site-packages/gmpy2/__init__.py
|
||||
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/gmpy2/${MODPY_PYCACHE}/
|
||||
lib/python${MODPY_VERSION}/site-packages/gmpy2/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
|
||||
lib/python${MODPY_VERSION}/site-packages/gmpy2/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
|
||||
@so lib/python${MODPY_VERSION}/site-packages/gmpy2/gmpy2.${MODPY_PYC_MAGIC_TAG}so
|
||||
lib/python${MODPY_VERSION}/site-packages/gmpy2/gmpy2.h
|
||||
lib/python${MODPY_VERSION}/site-packages/gmpy2/gmpy2.pxd
|
Loading…
x
Reference in New Issue
Block a user