From: "Alexander Puck Neuwirth" <alexander@neuwirth-informatik.de>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-physics/cuttools/
Date: Thu, 21 Nov 2024 17:43:57 +0000 (UTC) [thread overview]
Message-ID: <1732208752.c25717f3afb7bbd9f39d9f57f6b5e4ae908b5dbd.alexander@gentoo> (raw)
commit: c25717f3afb7bbd9f39d9f57f6b5e4ae908b5dbd
Author: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de>
AuthorDate: Thu Nov 21 17:05:52 2024 +0000
Commit: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de>
CommitDate: Thu Nov 21 17:05:52 2024 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=c25717f3
sci-physics/cuttools: expose mpfun90
Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de>
sci-physics/cuttools/cuttools-1.9.3-r1.ebuild | 15 ++++++++++++---
sci-physics/cuttools/metadata.xml | 3 ++-
2 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/sci-physics/cuttools/cuttools-1.9.3-r1.ebuild b/sci-physics/cuttools/cuttools-1.9.3-r1.ebuild
index e2bd4df9d..f27b5beb6 100644
--- a/sci-physics/cuttools/cuttools-1.9.3-r1.ebuild
+++ b/sci-physics/cuttools/cuttools-1.9.3-r1.ebuild
@@ -14,11 +14,11 @@ LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
-IUSE="+dummy"
+IUSE="+dummy mpfun90"
DEPEND="
sci-libs/mpfun90
sci-physics/qcdloop
- sci-physics/oneloop[dpkind,qpkind16,-qpkind,-tlevel]
+ sci-physics/oneloop[dpkind,qpkind16,-qpkind,-tlevel,mpfun90?]
"
RDEPEND="${DEPEND}"
@@ -35,10 +35,19 @@ src_prepare() {
if use dummy ; then
sed -i 's/CTS =/CTS = mpnumdummy.o/' src/makefile || die
fi
+ if use mpfun90; then
+ sed -i 's/PRECISION=.*$/PRECISION= MP/g' makefile || die
+ else
+ sed -i 's/PRECISION=.*$/PRECISION= QP/g' makefile || die
+ fi
}
src_compile() {
- emake -j1 FFLAGS="${FFLAGS} -I${ESYSROOT}/usr/include -fPIC -std=legacy"
+ if use mpfun90; then
+ emake -j1 FFLAGS="${FFLAGS} -I${ESYSROOT}/usr/include -fPIC -std=legacy" mp
+ else
+ emake -j1 FFLAGS="${FFLAGS} -I${ESYSROOT}/usr/include -fPIC -std=legacy" qp
+ fi
tc-export AR CXX
cd includects || die
${AR} -x libcts.a || die
diff --git a/sci-physics/cuttools/metadata.xml b/sci-physics/cuttools/metadata.xml
index ceddefcf0..8a4566dbf 100644
--- a/sci-physics/cuttools/metadata.xml
+++ b/sci-physics/cuttools/metadata.xml
@@ -17,6 +17,7 @@
the 2-, 3-, and 4-point tensor coefficient functions.
</longdescription>
<use>
- <flag name="dummy">Add dummy module for OpenLoops</flag>
+ <flag name="dummy">Add dummy module for <pkg>sci-physics/openloops</pkg></flag>
+ <flag name="mpfun90">Use <pkg>sci-libs/mpfun90</pkg></flag>
</use>
</pkgmetadata>
next reply other threads:[~2024-11-21 17:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-21 17:43 Alexander Puck Neuwirth [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-02-13 10:55 [gentoo-commits] proj/sci:master commit in: sci-physics/cuttools/ Alexander Puck Neuwirth
2024-11-15 9:30 Alexander Puck Neuwirth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1732208752.c25717f3afb7bbd9f39d9f57f6b5e4ae908b5dbd.alexander@gentoo \
--to=alexander@neuwirth-informatik.de \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox