git: 0db904aa60ec - main - science/mcpl: New port: Monte Carlo Particle Lists library

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Thu, 09 Nov 2023 05:44:01 UTC
The branch main has been updated by yuri:

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

commit 0db904aa60ec673eee18b52d0d48ab4780d13518
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-11-09 04:33:38 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-11-09 05:43:56 +0000

    science/mcpl: New port: Monte Carlo Particle Lists library
---
 science/Makefile       |  1 +
 science/mcpl/Makefile  | 22 ++++++++++++++++++++++
 science/mcpl/distinfo  |  3 +++
 science/mcpl/pkg-descr |  7 +++++++
 science/mcpl/pkg-plist | 16 ++++++++++++++++
 5 files changed, 49 insertions(+)

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