commit: fd813222637739c8de11f1316e57a18db7d7ab31
Author: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT>
de>
AuthorDate: Wed Jun 4 17:43:05 2025 +0000
Commit: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT>
de>
CommitDate: Wed Jun 4 17:43:05 2025 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=fd813222
sci-physics/recola2: add 2.2.5
Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de>
sci-physics/recola2/metadata.xml | 5 +++-
sci-physics/recola2/recola2-2.2.5.ebuild | 49 ++++++++++++++++++++++++++++++++
2 files changed, 53 insertions(+), 1 deletion(-)
diff --git a/sci-physics/recola2/metadata.xml b/sci-physics/recola2/metadata.xml
index 9b3a974d2..9305e7209 100644
--- a/sci-physics/recola2/metadata.xml
+++ b/sci-physics/recola2/metadata.xml
@@ -10,9 +10,12 @@
<name>Gentoo Physics Project</name>
</maintainer>
<longdescription lang="en">
- RECOLA is a Fortran95 computer program for the automated generation and
numerical computation of tree and one-loop amplitudes at next-to-leading order
(EW, QCD) in the Standard Model (SM) and Beyond the SM (BSM).
+ Recola2 is a program for the generation and numerical
evaluation of amplitudes in general quantum field theories at one-loop order.
</longdescription>
<use>
<flag name="SM">Use SM model</flag>
</use>
+ <upstream>
+ <remote-id type="gitlab">recola/recola2</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/sci-physics/recola2/recola2-2.2.5.ebuild
b/sci-physics/recola2/recola2-2.2.5.ebuild
new file mode 100644
index 000000000..5e898c596
--- /dev/null
+++ b/sci-physics/recola2/recola2-2.2.5.ebuild
@@ -0,0 +1,49 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CMAKE_MAKEFILE_GENERATOR="emake"
+PYTHON_COMPAT=( python3_{11..13} )
+
+inherit fortran-2 cmake python-single-r1
+
+DESCRIPTION="Recursive Computation of 1-Loop Amplitudes."
+HOMEPAGE="https://recola.gitlab.io/recola2/index.html"
+SRC_URI="https://gitlab.com/recola/recola2/-/archive/${PV}/${P}.tar.bz2"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE="+SM" # TODO add more models here and below
+REQUIRED_USE="${PYTHON_REQUIRED_USE} || ( SM )"
+
+DEPEND="
+ sci-mathematics/otter
+ sci-physics/collier
+ SM? ( sci-physics/recola2-SM )
+ ${PYTHON_DEPS}
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ # CMAKE should look in system install for required libs
+ sed -e 's/NO_DEFAULT_PATH//g' -i src/CMakeLists.txt || die
+ cmake_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DLIB_INSTALL_DIR="${EPREFIX}"/usr/$(get_libdir)
+
-DSYSCONFIG_INSTALL_DIR="${EPREFIX}"/usr/$(get_libdir)/cmake/recola
+ -DCMAKE_PREFIX_PATH=/usr/$(get_libdir)/
+ -Dwith_python3=ON
+ )
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+ python_optimize
+}