diff options
author | Thomas Gellekum <tg@FreeBSD.org> | 2001-10-19 11:20:37 +0000 |
---|---|---|
committer | Thomas Gellekum <tg@FreeBSD.org> | 2001-10-19 11:20:37 +0000 |
commit | 1c6cc68498abd3c0ebb2efbb32f7d8a71cb8f15d (patch) | |
tree | c9f4902c84d3519bc786b73a133e2ac1bddca3f4 /math/py-mpz | |
parent | 998b2d08ece18e2c6a703faf11a8afba967d70d7 (diff) | |
download | ports-1c6cc68498abd3c0ebb2efbb32f7d8a71cb8f15d.tar.gz ports-1c6cc68498abd3c0ebb2efbb32f7d8a71cb8f15d.zip |
New port py-mpz. This builds the mpz module (an interface to GMP) from
the Python distribution.
Notes
Notes:
svn path=/head/; revision=48937
Diffstat (limited to 'math/py-mpz')
-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 |
6 files changed, 72 insertions, 0 deletions
diff --git a/math/py-mpz/Makefile b/math/py-mpz/Makefile new file mode 100644 index 000000000000..a92a4e0f1432 --- /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 000000000000..980587fc3ebb --- /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 000000000000..e31c0136e7ba --- /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 000000000000..22ef626b0eed --- /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 000000000000..28448caff813 --- /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 000000000000..18e530434c63 --- /dev/null +++ b/math/py-mpz/pkg-plist @@ -0,0 +1 @@ +lib/%%PYTHON_VERSION%%/site-packages/mpz.so |