summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authordrochner <drochner>2010-08-10 17:59:00 +0000
committerdrochner <drochner>2010-08-10 17:59:00 +0000
commit31abb99f6bbe83c98f42f8faee096bb65fa155e1 (patch)
tree8cb9d17a019470d5fddb1554b0b03ba626704bd2 /math
parent666e4def4a68c523e54b995597be24b6c159dc8b (diff)
downloadpkgsrc-31abb99f6bbe83c98f42f8faee096bb65fa155e1.tar.gz
add py-gmpy-1.12, a Python wrapper for math/gmp, from Kamel Derouiche
per pkgsrc-wip
Diffstat (limited to 'math')
-rw-r--r--math/py-gmpy/DESCR1
-rw-r--r--math/py-gmpy/Makefile44
-rw-r--r--math/py-gmpy/PLIST3
-rw-r--r--math/py-gmpy/buildlink3.mk13
-rw-r--r--math/py-gmpy/distinfo5
5 files changed, 66 insertions, 0 deletions
diff --git a/math/py-gmpy/DESCR b/math/py-gmpy/DESCR
new file mode 100644
index 00000000000..79aab959d49
--- /dev/null
+++ b/math/py-gmpy/DESCR
@@ -0,0 +1 @@
+Library for arbitrary precision arithmetic wirtten by Python
diff --git a/math/py-gmpy/Makefile b/math/py-gmpy/Makefile
new file mode 100644
index 00000000000..6a5de08e2ee
--- /dev/null
+++ b/math/py-gmpy/Makefile
@@ -0,0 +1,44 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/08/10 17:59:00 drochner Exp $
+#
+
+DISTNAME= gmpy-1.12
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= math
+MASTER_SITES= http://gmpy.googlecode.com/files/
+EXTRACT_SUFX= .zip
+EXTRACT_SUFX= .zip
+# XXX: all text file are DOS style.
+# XXX: if future version install binary file,
+# XXX: please consider to use another method.
+EXTRACT_OPTS_ZIP= -aaqo
+
+MAINTAINER= kamel.derouiche@gmail.com
+HOMEPAGE= http://code.google.com/p/gmpy
+COMMENT= Library for arbitrary precision arithmetic wirtten by Python
+LICENSE= gnu-lgpl-v2.1
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+USE_LANGUAGES= c
+BUILD_TARGET= gmpy.so
+
+PYTHON_VERSIONS_INCOMPATIBLE= 22 21 20
+PYDISTUTILSPKG= yes
+PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
+
+TEST_ENV+= PYTHONPATH=${WRKSRC}/test
+do-test:
+ ${ECHO} "Testing py-gmpy:"
+ ${RUN} cd ${WRKSRC}/test; \
+ ${SETENV} ${TEST_ENV} ${PYTHONBIN} gmpy_test.py
+
+INSTALLATION_DIRS= share/doc/py-gmpy${PYVERSSUFFIX}
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/doc/gmpydoc.txt \
+ ${DESTDIR}${PREFIX}/share/doc/py-gmpy${PYVERSSUFFIX}
+
+BUILDLINK_API_DEPENDS.gmp+= gmp>=4.2.1
+.include "../../devel/gmp/buildlink3.mk"
+.include "../../lang/python/extension.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/math/py-gmpy/PLIST b/math/py-gmpy/PLIST
new file mode 100644
index 00000000000..604255228c6
--- /dev/null
+++ b/math/py-gmpy/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2010/08/10 17:59:00 drochner Exp $
+${PYSITELIB}/gmpy.so
+share/doc/py-gmpy${PYVERSSUFFIX}/gmpydoc.txt
diff --git a/math/py-gmpy/buildlink3.mk b/math/py-gmpy/buildlink3.mk
new file mode 100644
index 00000000000..e5d92d8e7ad
--- /dev/null
+++ b/math/py-gmpy/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2010/08/10 17:59:00 drochner Exp $
+
+BUILDLINK_TREE+= py26-gmpy
+
+.if !defined(PY26_GMPY_BUILDLINK3_MK)
+PY26_GMPY_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.py26-gmpy+= ${PYPKGPREFIX}-gmpy>=1.12
+BUILDLINK_PKGSRCDIR.py26-gmpy?= ../../math/py-gmpy
+
+.endif # PY26_GMPY_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -py26-gmpy
diff --git a/math/py-gmpy/distinfo b/math/py-gmpy/distinfo
new file mode 100644
index 00000000000..0d9c7360863
--- /dev/null
+++ b/math/py-gmpy/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2010/08/10 17:59:00 drochner Exp $
+
+SHA1 (gmpy-1.12.zip) = 6ee071d7407f30f6ff8de962d3631470ff748d61
+RMD160 (gmpy-1.12.zip) = 52e6a1ebd2cabe398a760f6355a043d75bcacb55
+Size (gmpy-1.12.zip) = 146225 bytes