summaryrefslogtreecommitdiffstats
path: root/math/py-mpz
diff options
context:
space:
mode:
authortg <tg@FreeBSD.org>2001-10-19 11:20:37 +0000
committertg <tg@FreeBSD.org>2001-10-19 11:20:37 +0000
commitd796aedea138e3cc4d26c81bfb001ab6abea6271 (patch)
tree13d2c2789804ea49d4d5c4b161ad7c53f22355da /math/py-mpz
parent3a3da8d325e6bd7237d08a9b0e8dad45dab8b03d (diff)
downloadFreeBSD-ports-d796aedea138e3cc4d26c81bfb001ab6abea6271.zip
FreeBSD-ports-d796aedea138e3cc4d26c81bfb001ab6abea6271.tar.gz
New port py-mpz. This builds the mpz module (an interface to GMP) from
the Python distribution.
Diffstat (limited to 'math/py-mpz')
-rw-r--r--math/py-mpz/Makefile33
-rw-r--r--math/py-mpz/distinfo6
-rw-r--r--math/py-mpz/files/setup.py30
-rw-r--r--math/py-mpz/pkg-comment1
-rw-r--r--math/py-mpz/pkg-descr1
-rw-r--r--math/py-mpz/pkg-plist1
6 files changed, 72 insertions, 0 deletions
diff --git a/math/py-mpz/Makefile b/math/py-mpz/Makefile
new file mode 100644
index 0000000..a92a4e0
--- /dev/null
+++ b/math/py-mpz/Makefile
@@ -0,0 +1,33 @@
+# New ports collection makefile for: py-mpz
+# Date created: 18 Oct 2001
+# Whom: Thomas Gellekum <tg@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= mpz
+PORTVERSION= ${PYTHON_PORTVERSION}
+CATEGORIES= math python
+MASTER_SITES= http://www.python.org/ftp/python/${PORTVERSION}/ \
+ http://SunSITE.Informatik.RWTH-Aachen.DE/python/ftp/python/${PORTVERSION}/
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTFILES= ${PYTHON_DISTFILE}
+
+MAINTAINER= tg@FreeBSD.org
+
+BUILD_DEPENDS= ${PYDISTUTILS}
+
+DIST_SUBDIR= python
+USE_PYTHON= yes
+WRKSRC= ${PYTHON_WRKSRC}/Modules
+
+post-extract:
+ @${CP} ${FILESDIR}/setup.py ${WRKSRC}
+
+do-build:
+ @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup.py build
+
+do-install:
+ @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup.py install
+
+.include <bsd.port.mk>
diff --git a/math/py-mpz/distinfo b/math/py-mpz/distinfo
new file mode 100644
index 0000000..980587f
--- /dev/null
+++ b/math/py-mpz/distinfo
@@ -0,0 +1,6 @@
+MD5 (python/py152.tgz) = e9d677ae6d5a3efc6937627ed8a3e752
+MD5 (python/Python-1.6.tar.gz) = 9d72ef93d7698769d9d3be7c17d5ad92
+MD5 (python/BeOpen-Python-2.0.tar.gz) = 8c4a64891d3dc6422df2514c603f0c98
+MD5 (python/Python-2.0.1.tgz) = 8aa10dcf062723001b852d96e905af79
+MD5 (python/Python-2.1.tgz) = 2ba2baeccd6100a4be80e6368a975054
+MD5 (python/Python-2.1.1.tgz) = eb34371c49b271abc74b42572883e1b4
diff --git a/math/py-mpz/files/setup.py b/math/py-mpz/files/setup.py
new file mode 100644
index 0000000..e31c013
--- /dev/null
+++ b/math/py-mpz/files/setup.py
@@ -0,0 +1,30 @@
+#!/usr/bin/env python
+# To use:
+# python setup.py install
+#
+
+__version__ = "$FreeBSD$"
+
+import os, string
+
+try:
+ import distutils
+ from distutils import sysconfig
+ from distutils.command.install import install
+ from distutils.core import setup, Extension
+except:
+ raise SystemExit, "Distutils problem"
+
+prefix = sysconfig.PREFIX
+inc_dirs = [prefix + "/include"]
+lib_dirs = [prefix + "/lib"]
+libs = ["gmp"]
+
+setup(name = "mpz",
+ description = "GMP extension to Python",
+
+ ext_modules = [Extension('mpz', ['mpzmodule.c'],
+ include_dirs = inc_dirs,
+ libraries = libs,
+ library_dirs = lib_dirs)]
+ )
diff --git a/math/py-mpz/pkg-comment b/math/py-mpz/pkg-comment
new file mode 100644
index 0000000..22ef626
--- /dev/null
+++ b/math/py-mpz/pkg-comment
@@ -0,0 +1 @@
+Python bindings to the GNU Multiple Precision library
diff --git a/math/py-mpz/pkg-descr b/math/py-mpz/pkg-descr
new file mode 100644
index 0000000..28448ca
--- /dev/null
+++ b/math/py-mpz/pkg-descr
@@ -0,0 +1 @@
+Python bindings to the GNU Multiple Precision library.
diff --git a/math/py-mpz/pkg-plist b/math/py-mpz/pkg-plist
new file mode 100644
index 0000000..18e5304
--- /dev/null
+++ b/math/py-mpz/pkg-plist
@@ -0,0 +1 @@
+lib/%%PYTHON_VERSION%%/site-packages/mpz.so
OpenPOWER on IntegriCloud