aboutsummaryrefslogtreecommitdiffstats
path: root/science
diff options
context:
space:
mode:
authorwen <wen@FreeBSD.org>2012-01-16 14:55:05 +0800
committerwen <wen@FreeBSD.org>2012-01-16 14:55:05 +0800
commit5fc4674049eb724ff3035b3d462546707bd3d342 (patch)
treee45bfb9feaeecf3352fa851fa2e294da16dfbebf /science
parentf17d88301ddb9824a9fc6ca59c01fdea2104fa28 (diff)
downloadfreebsd-ports-gnome-5fc4674049eb724ff3035b3d462546707bd3d342.tar.gz
freebsd-ports-gnome-5fc4674049eb724ff3035b3d462546707bd3d342.tar.zst
freebsd-ports-gnome-5fc4674049eb724ff3035b3d462546707bd3d342.zip
The obspy.taup package contains Python wrappers for iaspei-tau - a travel
time library by Arthur Snoke (http://www.iris.edu/pub/programs/iaspei-tau/). The library iaspei-tau is written in Fortran and interfaced via Python ctypes. WWW: http://www.obspy.org/
Diffstat (limited to 'science')
-rw-r--r--science/Makefile1
-rw-r--r--science/py-obspy.taup/Makefile26
-rw-r--r--science/py-obspy.taup/distinfo2
-rw-r--r--science/py-obspy.taup/files/patch-setup.py11
-rw-r--r--science/py-obspy.taup/pkg-descr5
-rw-r--r--science/py-obspy.taup/pkg-plist59
6 files changed, 104 insertions, 0 deletions
diff --git a/science/Makefile b/science/Makefile
index 1f2b7040d1ea..3b620aa9c7f3 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -159,6 +159,7 @@
SUBDIR += py-obspy.iris
SUBDIR += py-obspy.mseed
SUBDIR += py-obspy.signal
+ SUBDIR += py-obspy.taup
SUBDIR += py-obspy.wav
SUBDIR += py-obspy.xseed
SUBDIR += py-openbabel
diff --git a/science/py-obspy.taup/Makefile b/science/py-obspy.taup/Makefile
new file mode 100644
index 000000000000..029d6464591e
--- /dev/null
+++ b/science/py-obspy.taup/Makefile
@@ -0,0 +1,26 @@
+# New ports collection makefile for: py-obspy.taup
+# Date created: Jan 11, 2012
+# Whom: Wen Heping <wenheping@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= obspy.taup
+PORTVERSION= 0.5.1
+CATEGORIES= science python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= wen@FreeBSD.org
+COMMENT= Travel time calculation tool for ObsPy
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}obspy-core>0:${PORTSDIR}/science/py-obspy-core
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}obspy-core>0:${PORTSDIR}/science/py-obspy-core
+
+USE_ZIP= yes
+USE_FORTRAN= yes
+USE_PYTHON= yes
+USE_PYDISTUTILS= easy_install
+PYEASYINSTALL_ARCHDEP= yes
+
+.include <bsd.port.mk>
diff --git a/science/py-obspy.taup/distinfo b/science/py-obspy.taup/distinfo
new file mode 100644
index 000000000000..3c95c338425b
--- /dev/null
+++ b/science/py-obspy.taup/distinfo
@@ -0,0 +1,2 @@
+SHA256 (obspy.taup-0.5.1.zip) = c952f2d32ecd7a77cd5c9880860fa12d0cf6c1432435a17f496d86ea62f27562
+SIZE (obspy.taup-0.5.1.zip) = 546579
diff --git a/science/py-obspy.taup/files/patch-setup.py b/science/py-obspy.taup/files/patch-setup.py
new file mode 100644
index 000000000000..db9546c4681d
--- /dev/null
+++ b/science/py-obspy.taup/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig 2012-01-16 08:34:50.000000000 +0800
++++ setup.py 2012-01-16 08:35:13.000000000 +0800
+@@ -53,7 +53,7 @@
+ # Monkey patch UnixCCompiler for Unix, Linux and MacOS
+ UnixCCompiler.src_extensions.append(".f")
+ def _compile(self, obj, src, *args, **kwargs): #@UnusedVariable
+- self.compiler_so = ["gfortran"]
++ self.compiler_so = [os.environ.get("F77")]
+ cc_args = ['-c', '-fno-underscoring']
+ if sys.platform == 'darwin':
+ self.compiler_so = _darwin_compiler_fixup(self.compiler_so,
diff --git a/science/py-obspy.taup/pkg-descr b/science/py-obspy.taup/pkg-descr
new file mode 100644
index 000000000000..cfe0dff27f74
--- /dev/null
+++ b/science/py-obspy.taup/pkg-descr
@@ -0,0 +1,5 @@
+The obspy.taup package contains Python wrappers for iaspei-tau - a travel
+time library by Arthur Snoke (http://www.iris.edu/pub/programs/iaspei-tau/).
+The library iaspei-tau is written in Fortran and interfaced via Python ctypes.
+
+WWW: http://www.obspy.org/
diff --git a/science/py-obspy.taup/pkg-plist b/science/py-obspy.taup/pkg-plist
new file mode 100644
index 000000000000..de5783a13501
--- /dev/null
+++ b/science/py-obspy.taup/pkg-plist
@@ -0,0 +1,59 @@
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/PKG-INFO
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/SOURCES.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/dependency_links.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/namespace_packages.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/native_libs.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/not-zip-safe
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/requires.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/top_level.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/__init__.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/__init__.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/__init__.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/LICENSE.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/README.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/VERSION.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/__init__.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/__init__.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/__init__.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/lib
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/lib/libtaup.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/lib/libtaup.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/lib/libtaup.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/lib/libtaup.so
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/src
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/src/emdlv.f
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/src/iaspei-tau.tgz
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/src/libtau.f
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/src/ttimes_subrout.f
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/src/ttlim.inc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/tables
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/tables/ak135.hed
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/tables/ak135.tbl
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/tables/iasp91.hed
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/tables/iasp91.tbl
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/taup.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/taup.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/taup.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/tests
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/tests/__init__.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/tests/__init__.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/tests/__init__.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/tests/data
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/tests/data/sample_ttimes_ak135.lst
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/tests/data/sample_ttimes_iasp91.lst
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/tests/test_taup.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/tests/test_taup.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/tests/test_taup.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/util.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/util.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/util.pyo
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/tests/data
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/tests
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/tables
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/src
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup/lib
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy/taup
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/obspy
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%