From nobody Mon Oct 11 15:51:42 2021 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 7CDC417F57CF; Mon, 11 Oct 2021 15:51:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HSjvy6yvkz3LwL; Mon, 11 Oct 2021 15:51:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6CDFE23B25; Mon, 11 Oct 2021 15:51:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 19BFpgpX040302; Mon, 11 Oct 2021 15:51:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 19BFpgC7040301; Mon, 11 Oct 2021 15:51:42 GMT (envelope-from git) Date: Mon, 11 Oct 2021 15:51:42 GMT Message-Id: <202110111551.19BFpgC7040301@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 2944d20f6bb5 - main - science/py-OpenMC: New port: Monte Carlo neutron and photon transport simulation code (Python) List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2944d20f6bb513a39d5990364d7ae9f5ceee5704 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=2944d20f6bb513a39d5990364d7ae9f5ceee5704 commit 2944d20f6bb513a39d5990364d7ae9f5ceee5704 Author: Yuri Victorovich AuthorDate: 2021-10-11 15:39:37 +0000 Commit: Yuri Victorovich CommitDate: 2021-10-11 15:51:36 +0000 science/py-OpenMC: New port: Monte Carlo neutron and photon transport simulation code (Python) --- science/Makefile | 1 + science/py-OpenMC/Makefile | 41 +++++++++++++++++++++++++++++++++++++++++ science/py-OpenMC/distinfo | 3 +++ science/py-OpenMC/pkg-descr | 12 ++++++++++++ 4 files changed, 57 insertions(+) diff --git a/science/Makefile b/science/Makefile index 421d2e26b93e..76060442c7d4 100644 --- a/science/Makefile +++ b/science/Makefile @@ -232,6 +232,7 @@ SUBDIR += py-MDAnalysis SUBDIR += py-MDAnalysisTests SUBDIR += py-OpenFermion + SUBDIR += py-OpenMC SUBDIR += py-PubChemPy SUBDIR += py-PyFR SUBDIR += py-PyNE diff --git a/science/py-OpenMC/Makefile b/science/py-OpenMC/Makefile new file mode 100644 index 000000000000..707b3e442066 --- /dev/null +++ b/science/py-OpenMC/Makefile @@ -0,0 +1,41 @@ +PORTNAME= OpenMC +DISTVERSIONPREFIX= v +DISTVERSION= 0.12.2 +CATEGORIES= science +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Monte Carlo neutron and photon transport simulation code (Python) + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +PY_DEPENDS= ${PYNUMPY} \ + ${PYTHON_PKGNAMEPREFIX}h5py>0:science/py-h5py@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}ipython>0:devel/ipython@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}lxml>0:devel/py-lxml@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pandas>0:math/py-pandas@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}uncertainties>0:math/py-uncertainties@${PY_FLAVOR} +BUILD_DEPENDS= openmc>0:science/openmc \ + ${PY_DEPENDS} +RUN_DEPENDS= openmc>0:science/openmc \ + ${PY_DEPENDS} + +USES= python +USE_PYTHON= distutils concurrent autoplist + +USE_GITHUB= yes +GH_ACCOUNT= ${PORTNAME:tl}-dev +GH_PROJECT= ${PORTNAME:tl} + +PLIST_FILES= ${PYTHON_SITELIBDIR}/openmc/lib/libopenmc.so + +post-install: + # strip + @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/openmc/data/*.so + # link the library + @${LN} -s ${LOCALBASE}/lib/libopenmc.so ${STAGEDIR}${PYTHON_SITELIBDIR}/openmc/lib/libopenmc.so + +.include diff --git a/science/py-OpenMC/distinfo b/science/py-OpenMC/distinfo new file mode 100644 index 000000000000..1250d121dfe1 --- /dev/null +++ b/science/py-OpenMC/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1633806014 +SHA256 (openmc-dev-openmc-v0.12.2_GH0.tar.gz) = 29ca66d0e7140357d747516807c91cbf1aace0ebc29dfe9650e9da3c2975dd94 +SIZE (openmc-dev-openmc-v0.12.2_GH0.tar.gz) = 8316985 diff --git a/science/py-OpenMC/pkg-descr b/science/py-OpenMC/pkg-descr new file mode 100644 index 000000000000..0b8570e22ec6 --- /dev/null +++ b/science/py-OpenMC/pkg-descr @@ -0,0 +1,12 @@ +Python bindings for OpenMC. + +OpenMC is a community-developed Monte Carlo neutron and photon transport +simulation code. It is capable of performing fixed source, k-eigenvalue, and +subcritical multiplication calculations on models built using either a +constructive solid geometry or CAD representation. OpenMC supports both +continuous-energy and multigroup transport. The continuous-energy particle +interaction data is based on a native HDF5 format that can be generated from +ACE files produced by NJOY. Parallelism is enabled via a hybrid MPI and OpenMP +programming model. + +WWW: https://openmc.org/