aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2022-12-23 09:14:45 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2022-12-23 09:15:18 +0000
commitfdeb11a438e2d3851b2689aa9ec82b4a99b19e88 (patch)
treee5420a7c4d810a3c19815df5f176d60a23df8208
parent8dfcd1f2a8c9f11755447eddd98b8a8ab3ebc8a3 (diff)
downloadports-fdeb11a438e2d3851b2689aa9ec82b4a99b19e88.tar.gz
ports-fdeb11a438e2d3851b2689aa9ec82b4a99b19e88.zip
math/py-slepc4py: New port: SLEPc for Python
-rw-r--r--MOVED1
-rw-r--r--math/Makefile1
-rw-r--r--math/py-slepc4py/Makefile31
-rw-r--r--math/py-slepc4py/distinfo3
-rw-r--r--math/py-slepc4py/pkg-descr2
5 files changed, 37 insertions, 1 deletions
diff --git a/MOVED b/MOVED
index 023a8498196d..77dec04e5972 100644
--- a/MOVED
+++ b/MOVED
@@ -15703,7 +15703,6 @@ security/py-pyptlib||2020-12-29|Has expired: Uses deprecated version of python
japanese/py-zinnia||2020-12-29|Has expired: Uses deprecated version of python
www/py-pastescript||2020-12-29|Has expired: Uses deprecated version of python
databases/ldb14||2020-12-29|Has expired: Uses deprecated version of python
-math/py-slepc4py||2020-12-29|Has expired: Depends on broken and expiring math/slepc
multimedia/py-kaa-base||2020-12-29|Has expired: Uses deprecated version of python
devel/py-ydbf||2020-12-29|Has expired: Uses deprecated version of python
devel/py-SymbolType||2020-12-29|Has expired: Uses deprecated version of python
diff --git a/math/Makefile b/math/Makefile
index 61959da31c75..072c44ca5f1d 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -1012,6 +1012,7 @@
SUBDIR += py-secp256k1
SUBDIR += py-seriate
SUBDIR += py-simhash
+ SUBDIR += py-slepc4py
SUBDIR += py-snuggs
SUBDIR += py-spectral
SUBDIR += py-spglm
diff --git a/math/py-slepc4py/Makefile b/math/py-slepc4py/Makefile
new file mode 100644
index 000000000000..b1f9aefdcd62
--- /dev/null
+++ b/math/py-slepc4py/Makefile
@@ -0,0 +1,31 @@
+PORTNAME= slepc4py
+DISTVERSION= 3.18.1
+CATEGORIES= math python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= SLEPc for Python
+WWW= https://bitbucket.org/slepc/slepc4py
+
+LICENSE= BSD2CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE.rst
+
+PY_DEPENDS= ${PYNUMPY} \
+ ${PYTHON_PKGNAMEPREFIX}petsc4py>0:math/py-petsc4py@${PY_FLAVOR}
+BUILD_DEPENDS= ${PY_DEPENDS}
+RUN_DEPENDS= ${PY_DEPENDS}
+LIB_DEPENDS= libmpich.so:net/mpich \
+ libpetsc.so:science/PETSc \
+ libslepc.so:math/slepc
+RUN_DEPENDS= ${PYNUMPY}
+
+USES= fortran python:3.6+
+USE_PYTHON= distutils autoplist
+
+MAKE_ENV= PETSC_DIR=${LOCALBASE} SLEPC_DIR=${LOCALBASE}
+
+post-install:
+ @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/slepc4py/lib/SLEPc${PYTHON_EXT_SUFFIX}.so
+
+.include <bsd.port.mk>
diff --git a/math/py-slepc4py/distinfo b/math/py-slepc4py/distinfo
new file mode 100644
index 000000000000..6aaea9429b05
--- /dev/null
+++ b/math/py-slepc4py/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1671779456
+SHA256 (slepc4py-3.18.1.tar.gz) = 4c2bc0947d6a9cdb209e3174b7f54fe7b029220e2c90106f52844e8f8795f8f0
+SIZE (slepc4py-3.18.1.tar.gz) = 1183611
diff --git a/math/py-slepc4py/pkg-descr b/math/py-slepc4py/pkg-descr
new file mode 100644
index 000000000000..cd3d288e1c6a
--- /dev/null
+++ b/math/py-slepc4py/pkg-descr
@@ -0,0 +1,2 @@
+Python bindings for SLEPc, the Scalable Library for Eigenvalue Problem
+Computations.