git: dd2700abe122 - main - science/py-obspy: Revert port removal

From: Rene Ladan <rene_at_FreeBSD.org>
Date: Wed, 30 Sep 2026 22:27:35 UTC
The branch main has been updated by rene:

URL: https://cgit.FreeBSD.org/ports/commit/?id=dd2700abe122e30b5c9e502ed4bbf75b2f3e8d9b

commit dd2700abe122e30b5c9e502ed4bbf75b2f3e8d9b
Author:     Rene Ladan <rene@FreeBSD.org>
AuthorDate: 2026-09-30 22:24:52 +0000
Commit:     Rene Ladan <rene@FreeBSD.org>
CommitDate: 2026-09-30 22:27:13 +0000

    science/py-obspy: Revert port removal
    
    This reverts commit dc440d25c6facd3df348cb10cc85822d18f32e16.
---
 MOVED                      |  1 -
 science/Makefile           |  1 +
 science/py-obspy/Makefile  | 41 +++++++++++++++++++++++++++++++++++++++++
 science/py-obspy/distinfo  |  3 +++
 science/py-obspy/pkg-descr |  8 ++++++++
 5 files changed, 53 insertions(+), 1 deletion(-)

diff --git a/MOVED b/MOVED
index 6ae89feae81e..f809c3432268 100644
--- a/MOVED
+++ b/MOVED
@@ -5712,4 +5712,3 @@ devel/pyside2||2026-09-30|Has expired: Depends on deprecated Qt5 WebEngine
 devel/swig40|devel/swig|2026-09-30|Has expired: Outdated. Use devel/swig instead
 sysutils/rubygem-facter|sysutils/rubygem-openfact|2026-09-30|Has expired: Discontinued, use sysutils/rubygem-openfact
 textproc/libtextcat|textproc/libexttextcat|2026-09-30|Has expired: It has been superseded by textproc/libexttextcat
-science/py-obspy||2026-09-30|Has expired: Depends on expired databases/py-sqlalchemy10
diff --git a/science/Makefile b/science/Makefile
index 57e23c307dc3..a35ac631d9c9 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -399,6 +399,7 @@
     SUBDIR += py-nglview
     SUBDIR += py-nibabel
     SUBDIR += py-nixio
+    SUBDIR += py-obspy
     SUBDIR += py-oddt
     SUBDIR += py-openbabel
     SUBDIR += py-openpiv
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.