summaryrefslogtreecommitdiff
path: root/science/code_saturne
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2020-12-23 18:37:11 +0000
committerThierry Thomas <thierry@FreeBSD.org>2020-12-23 18:37:11 +0000
commita4cacb7d6b9aef9c87b6b95eaee332f76e7bd015 (patch)
tree3f9fd9926866f663f4d9401cc4b454adbe7eabd4 /science/code_saturne
parent1eca7ed3a6dd6f58a2da30efdb2687ed9b083720 (diff)
downloadfreebsd-ports-a4cacb7d6b9aef9c87b6b95eaee332f76e7bd015.zip
Upgrade to 6.1.3 and enable Python bindings for PLE.
Changelog at <https://github.com/code-saturne/code_saturne/blob/v6.1/NEWS.md>.
Diffstat (limited to 'science/code_saturne')
-rw-r--r--science/code_saturne/Makefile11
-rw-r--r--science/code_saturne/distinfo6
-rw-r--r--science/code_saturne/pkg-plist15
3 files changed, 26 insertions, 6 deletions
diff --git a/science/code_saturne/Makefile b/science/code_saturne/Makefile
index 7e5b0597d23d..40dc520a4098 100644
--- a/science/code_saturne/Makefile
+++ b/science/code_saturne/Makefile
@@ -2,9 +2,8 @@
# $FreeBSD$
PORTNAME= code_saturne
-PORTVERSION= 6.1.2
+PORTVERSION= 6.1.3
DISTVERSIONPREFIX= v
-PORTREVISION= 4
CATEGORIES= science parallel
MAINTAINER= thierry@FreeBSD.org
@@ -36,9 +35,10 @@ CFLAGS+= -D__XSI_VISIBLE
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/libxml2
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --without-salome --without-salome-yacs --without-salome-kernel \
- --without-salome-gui
+ --without-salome-gui --enable-python
CONFIGURE_ENV= ac_cv_path_SED=${LOCALBASE}/bin/gsed
USE_LDCONFIG= yes
+INSTALL_TARGET= install-strip
BINARY_ALIAS= python=${PYTHON_CMD} \
pyrcc5=pyrcc5-${PYTHON_VER} \
pyuic5=pyuic5-${PYTHON_VER}
@@ -53,7 +53,9 @@ BLAS_CONFIGURE_ON= --with-blas=yes --with-blas-lib=${LOCALBASE}/lib --with-blas-
BLAS_LIB_DEPENDS= libopenblas.so:math/openblas
BATCH_DESC= Use Torque to submit batches
BATCH_RUN_DEPENDS= pbs-config:sysutils/torque
+MPI_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mpi4py>0:net/py-mpi4py@${PY_FLAVOR}
MPI_LIB_DEPENDS= libmpi.so:net/mpich
+MPI_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mpi4py>0:net/py-mpi4py@${PY_FLAVOR}
MPI_CONFIGURE_WITH= mpi
METIS_DESC= Support of METIS
METIS_LIB_DEPENDS= libmetis.so:math/metis
@@ -102,6 +104,9 @@ pre-configure:
${REINPLACE_CMD} -e 's|/usr/bin/env python|${PYTHON_CMD}|' \
${WRKSRC}/Makefile.am
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/code_saturne/cs_solver
+
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOCS:C|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
diff --git a/science/code_saturne/distinfo b/science/code_saturne/distinfo
index e16de049f8b1..c5c859a9eca8 100644
--- a/science/code_saturne/distinfo
+++ b/science/code_saturne/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1600007190
-SHA256 (code-saturne-code_saturne-v6.1.2_GH0.tar.gz) = 76c27fd8e1adbdeefa5f9b3f8d80ed33d4e851a2accd1c959a54f353149f8fd2
-SIZE (code-saturne-code_saturne-v6.1.2_GH0.tar.gz) = 19591303
+TIMESTAMP = 1608743108
+SHA256 (code-saturne-code_saturne-v6.1.3_GH0.tar.gz) = fcbd93ad3059ee256f59ce552e0ab2f7d894a84374cdae1a743574f4989eda0f
+SIZE (code-saturne-code_saturne-v6.1.3_GH0.tar.gz) = 19593748
diff --git a/science/code_saturne/pkg-plist b/science/code_saturne/pkg-plist
index 96dd5f274890..0740365c181e 100644
--- a/science/code_saturne/pkg-plist
+++ b/science/code_saturne/pkg-plist
@@ -1495,6 +1495,21 @@ lib/libsaturne.so
%%PYTHON_SITELIBDIR%%/code_saturne/trackcvg/__pycache__/resource_base_rc.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
%%PYTHON_SITELIBDIR%%/code_saturne/trackcvg/__pycache__/resource_base_rc.cpython-%%PYTHON_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/code_saturne/trackcvg/resource_base_rc.py
+%%PYTHON_SITELIBDIR%%/ple/Coupling.py
+%%PYTHON_SITELIBDIR%%/ple/Init.py
+%%PYTHON_SITELIBDIR%%/ple/__init__.py
+%%PYTHON_SITELIBDIR%%/ple/__pycache__/Coupling.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/ple/__pycache__/Coupling.cpython-%%PYTHON_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/ple/__pycache__/Init.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/ple/__pycache__/Init.cpython-%%PYTHON_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/ple/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/ple/__pycache__/__init__.cpython-%%PYTHON_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/ple/__pycache__/pyple_coupler.cpython-%%PYTHON_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/ple/__pycache__/pyple_coupler.cpython-%%PYTHON_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/ple/libpyplecoupling.so
+%%PYTHON_SITELIBDIR%%/ple/libpyplecoupling.so.0
+%%PYTHON_SITELIBDIR%%/ple/libpyplecoupling.so.0.0.0
+%%PYTHON_SITELIBDIR%%/ple/pyple_coupler.py
libexec/code_saturne/cs_check_syntax
libexec/code_saturne/cs_io_dump
libexec/code_saturne/cs_preprocess