summaryrefslogtreecommitdiff
path: root/math/py-Scientific
diff options
context:
space:
mode:
authorjtb <jtb>2001-01-30 02:01:43 +0000
committerjtb <jtb>2001-01-30 02:01:43 +0000
commit2bab1bb6d5dc62d1f49deed89f2aecaf8921f719 (patch)
treeadb080779b0c8cb0fc07017ee54e005846874d2c /math/py-Scientific
parent9fa730ccd25e46e462290ba24e95e3c6f3ca65fe (diff)
downloadpkgsrc-2bab1bb6d5dc62d1f49deed89f2aecaf8921f719.tar.gz
Initial import of new py-Scientific package:
Python modules for scientific computing
Diffstat (limited to 'math/py-Scientific')
-rw-r--r--math/py-Scientific/Makefile60
-rw-r--r--math/py-Scientific/files/Setup.in5
-rw-r--r--math/py-Scientific/files/md53
-rw-r--r--math/py-Scientific/files/printpypath.py5
-rw-r--r--math/py-Scientific/pkg/COMMENT1
-rw-r--r--math/py-Scientific/pkg/DESCR20
-rw-r--r--math/py-Scientific/pkg/PLIST103
7 files changed, 197 insertions, 0 deletions
diff --git a/math/py-Scientific/Makefile b/math/py-Scientific/Makefile
new file mode 100644
index 00000000000..22a54a97cd9
--- /dev/null
+++ b/math/py-Scientific/Makefile
@@ -0,0 +1,60 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/01/30 02:01:43 jtb Exp $
+
+DISTNAME= ScientificPython-2.0.1
+PKGNAME= py-Scientific-2.0.1
+CATEGORIES= math
+MASTER_SITES= http://starship.python.net/crew/hinsen/ \
+ http://dirac.cnrs-orleans.fr/programs/
+
+MAINTAINER= jtb@netbsd.org
+HOMEPAGE= http://starship.python.net/crew/hinsen/scientific.html
+
+DEPENDS+= python>=1.5:../../lang/python
+DEPENDS+= netcdf>=3.0:../../devel/netcdf
+DEPENDS+= mpich-[0-9]*:../../parallel/mpi-ch
+DEPENDS+= py-Numeric-[0-9]*:../../math/py-Numeric
+
+.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "mips" || ${MACHINE_ARCH} == "vax"
+IGNORE="${PKGNAME} needs dynamic loading"
+.endif
+
+PLIST_SRC= ${WRKDIR}/.PLIST_SRC
+EVAL_PREFIX+= PYPREFIX=python NETCDFPREFIX=netcdf MPICHPREFIX=mpich
+
+do-configure:
+ ${SED} -e "s|@NETCDFPREFIX@|${NETCDFPREFIX}|g" \
+ -e "s|@MPICHPREFIX@|${MPICHPREFIX}|g" \
+ < ${FILESDIR}/Setup.in > ${WRKSRC}/Src/Setup.in
+
+do-build:
+ (cd ${WRKSRC}/Src && ${PYPREFIX}/bin/python compile.py)
+
+post-build:
+ (eval `${PYPREFIX}/bin/python ${FILESDIR}/printpypath.py` && \
+ ${SED} "s|PYINC|$${PYINC}|g;s|PYSITELIB|$${PYSITELIB}|g" \
+ < ${PKGDIR}/PLIST > ${PLIST_SRC})
+
+do-install:
+ (cd ${WRKSRC} && ${PYPREFIX}/bin/python install.py)
+ ${INSTALL_DATA_DIR} ${PREFIX}/include/python2.0/Scientific
+ @for f in ${WRKSRC}/Scientific/Include/Scientific/*; do \
+ i="${INSTALL_DATA} $$f ${PREFIX}/include/python2.0/Scientific/"; \
+ ${ECHO} $$i; $$i; \
+ done
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-Scientific
+ @for f in README COPYRIGHT Doc/PDF/manual.pdf; do \
+ i="${INSTALL_DATA} ${WRKSRC}/$$f ${PREFIX}/share/doc/py-Scientific/"; \
+ ${ECHO} $$i; $$i; \
+ done
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html/py-Scientific
+ @for f in ${WRKSRC}/Doc/HTML/*; do \
+ i="${INSTALL_DATA} $$f ${PREFIX}/share/doc/html/py-Scientific/"; \
+ ${ECHO} $$i; $$i; \
+ done
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-Scientific
+ @for f in ${WRKSRC}/Examples/*; do \
+ i="${INSTALL_DATA} $$f ${PREFIX}/share/examples/py-Scientific/"; \
+ ${ECHO} $$i; $$i; \
+ done
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/math/py-Scientific/files/Setup.in b/math/py-Scientific/files/Setup.in
new file mode 100644
index 00000000000..a94517d3422
--- /dev/null
+++ b/math/py-Scientific/files/Setup.in
@@ -0,0 +1,5 @@
+*shared*
+
+Scientific_netcdf -I@NETCDFPREFIX@/include -I../Scientific/Include \
+ Scientific_netcdf.c -Wl,-R@NETCDFPREFIX@/lib -L@NETCDFPREFIX@/lib -lnetcdf
+Scientific_mpi -I@MPICHPREFIX@/include -I@MPICHPREFIX@/libdata/netbsd/ch_p4/ -I../Scientific/Include Scientific_mpi.c -L@MPICHPREFIX@/libdata/netbsd/ch_p4/ -lmpich
diff --git a/math/py-Scientific/files/md5 b/math/py-Scientific/files/md5
new file mode 100644
index 00000000000..16a855f4fba
--- /dev/null
+++ b/math/py-Scientific/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 2001/01/30 02:01:44 jtb Exp $
+
+MD5 (ScientificPython-2.0.1.tar.gz) = 380248f3167afa1667db44cfe8b3fd3d
diff --git a/math/py-Scientific/files/printpypath.py b/math/py-Scientific/files/printpypath.py
new file mode 100644
index 00000000000..aa53572f19c
--- /dev/null
+++ b/math/py-Scientific/files/printpypath.py
@@ -0,0 +1,5 @@
+from distutils.sysconfig import get_python_inc
+from distutils.sysconfig import get_python_lib
+
+print "PYINC=" + get_python_inc(0, "")
+print "PYSITELIB=" + get_python_lib(0, 0, "")
diff --git a/math/py-Scientific/pkg/COMMENT b/math/py-Scientific/pkg/COMMENT
new file mode 100644
index 00000000000..0be61ca3d52
--- /dev/null
+++ b/math/py-Scientific/pkg/COMMENT
@@ -0,0 +1 @@
+Python modules for scientific computing
diff --git a/math/py-Scientific/pkg/DESCR b/math/py-Scientific/pkg/DESCR
new file mode 100644
index 00000000000..319792e7366
--- /dev/null
+++ b/math/py-Scientific/pkg/DESCR
@@ -0,0 +1,20 @@
+ScientificPython is a collection of Python modules that are useful for
+scientific computing. In this collection you will find modules that
+cover basic geometry (vectors, tensors, transformations, vector and
+tensor fields), quaternions, automatic derivatives, (linear)
+interpolation, polynomials, elementary statistics, nonlinear
+least-squares fits, unit calculations, Fortran-compatible text
+formatting, 3D visualization via VRML, and two Tk widgets for simple
+line plots and 3D wireframe models.
+
+The netCDF interface module, until now distributed separately, has
+been integrated into this package as well. It is now called
+Scientific.IO.NetCDF.
+
+The module Scientific.MPI provides an object-oriented interface to the
+Message Passing Interface, an industry standard library for
+interprocess communication on parallel computers.
+
+All of these modules are in the public domain; do with them whatever
+you wish. However, there is no warranty of any kind; you use the code
+at your own risk.
diff --git a/math/py-Scientific/pkg/PLIST b/math/py-Scientific/pkg/PLIST
new file mode 100644
index 00000000000..0ef03254536
--- /dev/null
+++ b/math/py-Scientific/pkg/PLIST
@@ -0,0 +1,103 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/01/30 02:01:44 jtb Exp $
+PYINC/Scientific/PyMPI_API.h
+PYINC/Scientific/mpimodule.h
+PYINC/Scientific/netcdfmodule.h
+PYSITELIB/Scientific/${LOWER_OPSYS}1/Scientific_mpi.so
+PYSITELIB/Scientific/${LOWER_OPSYS}1/Scientific_netcdf.so
+PYSITELIB/Scientific/DictWithDefault.py
+PYSITELIB/Scientific/Functions/Derivatives.py
+PYSITELIB/Scientific/Functions/FindRoot.py
+PYSITELIB/Scientific/Functions/FirstDerivatives.py
+PYSITELIB/Scientific/Functions/Interpolation.py
+PYSITELIB/Scientific/Functions/LeastSquares.py
+PYSITELIB/Scientific/Functions/Polynomial.py
+PYSITELIB/Scientific/Functions/Romberg.py
+PYSITELIB/Scientific/Functions/__init__.py
+PYSITELIB/Scientific/Geometry/Objects3D.py
+PYSITELIB/Scientific/Geometry/Quaternion.py
+PYSITELIB/Scientific/Geometry/TensorAnalysis.py
+PYSITELIB/Scientific/Geometry/TensorModule.py
+PYSITELIB/Scientific/Geometry/Transformation.py
+PYSITELIB/Scientific/Geometry/VectorModule.py
+PYSITELIB/Scientific/Geometry/__init__.py
+PYSITELIB/Scientific/IO/ArrayIO.py
+PYSITELIB/Scientific/IO/FortranFormat.py
+PYSITELIB/Scientific/IO/NetCDF.py
+PYSITELIB/Scientific/IO/PDB.py
+PYSITELIB/Scientific/IO/PDBExportFilters.py
+PYSITELIB/Scientific/IO/TextFile.py
+PYSITELIB/Scientific/IO/__init__.py
+PYSITELIB/Scientific/Include/Scientific/PyMPI_API.h
+PYSITELIB/Scientific/Include/Scientific/mpimodule.h
+PYSITELIB/Scientific/Include/Scientific/netcdfmodule.h
+PYSITELIB/Scientific/Include/scientific_netcdfmodule.h
+PYSITELIB/Scientific/Installation.py
+PYSITELIB/Scientific/MPI/IO.py
+PYSITELIB/Scientific/MPI/__init__.py
+PYSITELIB/Scientific/Mathematica.py
+PYSITELIB/Scientific/NumberDict.py
+PYSITELIB/Scientific/Physics/PhysicalQuantities.py
+PYSITELIB/Scientific/Physics/Potential.py
+PYSITELIB/Scientific/Physics/__init__.py
+PYSITELIB/Scientific/Statistics/Histogram.py
+PYSITELIB/Scientific/Statistics/__init__.py
+PYSITELIB/Scientific/TkWidgets/TkPlotCanvas.py
+PYSITELIB/Scientific/TkWidgets/TkVisualizationCanvas.py
+PYSITELIB/Scientific/TkWidgets/__init__.py
+PYSITELIB/Scientific/Visualization/Color.py
+PYSITELIB/Scientific/Visualization/VMD.py
+PYSITELIB/Scientific/Visualization/VRML.py
+PYSITELIB/Scientific/Visualization/VRML2.py
+PYSITELIB/Scientific/Visualization/__init__.py
+PYSITELIB/Scientific/__init__.py
+PYSITELIB/Scientific/indexing.py
+share/doc/html/py-Scientific/Scientific.html
+share/doc/html/py-Scientific/Scientific_1.html
+share/doc/html/py-Scientific/Scientific_10.html
+share/doc/html/py-Scientific/Scientific_11.html
+share/doc/html/py-Scientific/Scientific_12.html
+share/doc/html/py-Scientific/Scientific_13.html
+share/doc/html/py-Scientific/Scientific_14.html
+share/doc/html/py-Scientific/Scientific_15.html
+share/doc/html/py-Scientific/Scientific_16.html
+share/doc/html/py-Scientific/Scientific_17.html
+share/doc/html/py-Scientific/Scientific_18.html
+share/doc/html/py-Scientific/Scientific_19.html
+share/doc/html/py-Scientific/Scientific_2.html
+share/doc/html/py-Scientific/Scientific_20.html
+share/doc/html/py-Scientific/Scientific_21.html
+share/doc/html/py-Scientific/Scientific_22.html
+share/doc/html/py-Scientific/Scientific_23.html
+share/doc/html/py-Scientific/Scientific_24.html
+share/doc/html/py-Scientific/Scientific_25.html
+share/doc/html/py-Scientific/Scientific_26.html
+share/doc/html/py-Scientific/Scientific_27.html
+share/doc/html/py-Scientific/Scientific_28.html
+share/doc/html/py-Scientific/Scientific_29.html
+share/doc/html/py-Scientific/Scientific_3.html
+share/doc/html/py-Scientific/Scientific_30.html
+share/doc/html/py-Scientific/Scientific_31.html
+share/doc/html/py-Scientific/Scientific_32.html
+share/doc/html/py-Scientific/Scientific_33.html
+share/doc/html/py-Scientific/Scientific_34.html
+share/doc/html/py-Scientific/Scientific_35.html
+share/doc/html/py-Scientific/Scientific_36.html
+share/doc/html/py-Scientific/Scientific_37.html
+share/doc/html/py-Scientific/Scientific_4.html
+share/doc/html/py-Scientific/Scientific_5.html
+share/doc/html/py-Scientific/Scientific_6.html
+share/doc/html/py-Scientific/Scientific_7.html
+share/doc/html/py-Scientific/Scientific_8.html
+share/doc/html/py-Scientific/Scientific_9.html
+share/doc/py-Scientific/COPYRIGHT
+share/doc/py-Scientific/README
+share/doc/py-Scientific/manual.pdf
+share/examples/py-Scientific/README
+share/examples/py-Scientific/Setup.template
+share/examples/py-Scientific/compile.py
+share/examples/py-Scientific/demomodule.c
+share/examples/py-Scientific/netcdf_demo.py
+@dirrm share/examples/py-Scientific
+@dirrm share/doc/py-Scientific
+@dirrm share/doc/html/py-Scientific
+@dirrm PYINC/Scientific