diff options
author | miwi <miwi@FreeBSD.org> | 2008-06-03 17:41:36 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2008-06-03 17:41:36 +0800 |
commit | dfbd79700f45137aa0b6d4d1b4edc1cf2aa655c7 (patch) | |
tree | bea7335f51dedb548b9da9af411c10fce3139418 /science/pycdf | |
parent | 1a6b41d046559948a4b28072e3b26dc1f1649a03 (diff) | |
download | freebsd-ports-gnome-dfbd79700f45137aa0b6d4d1b4edc1cf2aa655c7.tar.gz freebsd-ports-gnome-dfbd79700f45137aa0b6d4d1b4edc1cf2aa655c7.tar.zst freebsd-ports-gnome-dfbd79700f45137aa0b6d4d1b4edc1cf2aa655c7.zip |
Pycdf is a python interface to the Unidata netCDF library. It provides an
almost complete coverage of the netCDF C API, wrapping it inside easy to
use python classes.
WWW: http://pysclint.sourceforge.net/pycdf/
PR: ports/123303
Submitted by: wenheping at gmail.com
Diffstat (limited to 'science/pycdf')
-rw-r--r-- | science/pycdf/Makefile | 30 | ||||
-rw-r--r-- | science/pycdf/distinfo | 3 | ||||
-rw-r--r-- | science/pycdf/files/patch-setup.py | 11 | ||||
-rw-r--r-- | science/pycdf/pkg-descr | 5 | ||||
-rw-r--r-- | science/pycdf/pkg-plist | 14 |
5 files changed, 63 insertions, 0 deletions
diff --git a/science/pycdf/Makefile b/science/pycdf/Makefile new file mode 100644 index 000000000000..2dd5cc6e74da --- /dev/null +++ b/science/pycdf/Makefile @@ -0,0 +1,30 @@ +# Ports collection makefile for: pycdf +# Date created: 30 April, 2008 +# Whom: wenheping@gmail.com +# +# $FreeBSD$ +# + +PORTNAME= pycdf +PORTVERSION= 0.6.3 +CATEGORIES= science python +MASTER_SITES= SF +MASTER_SITE_SUBDIR= pysclint +DISTNAME= ${PORTNAME}-0.6-3b + +MAINTAINER= wenheping@gmail.com +COMMENT= A Python Interface to the Unidata NetCDF Library + +BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/numpy:${PORTSDIR}/math/py-numpy \ + ${LOCALBASE}/lib/libnetcdf.so:${PORTSDIR}/science/netcdf +RUN_DEPENDS= ${BUILD_DEPENDS} + +LDFLAGS= "-L${LOCALBASE}/lib" + +USE_PYTHON= 2.5+ +USE_PYDISTUTILS= yes +PYTHON_PKGNAMEPREFIX= yes +PYDISTUTILS_EGGINFO= pycdf-0.6_3b-py${PYTHON_VER}.egg-info +WRKSRC= ${WRKDIR}/${DISTNAME} + +.include <bsd.port.mk> diff --git a/science/pycdf/distinfo b/science/pycdf/distinfo new file mode 100644 index 000000000000..e6e638ac2551 --- /dev/null +++ b/science/pycdf/distinfo @@ -0,0 +1,3 @@ +MD5 (pycdf-0.6-3b.tar.gz) = 5560a6e0b8de9c743782bad49e1b7957 +SHA256 (pycdf-0.6-3b.tar.gz) = 10ae206be61682cd57e0e961b1d6d7db07129e02b80f9f42006275053255daf4 +SIZE (pycdf-0.6-3b.tar.gz) = 168713 diff --git a/science/pycdf/files/patch-setup.py b/science/pycdf/files/patch-setup.py new file mode 100644 index 000000000000..c32f3025ae68 --- /dev/null +++ b/science/pycdf/files/patch-setup.py @@ -0,0 +1,11 @@ +--- setup.py.orig 2008-05-29 12:04:28.000000000 +0000 ++++ setup.py 2008-05-29 12:04:42.000000000 +0000 +@@ -73,7 +73,7 @@ + from numpy.distutils.misc_util import get_numpy_include_dirs + _pycdf_ext = Extension(extName, + sources = CCode, +- #library_dirs=["non standard path where libs live"], ++ library_dirs=["/usr/local/lib"], + include_dirs = get_numpy_include_dirs(), + libraries = ["netcdf"]) + diff --git a/science/pycdf/pkg-descr b/science/pycdf/pkg-descr new file mode 100644 index 000000000000..ceafe4aaa55b --- /dev/null +++ b/science/pycdf/pkg-descr @@ -0,0 +1,5 @@ +Pycdf is a python interface to the Unidata netCDF library. It provides an +almost complete coverage of the netCDF C API, wrapping it inside easy to +use python classes. + +WWW: http://pysclint.sourceforge.net/pycdf/ diff --git a/science/pycdf/pkg-plist b/science/pycdf/pkg-plist new file mode 100644 index 000000000000..707cd51a6f6d --- /dev/null +++ b/science/pycdf/pkg-plist @@ -0,0 +1,14 @@ +%%PYTHON_SITELIBDIR%%/pycdf/__init__.py +%%PYTHON_SITELIBDIR%%/pycdf/__init__.pyc +%%PYTHON_SITELIBDIR%%/pycdf/__init__.pyo +%%PYTHON_SITELIBDIR%%/pycdf/_pycdfext.so +%%PYTHON_SITELIBDIR%%/pycdf/pycdf.py +%%PYTHON_SITELIBDIR%%/pycdf/pycdf.pyc +%%PYTHON_SITELIBDIR%%/pycdf/pycdf.pyo +%%PYTHON_SITELIBDIR%%/pycdf/pycdfext.py +%%PYTHON_SITELIBDIR%%/pycdf/pycdfext.pyc +%%PYTHON_SITELIBDIR%%/pycdf/pycdfext.pyo +%%PYTHON_SITELIBDIR%%/pycdf/pycdfext_array.py +%%PYTHON_SITELIBDIR%%/pycdf/pycdfext_array.pyc +%%PYTHON_SITELIBDIR%%/pycdf/pycdfext_array.pyo +@dirrm %%PYTHON_SITELIBDIR%%/pycdf |