git: 051017be315b - main - science/py-obspy: Resurrect and fix build
Date: Thu, 03 Sep 2026 11:02:58 UTC
The branch main has been updated by wen:
URL: https://cgit.FreeBSD.org/ports/commit/?id=051017be315bed55935b019b54f5f662503f7d24
commit 051017be315bed55935b019b54f5f662503f7d24
Author: Wen Heping <wen@FreeBSD.org>
AuthorDate: 2026-09-03 11:01:39 +0000
Commit: Wen Heping <wen@FreeBSD.org>
CommitDate: 2026-09-03 11:02:30 +0000
science/py-obspy: Resurrect and fix build
---
science/Makefile | 1 +
science/py-obspy/Makefile | 41 +++++++++++++++++++++++++++++++++++++++++
science/py-obspy/distinfo | 3 +++
science/py-obspy/pkg-descr | 8 ++++++++
4 files changed, 53 insertions(+)
diff --git a/science/Makefile b/science/Makefile
index d411f258d702..cde38703f036 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -400,6 +400,7 @@
SUBDIR += py-nglview
SUBDIR += py-nibabel
SUBDIR += py-nixio
+ SUBDIR += py-obspy
SUBDIR += py-oddt
SUBDIR += py-openEMS
SUBDIR += py-openbabel
diff --git a/science/py-obspy/Makefile b/science/py-obspy/Makefile
new file mode 100644
index 000000000000..d605dc3dc0ef
--- /dev/null
+++ b/science/py-obspy/Makefile
@@ -0,0 +1,41 @@
+PORTNAME= obspy
+PORTVERSION= 1.5.0
+PORTREVISION= 1
+CATEGORIES= science python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= wen@FreeBSD.org
+COMMENT= Python framework for seismological observatories
+WWW= https://www.obspy.org/
+
+LICENSE= LGPL3
+
+DEPRECATED= Depends on expired databases/py-sqlalchemy10
+EXPIRATION_DATE=2026-08-31
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.16:math/py-numpy@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}scipy>=1.7.0:science/py-scipy@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}future>=0.12.4:devel/py-future@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}matplotlib>=3.3.0:math/py-matplotlib@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}lxml>=2.2:devel/py-lxml@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}decorator>=0:devel/py-decorator@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}sqlalchemy14>=0:databases/py-sqlalchemy14@${PY_FLAVOR}
+RUN_DEPENDS:= ${BUILD_DEPENDS}
+
+USES= fortran python shebangfix
+SHEBANG_FILES= obspy/taup/tests/data/TauP_test_data/gendata.sh
+USE_LDCONFIG= yes
+LDFLAGS+= -shared
+USE_PYTHON= autoplist distutils
+
+LDFLAGS+= -shared
+
+post-patch:
+ ${REINPLACE_CMD} -e "s#FC#${FC}#g" ${WRKSRC}/setup.py
+
+post-install:
+ @${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/obspy/lib/*.so
+
+.include <bsd.port.mk>
diff --git a/science/py-obspy/distinfo b/science/py-obspy/distinfo
new file mode 100644
index 000000000000..3afe7cb75e17
--- /dev/null
+++ b/science/py-obspy/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1773444613
+SHA256 (obspy-1.5.0.tar.gz) = 88202d8a616dbe789a6c35bbf86d1008dd1b78b300cde92174a9d76d00af666e
+SIZE (obspy-1.5.0.tar.gz) = 17869707
diff --git a/science/py-obspy/pkg-descr b/science/py-obspy/pkg-descr
new file mode 100644
index 000000000000..7a3adba1e1a0
--- /dev/null
+++ b/science/py-obspy/pkg-descr
@@ -0,0 +1,8 @@
+ObsPy is an open-source project dedicated to provide a Python framework for
+processing seismological data. It provides parsers for common file formats,
+clients to access data centers and seismological signal processing routines
+which allow the manipulation of seismological time series (see Beyreuther
+et al. 2010, Megies et al. 2011).
+
+The goal of the ObsPy project is to facilitate rapid application development
+for seismology.