diff options
author | tg <tg@FreeBSD.org> | 2001-10-19 19:20:37 +0800 |
---|---|---|
committer | tg <tg@FreeBSD.org> | 2001-10-19 19:20:37 +0800 |
commit | d796aedea138e3cc4d26c81bfb001ab6abea6271 (patch) | |
tree | 13d2c2789804ea49d4d5c4b161ad7c53f22355da /math | |
parent | 3a3da8d325e6bd7237d08a9b0e8dad45dab8b03d (diff) | |
download | freebsd-ports-graphics-d796aedea138e3cc4d26c81bfb001ab6abea6271.tar.gz freebsd-ports-graphics-d796aedea138e3cc4d26c81bfb001ab6abea6271.tar.zst freebsd-ports-graphics-d796aedea138e3cc4d26c81bfb001ab6abea6271.zip |
New port py-mpz. This builds the mpz module (an interface to GMP) from
the Python distribution.
Diffstat (limited to 'math')
-rw-r--r-- | math/Makefile | 1 | ||||
-rw-r--r-- | math/py-mpz/Makefile | 33 | ||||
-rw-r--r-- | math/py-mpz/distinfo | 6 | ||||
-rw-r--r-- | math/py-mpz/files/setup.py | 30 | ||||
-rw-r--r-- | math/py-mpz/pkg-comment | 1 | ||||
-rw-r--r-- | math/py-mpz/pkg-descr | 1 | ||||
-rw-r--r-- | math/py-mpz/pkg-plist | 1 |
7 files changed, 73 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile index 8b0983e6e1c..64f2aef83f3 100644 --- a/math/Makefile +++ b/math/Makefile @@ -94,6 +94,7 @@ SUBDIR += pspp SUBDIR += py-gato SUBDIR += py-gnuplot + SUBDIR += py-mpz SUBDIR += py-numeric SUBDIR += py-numeric17 SUBDIR += py-scientific diff --git a/math/py-mpz/Makefile b/math/py-mpz/Makefile new file mode 100644 index 00000000000..a92a4e0f143 --- /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 00000000000..980587fc3eb --- /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 00000000000..e31c0136e7b --- /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 00000000000..22ef626b0ee --- /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 00000000000..28448caff81 --- /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 00000000000..18e530434c6 --- /dev/null +++ b/math/py-mpz/pkg-plist @@ -0,0 +1 @@ +lib/%%PYTHON_VERSION%%/site-packages/mpz.so |