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, 13 Feb 2025 10:55:37 +0000 (UTC) [thread overview]
Message-ID: <1739444104.d749883dd88112c89fad6f8efae0f2ed67b9dae6.alexander@gentoo> (raw)
commit: d749883dd88112c89fad6f8efae0f2ed67b9dae6
Author: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de>
AuthorDate: Thu Feb 13 10:53:49 2025 +0000
Commit: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de>
CommitDate: Thu Feb 13 10:55:04 2025 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=d749883d
sci-physics/cuttools: add 2.0.0, drop 1.9.3
Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de>
...cuttools-1.9.3.ebuild => cuttools-2.0.0.ebuild} | 30 +++++++++++++++++-----
1 file changed, 23 insertions(+), 7 deletions(-)
diff --git a/sci-physics/cuttools/cuttools-1.9.3.ebuild b/sci-physics/cuttools/cuttools-2.0.0.ebuild
similarity index 52%
rename from sci-physics/cuttools/cuttools-1.9.3.ebuild
rename to sci-physics/cuttools/cuttools-2.0.0.ebuild
index 03f84b63c..e67589246 100644
--- a/sci-physics/cuttools/cuttools-1.9.3.ebuild
+++ b/sci-physics/cuttools/cuttools-2.0.0.ebuild
@@ -5,39 +5,55 @@ EAPI=8
inherit fortran-2 toolchain-funcs
+MY_V="$(ver_cut 1).$(ver_cut 2)"
+
DESCRIPTION="Computing 1-loop amplitudes at the integrand level"
HOMEPAGE="https://www.ugr.es/~pittau/CutTools/"
-SRC_URI="https://www.ugr.es/~pittau/CutTools/${PN}_v${PV}.tar.gz"
+SRC_URI="https://www.ugr.es/~pittau/CutTools/${PN}_v${MY_V}.tar.gz"
S="${WORKDIR}"
-LICENSE="GPL-3"
+LICENSE="MIT"
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}"
+PATCHES=(
+ "${FILESDIR}/${PN}-1.9.3-unbundle.patch"
+)
+
src_prepare() {
default
- sed -i 's/^ALL =.*$/ALL = $(CTS)/' src/makefile || die
+ sed -i 's/^ALL =.*$/ALL = $(CTS)/' src/makefile || die
if use dummy ; then
cp "${FILESDIR}"/mpnumdummy.f90 src/cts/mpnumdummy.f90 || die
fi
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
- ${CXX} ${CXXFLAGS} -shared *.o -o lib${PN}.so || die
+ ${CXX} ${CXXFLAGS} ${LDFLAGS} -shared *.o -Wl,-soname,libcuttools.so -o lib${PN}.so || die
}
src_install() {
next reply other threads:[~2025-02-13 10:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-13 10:55 Alexander Puck Neuwirth [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-11-21 17:43 [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=1739444104.d749883dd88112c89fad6f8efae0f2ed67b9dae6.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