summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorrichard <richard@pkgsrc.org>2013-08-15 14:23:01 +0000
committerrichard <richard@pkgsrc.org>2013-08-15 14:23:01 +0000
commit8fc60318cc2d6d0fa20d5678265713c8ba35f44a (patch)
treea32be3054da8ffd3ca5a8545793cd4792022bf1d /math
parent2aa92a790f68832dbfc00547048fad98e5e454b5 (diff)
downloadpkgsrc-8fc60318cc2d6d0fa20d5678265713c8ba35f44a.tar.gz
cdecimal
======== The cdecimal package is a fast drop-in replacement for the decimal module in Python's standard library. Both modules provide complete implementations of Mike Cowlishaw/IBM's General Decimal Arithmetic Specification. This archive is identical to the mpdecimal package, except that library tests and documentation have been removed. For documentation, visit: http://www.bytereef.org/mpdecimal/index.html http://www.bytereef.org/mpdecimal/doc/index.html Contact: Stefan Krah <skrah@bytereef.org>
Diffstat (limited to 'math')
-rw-r--r--math/py-cdecimal/DESCR3
-rw-r--r--math/py-cdecimal/Makefile28
-rw-r--r--math/py-cdecimal/PLIST3
-rw-r--r--math/py-cdecimal/distinfo5
4 files changed, 39 insertions, 0 deletions
diff --git a/math/py-cdecimal/DESCR b/math/py-cdecimal/DESCR
new file mode 100644
index 00000000000..972caec13c7
--- /dev/null
+++ b/math/py-cdecimal/DESCR
@@ -0,0 +1,3 @@
+The `cdecimal` package is a fast drop-in replacement for the `decimal` module
+in Python's standard library. Both modules provide complete implementations of
+Mike Cowlishaw/IBM's `General Decimal Arithmetic Specification`.
diff --git a/math/py-cdecimal/Makefile b/math/py-cdecimal/Makefile
new file mode 100644
index 00000000000..52e6a1a9a1b
--- /dev/null
+++ b/math/py-cdecimal/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1 2013/08/15 14:23:01 richard Exp $
+
+DISTNAME= cdecimal-2.3
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= math python
+MASTER_SITES= http://www.bytereef.org/software/mpdecimal/releases/
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://www.bytereef.org/mpdecimal/
+COMMENT= Arbitrary precision decimal floating point arithmetic
+LICENSE= 2-clause-bsd
+
+NO_CONFIGURE= YES
+
+USE_TOOLS+= gmake
+USE_LANGUAGES= c
+GNU_CONFIGURE= yes
+
+.include "../../lang/python/pyversion.mk"
+
+PYTHON_VERSIONS_INCLUDE_3X= YES
+.if ${_PYTHON_VERSION} >= 33
+PKG_FAIL_REASON+= "${DISTNAME} is obsoleted by the builtin \`decimal\` in python3.3."
+.endif
+
+#.include "../../devel/gmp/buildlink3.mk"
+.include "../../lang/python/distutils.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/math/py-cdecimal/PLIST b/math/py-cdecimal/PLIST
new file mode 100644
index 00000000000..f5a1c43ab11
--- /dev/null
+++ b/math/py-cdecimal/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2013/08/15 14:23:01 richard Exp $
+${PYSITELIB}/${EGG_FILE}
+${PYSITELIB}/cdecimal.so
diff --git a/math/py-cdecimal/distinfo b/math/py-cdecimal/distinfo
new file mode 100644
index 00000000000..81393c20507
--- /dev/null
+++ b/math/py-cdecimal/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2013/08/15 14:23:01 richard Exp $
+
+SHA1 (cdecimal-2.3.tar.gz) = 9b75cd3ac2e15512ef89f90af13ba5191ac519d2
+RMD160 (cdecimal-2.3.tar.gz) = 29cb215de13da8909b9820103ff09005f723fed4
+Size (cdecimal-2.3.tar.gz) = 361809 bytes