Skip to content

Commit d2b6d90

Browse files
committed
sci-physics/ninja: new package, add 1.2.0
Signed-off-by: Alexander Puck Neuwirth <[email protected]> Closes: #1339
1 parent 6df6064 commit d2b6d90

File tree

3 files changed

+79
-0
lines changed

3 files changed

+79
-0
lines changed

sci-physics/ninja/Manifest

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DIST ninja-1.2.0.tar.gz 595807 BLAKE2B 817737b2e33ebfc0f805affd60e5d988685fa201470a9d2d3804412028c09f5b3115a4d376a2affd2243ce683cddb655bf2b8ea306a634283d158ec48d9b2e54 SHA512 4b7885b163fd370ee34d32e09ecc8202b6933b3c968997a9fcaf49da72579d87ecf3523144ad4c2b07d7ab3900cd3df31fd24f2ddf1d77bc0d47a798f614158a

sci-physics/ninja/metadata.xml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
3+
<pkgmetadata>
4+
<maintainer type="person">
5+
<email>[email protected]</email>
6+
<name>Alexander Puck Neuwirth</name>
7+
</maintainer>
8+
<maintainer type="project">
9+
<email>[email protected]</email>
10+
<name>Gentoo Physics Project</name>
11+
</maintainer>
12+
13+
<longdescription lang="en">
14+
Ninja is a public C++ library which implements the Integrand Reduction via Laurent Expansion method for the computation of one-loop integrals.
15+
</longdescription>
16+
<upstream>
17+
<remote-id type="github">peraro/ninja</remote-id>
18+
</upstream>
19+
<use>
20+
<flag name="static-libs">Build static library</flag>
21+
<flag name="gosam">Build gosam interface</flag>
22+
</use>
23+
24+
</pkgmetadata>

sci-physics/ninja/ninja-1.2.0.ebuild

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Copyright 2025 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=8
5+
6+
inherit autotools fortran-2
7+
8+
DESCRIPTION="Integrand Reduction via Laurent Expansion for one-loop integrals."
9+
HOMEPAGE="
10+
https://github.com/peraro/ninja
11+
https://ninja.hepforge.org/
12+
"
13+
SRC_URI="
14+
https://github.com/peraro/ninja/releases/download/v${PV}/${PN}-latest.tar.gz -> ${P}.tar.gz
15+
"
16+
17+
LICENSE="GPL-3+"
18+
SLOT="0"
19+
KEYWORDS="~amd64"
20+
IUSE="static-libs gosam" # quad
21+
22+
RDEPEND="
23+
sci-physics/oneloop
24+
sci-physics/looptools
25+
"
26+
DEPEND="${RDEPEND}"
27+
28+
src_prepare() {
29+
default
30+
eautoreconf
31+
}
32+
33+
src_configure() {
34+
local myeconfargs=(
35+
FCINCLUDE=-I"${ESYSROOT}/usr/include" # oneloop/avholo fortran mods
36+
--with-looptools
37+
--with-avholo
38+
$(use_enable static-libs static)
39+
$(use_enable gosam)
40+
#$(use_enable quad quadninja) # not working yet
41+
)
42+
43+
CONFIG_SHELL=${ESYSROOT}/bin/bash econf "${myeconfargs[@]}"
44+
}
45+
46+
src_compile() {
47+
# single thread force needed since fortan mods depend on each other
48+
emake -j1
49+
}
50+
51+
src_install() {
52+
default
53+
find "${ED}" -name '*.la' -delete || die
54+
}

0 commit comments

Comments
 (0)