commit: d98eb841fc410de9c7cca802e919f14a81236b01 Author: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de> AuthorDate: Thu Mar 6 15:54:43 2025 +0000 Commit: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de> CommitDate: Thu Mar 6 16:03:44 2025 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=d98eb841
sci-physics/recola2: new package, add 2.2.4 Co-authored-by: Nowa Ammerlaan <nowa <AT> gentoo.org> Closes: https://github.com/gentoo/sci/pull/1329 Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de> sci-physics/recola2/metadata.xml | 18 ++++++++++++ sci-physics/recola2/recola2-2.2.4.ebuild | 49 ++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) diff --git a/sci-physics/recola2/metadata.xml b/sci-physics/recola2/metadata.xml new file mode 100644 index 000000000..9b3a974d2 --- /dev/null +++ b/sci-physics/recola2/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>[email protected]</email> + <name>Alexander Puck Neuwirth</name> + </maintainer> + <maintainer type="project"> + <email>[email protected]</email> + <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). + </longdescription> + <use> + <flag name="SM">Use SM model</flag> + </use> +</pkgmetadata> diff --git a/sci-physics/recola2/recola2-2.2.4.ebuild b/sci-physics/recola2/recola2-2.2.4.ebuild new file mode 100644 index 000000000..1d96f2b4b --- /dev/null +++ b/sci-physics/recola2/recola2-2.2.4.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_{10..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://recola.hepforge.org/downloads/?f=${P}.tar.gz -> ${P}.tar.gz" + +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 +}
