pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/py-gmpy py-gmpy: updated to 1.17



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b1425f0b0ff0
branches:  trunk
changeset: 373917:b1425f0b0ff0
user:      adam <adam%pkgsrc.org@localhost>
date:      Thu Jan 11 07:59:47 2018 +0000

description:
py-gmpy: updated to 1.17

Version 1.17 only fixes compatibility with Python 3.x and other C extensions that use gmpy.
Version 1.16 fixes a minor issue with the new Decimal type in Python 3.3.

diffstat:

 math/py-gmpy/DESCR    |  10 ++++++----
 math/py-gmpy/Makefile |  30 +++++++++++-------------------
 math/py-gmpy/PLIST    |   3 +--
 math/py-gmpy/distinfo |  10 +++++-----
 4 files changed, 23 insertions(+), 30 deletions(-)

diffs (86 lines):

diff -r 41cd7c8a0a41 -r b1425f0b0ff0 math/py-gmpy/DESCR
--- a/math/py-gmpy/DESCR        Thu Jan 11 07:32:05 2018 +0000
+++ b/math/py-gmpy/DESCR        Thu Jan 11 07:59:47 2018 +0000
@@ -1,4 +1,6 @@
-GMPY and GMPY2 are C-coded Python extension modules that support fast
-multiple-precision arithmetic.  GMPY only supports the GMP library and
-provides fast multiple-precision integer and rational arithmetic.  The
-limited mpf type from GMP is also supported.
+GMPY is a C-coded Python extension module that provides access to the GMP (or
+MPIR) multiple-precision arithmetic library.
+
+GMPY allows creation of multiprecision integer (mpz), float (mpf),and rational
+(mpq) numbers, conversion between them and to/from Python numbers/strings,
+arithmetic, bitwise, and some other higher-level mathematical operations999.
diff -r 41cd7c8a0a41 -r b1425f0b0ff0 math/py-gmpy/Makefile
--- a/math/py-gmpy/Makefile     Thu Jan 11 07:32:05 2018 +0000
+++ b/math/py-gmpy/Makefile     Thu Jan 11 07:59:47 2018 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.9 2017/09/04 18:55:09 wiz Exp $
+# $NetBSD: Makefile,v 1.10 2018/01/11 07:59:47 adam Exp $
 
-DISTNAME=      gmpy-1.15
+DISTNAME=      gmpy-1.17
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-CATEGORIES=    math
-MASTER_SITES=  http://gmpy.googlecode.com/files/
+CATEGORIES=    math python
+MASTER_SITES=  ${MASTER_SITE_PYPI:=g/gmpy/}
 EXTRACT_SUFX=  .zip
 
 MAINTAINER=    kamel.derouiche%gmail.com@localhost
@@ -11,23 +11,15 @@
 COMMENT=       Python library for arbitrary precision arithmetic
 LICENSE=       gnu-lgpl-v2.1
 
-USE_LANGUAGES= c
-BUILD_TARGET= gmpy.so
-
-TEST_ENV+=     PYTHONPATH=${WRKSRC}/test
-
+.include "../../lang/python/pyversion.mk"
 do-test:
-       ${ECHO} "Testing py-gmpy:"
-       ${RUN} cd ${WRKSRC}/test; \
-       ${SETENV} ${TEST_ENV} ${PYTHONBIN} gmpy_test.py
-
-INSTALLATION_DIRS=     share/doc/py-gmpy${PYVERSSUFFIX}
+.if ${_PYTHON_VERSION} == "27"
+       cd ${WRKSRC}/test && ${SETENV} ${TEST_ENV} ${PYTHONBIN} gmpy_test.py
+.else
+       cd ${WRKSRC}/test3 && ${SETENV} ${TEST_ENV} ${PYTHONBIN} gmpy_test.py
+.endif
 
-post-install:
-       ${INSTALL_DATA} ${WRKSRC}/doc/gmpydoc.txt \
-               ${DESTDIR}${PREFIX}/share/doc/py-gmpy${PYVERSSUFFIX}
-
-BUILDLINK_API_DEPENDS.gmp+=            gmp>=4.2.1
+BUILDLINK_API_DEPENDS.gmp+=    gmp>=4.2.1
 .include "../../devel/gmp/buildlink3.mk"
 .include "../../lang/python/distutils.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 41cd7c8a0a41 -r b1425f0b0ff0 math/py-gmpy/PLIST
--- a/math/py-gmpy/PLIST        Thu Jan 11 07:32:05 2018 +0000
+++ b/math/py-gmpy/PLIST        Thu Jan 11 07:59:47 2018 +0000
@@ -1,4 +1,3 @@
-@comment $NetBSD: PLIST,v 1.2 2012/06/02 13:52:06 obache Exp $
+@comment $NetBSD: PLIST,v 1.3 2018/01/11 07:59:47 adam Exp $
 ${PYSITELIB}/${EGG_FILE}
 ${PYSITELIB}/gmpy.so
-share/doc/py-gmpy${PYVERSSUFFIX}/gmpydoc.txt
diff -r 41cd7c8a0a41 -r b1425f0b0ff0 math/py-gmpy/distinfo
--- a/math/py-gmpy/distinfo     Thu Jan 11 07:32:05 2018 +0000
+++ b/math/py-gmpy/distinfo     Thu Jan 11 07:59:47 2018 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.3 2015/11/03 23:33:42 agc Exp $
+$NetBSD: distinfo,v 1.4 2018/01/11 07:59:47 adam Exp $
 
-SHA1 (gmpy-1.15.zip) = 59147d4307fddceae0b63ca0f8677dc73fa03fb8
-RMD160 (gmpy-1.15.zip) = a0fcf5639ad66f1b88c937fbef5893d9ed25b079
-SHA512 (gmpy-1.15.zip) = 077bcd8e9a054782cd72941216efc279c42d0e27d2d4bc8ab2594fd9c0e00d98fa7a53a67f76cd3c142425dda133f72bf948285af5005edb7e0924612d567543
-Size (gmpy-1.15.zip) = 143563 bytes
+SHA1 (gmpy-1.17.zip) = b5353453fa7a4b7d6480686c3a9b91d1c4455957
+RMD160 (gmpy-1.17.zip) = 0465338605fa73695259082c973eab23d7d96cff
+SHA512 (gmpy-1.17.zip) = f45b9862beffdc74e1e5840ec8ea1a7e15a31518df5e3782f247e98566d7d471fc4105e30d8c90194c714c46b77edfd944192fef6446cd6d60d1e4c304d0b029
+Size (gmpy-1.17.zip) = 147636 bytes



Home | Main Index | Thread Index | Old Index