* [gentoo-commits] proj/sci:master commit in: sci-physics/cuttools/
@ 2024-11-15 9:30 Alexander Puck Neuwirth
0 siblings, 0 replies; 3+ messages in thread
From: Alexander Puck Neuwirth @ 2024-11-15 9:30 UTC (permalink / raw
To: gentoo-commits
commit: 92f516f358d4c8d8b9d4c3a8203330923d3c33d7
Author: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de>
AuthorDate: Fri Nov 15 09:28:46 2024 +0000
Commit: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de>
CommitDate: Fri Nov 15 09:29:16 2024 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=92f516f3
sci-physics/cuttools: add 1.9.3
Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de>
sci-physics/cuttools/cuttools-1.9.3.ebuild | 52 ++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
diff --git a/sci-physics/cuttools/cuttools-1.9.3.ebuild b/sci-physics/cuttools/cuttools-1.9.3.ebuild
new file mode 100644
index 000000000..03f84b63c
--- /dev/null
+++ b/sci-physics/cuttools/cuttools-1.9.3.ebuild
@@ -0,0 +1,52 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit fortran-2 toolchain-funcs
+
+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"
+S="${WORKDIR}"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE="+dummy"
+DEPEND="
+ sci-physics/qcdloop
+ sci-physics/oneloop[dpkind,qpkind16,-qpkind,-tlevel]
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ default
+ 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
+}
+
+src_compile() {
+ emake -j1 FFLAGS="${FFLAGS} -I${ESYSROOT}/usr/include -fPIC -std=legacy"
+ tc-export AR CXX
+ cd includects || die
+ ${AR} -x libcts.a || die
+ ${CXX} ${CXXFLAGS} -shared *.o -o lib${PN}.so || die
+}
+
+src_install() {
+ cd includects || die
+ dolib.so lib${PN}.so
+ cd .. || die
+ mv includects ${PN} || die
+ rm ${PN}/*.a || die
+ rm ${PN}/*.so || die
+ rm ${PN}/*.o || die
+ doheader -r ${PN}
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-physics/cuttools/
@ 2024-11-21 17:43 Alexander Puck Neuwirth
0 siblings, 0 replies; 3+ messages in thread
From: Alexander Puck Neuwirth @ 2024-11-21 17:43 UTC (permalink / raw
To: gentoo-commits
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>
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-physics/cuttools/
@ 2025-02-13 10:55 Alexander Puck Neuwirth
0 siblings, 0 replies; 3+ messages in thread
From: Alexander Puck Neuwirth @ 2025-02-13 10:55 UTC (permalink / raw
To: gentoo-commits
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() {
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-02-13 10:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-21 17:43 [gentoo-commits] proj/sci:master commit in: sci-physics/cuttools/ Alexander Puck Neuwirth
-- strict thread matches above, loose matches on Subject: below --
2025-02-13 10:55 Alexander Puck Neuwirth
2024-11-15 9:30 Alexander Puck Neuwirth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox