commit: d2b6d90a67688b68ae3f99ef35b2fed29d9b85e6 Author: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de> AuthorDate: Wed Mar 26 12:13:16 2025 +0000 Commit: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de> CommitDate: Wed Mar 26 16:01:16 2025 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=d2b6d90a
sci-physics/ninja: new package, add 1.2.0 Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de> Closes: https://github.com/gentoo/sci/pull/1339 sci-physics/ninja/metadata.xml | 24 ++++++++++++++++ sci-physics/ninja/ninja-1.2.0.ebuild | 54 ++++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) diff --git a/sci-physics/ninja/metadata.xml b/sci-physics/ninja/metadata.xml new file mode 100644 index 000000000..bfd498a7a --- /dev/null +++ b/sci-physics/ninja/metadata.xml @@ -0,0 +1,24 @@ +<?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"> + Ninja is a public C++ library which implements the Integrand Reduction via Laurent Expansion method for the computation of one-loop integrals. + </longdescription> + <upstream> + <remote-id type="github">peraro/ninja</remote-id> + </upstream> + <use> + <flag name="static-libs">Build static library</flag> + <flag name="gosam">Build gosam interface</flag> + </use> + +</pkgmetadata> diff --git a/sci-physics/ninja/ninja-1.2.0.ebuild b/sci-physics/ninja/ninja-1.2.0.ebuild new file mode 100644 index 000000000..4a25ad5df --- /dev/null +++ b/sci-physics/ninja/ninja-1.2.0.ebuild @@ -0,0 +1,54 @@ +# Copyright 2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools fortran-2 + +DESCRIPTION="Integrand Reduction via Laurent Expansion for one-loop integrals." +HOMEPAGE=" + https://github.com/peraro/ninja + https://ninja.hepforge.org/ +" +SRC_URI=" + https://github.com/peraro/ninja/releases/download/v${PV}/${PN}-latest.tar.gz -> ${P}.tar.gz +" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="static-libs gosam" # quad + +RDEPEND=" + sci-physics/oneloop + sci-physics/looptools +" +DEPEND="${RDEPEND}" + +src_prepare() { + default + eautoreconf +} + +src_configure() { + local myeconfargs=( + FCINCLUDE=-I"${ESYSROOT}/usr/include" # oneloop/avholo fortran mods + --with-looptools + --with-avholo + $(use_enable static-libs static) + $(use_enable gosam) + #$(use_enable quad quadninja) # not working yet + ) + + CONFIG_SHELL=${ESYSROOT}/bin/bash econf "${myeconfargs[@]}" +} + +src_compile() { + # single thread force needed since fortan mods depend on each other + emake -j1 +} + +src_install() { + default + find "${ED}" -name '*.la' -delete || die +}
