aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2023-11-09 04:33:38 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2023-11-09 05:43:56 +0000
commit0db904aa60ec673eee18b52d0d48ab4780d13518 (patch)
tree349744ff39eed4d4d063d67df056f054514d8eb4
parent65e72753aa722ac52b5821714e3d9eab64599914 (diff)
downloadports-0db904aa60ec673eee18b52d0d48ab4780d13518.tar.gz
ports-0db904aa60ec673eee18b52d0d48ab4780d13518.zip
science/mcpl: New port: Monte Carlo Particle Lists library
-rw-r--r--science/Makefile1
-rw-r--r--science/mcpl/Makefile22
-rw-r--r--science/mcpl/distinfo3
-rw-r--r--science/mcpl/pkg-descr7
-rw-r--r--science/mcpl/pkg-plist16
5 files changed, 49 insertions, 0 deletions
diff --git a/science/Makefile b/science/Makefile
index 2c091da790bd..f1da020fbb7f 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -175,6 +175,7 @@
SUBDIR += maeparser
SUBDIR += massxpert
SUBDIR += mbdyn
+ SUBDIR += mcpl
SUBDIR += mcstas
SUBDIR += mcstas-comps
SUBDIR += mctc-lib
diff --git a/science/mcpl/Makefile b/science/mcpl/Makefile
new file mode 100644
index 000000000000..dc33b9d36a3e
--- /dev/null
+++ b/science/mcpl/Makefile
@@ -0,0 +1,22 @@
+PORTNAME= mcpl
+DISTVERSIONPREFIX= v
+DISTVERSION= 1.6.2
+CATEGORIES= science # physics
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Monte Carlo Particle Lists library
+WWW= https://mctools.github.io/mcpl/
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= cmake python shebangfix
+USE_LDCONFIG= yes
+
+USE_GITHUB= yes
+GH_ACCOUNT= mctools
+
+SHEBANG_FILES= src/python/pymcpltool \
+ cmake/mcpl-config.in
+
+.include <bsd.port.mk>
diff --git a/science/mcpl/distinfo b/science/mcpl/distinfo
new file mode 100644
index 000000000000..815384a71e3e
--- /dev/null
+++ b/science/mcpl/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1699499204
+SHA256 (mctools-mcpl-v1.6.2_GH0.tar.gz) = 02ec79505ae57a8850ce11734e36f4fb451823e599c679d26d2f200500ca51b2
+SIZE (mctools-mcpl-v1.6.2_GH0.tar.gz) = 1092526
diff --git a/science/mcpl/pkg-descr b/science/mcpl/pkg-descr
new file mode 100644
index 000000000000..1f1c245979b0
--- /dev/null
+++ b/science/mcpl/pkg-descr
@@ -0,0 +1,7 @@
+MCPL is a binary file format for usage in physics simulations.
+
+MCPL files contain lists of particle state information, and allows for easy
+storage and interchange of particles between various Monte Carlo simulation
+applications. It is implemented in portable C code and is made available to
+the scientific community, along with converters and plugins for several popular
+simulation packages.
diff --git a/science/mcpl/pkg-plist b/science/mcpl/pkg-plist
new file mode 100644
index 000000000000..f758f64b50a3
--- /dev/null
+++ b/science/mcpl/pkg-plist
@@ -0,0 +1,16 @@
+bin/mcpl-config
+bin/mcpl2phits
+bin/mcpl2ssw
+bin/mcpltool
+bin/phits2mcpl
+bin/pymcpltool
+bin/ssw2mcpl
+include/mcpl.h
+lib/cmake/MCPL/MCPLConfig.cmake
+lib/cmake/MCPL/MCPLConfigVersion.cmake
+lib/cmake/MCPL/MCPLTargets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/MCPL/MCPLTargets.cmake
+lib/libmcpl.so
+lib/libphitsmcpl.so
+lib/libsswmcpl.so
+share/MCPL/python/mcpl.py