* [gentoo-commits] proj/sci:master commit in: sci-physics/qcdloop/, sci-physics/qcdloop/files/
@ 2024-11-15 9:26 Alexander Puck Neuwirth
0 siblings, 0 replies; only message in thread
From: Alexander Puck Neuwirth @ 2024-11-15 9:26 UTC (permalink / raw
To: gentoo-commits
commit: 17e968522e147ebcd5b813034d8cffe1a5d4acb1
Author: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de>
AuthorDate: Fri Nov 15 09:11:49 2024 +0000
Commit: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de>
CommitDate: Fri Nov 15 09:26:30 2024 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=17e96852
sci-physics/qcdloop: add 2.0.11, drop 2.0.5
Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de>
.../qcdloop/files/qcdloop-2.0.11-quadmathpath.patch | 21 +++++++++++++++++++++
.../{qcdloop-2.0.5.ebuild => qcdloop-2.0.11.ebuild} | 21 +++++++++++++++++++--
2 files changed, 40 insertions(+), 2 deletions(-)
diff --git a/sci-physics/qcdloop/files/qcdloop-2.0.11-quadmathpath.patch b/sci-physics/qcdloop/files/qcdloop-2.0.11-quadmathpath.patch
new file mode 100644
index 000000000..86275d338
--- /dev/null
+++ b/sci-physics/qcdloop/files/qcdloop-2.0.11-quadmathpath.patch
@@ -0,0 +1,21 @@
+From 2c316f000e83e56419709fe64b7627d4541ef5aa Mon Sep 17 00:00:00 2001
+From: Alexander Puck Neuwirth <APN-Pucky@users.noreply.github.com>
+Date: Fri, 15 Nov 2024 10:19:40 +0100
+Subject: [PATCH] Add one more QUADMATH lookup path
+
+---
+ CMakeLists.txt | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index b8820da..64bd4c3 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -75,6 +75,7 @@ find_library(QUADMATH_LIBRARY
+ /usr/local/lib /usr/x86_64-linux-gnu/*
+ /usr/lib/gcc/x86_64-linux-gnu/*
+ /usr/lib/gcc/x86_64-redhat-linux/*
++ /usr/lib/gcc/x86_64-pc-linux-gnu/*
+ "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}"
+ )
+
diff --git a/sci-physics/qcdloop/qcdloop-2.0.5.ebuild b/sci-physics/qcdloop/qcdloop-2.0.11.ebuild
similarity index 52%
rename from sci-physics/qcdloop/qcdloop-2.0.5.ebuild
rename to sci-physics/qcdloop/qcdloop-2.0.11.ebuild
index 672957c56..f30ea4e12 100644
--- a/sci-physics/qcdloop/qcdloop-2.0.5.ebuild
+++ b/sci-physics/qcdloop/qcdloop-2.0.11.ebuild
@@ -16,12 +16,29 @@ SLOT="0"
KEYWORDS="~amd64"
PATCHES=(
- "${FILESDIR}"/${P}-cxx.patch
+ "${FILESDIR}"/${P}-quadmathpath.patch # https://github.com/scarrazza/qcdloop/pull/31
)
+src_prepare() {
+ cmake_src_prepare
+
+ # gentoo libdir love
+ sed -i \
+ -e '/DESTINATION/s/lib/lib${LIB_SUFFIX}/g' \
+ CMakeLists.txt || die
+ sed -i \
+ -e '/libdir.*/s/lib/lib${LIB_SUFFIX}/g' \
+ CMakeLists.txt || die
+
+ #sed -i \
+ # -e '/qcdloop/s/SHARED/STATIC/g' \
+ # CMakeLists.txt || die
+}
+
src_configure() {
local mycmakeargs=(
- -DCMAKE_INSTALL_PREFIX="${ESYSROOT}/usr/$(get_libdir)"
+ -DCMAKE_INSTALL_PREFIX="${ESYSROOT}"/usr
+ -DENABLE_FORTRAN_WRAPPER=ON
)
cmake_src_configure
}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-11-15 9:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-15 9:26 [gentoo-commits] proj/sci:master commit in: sci-physics/qcdloop/, sci-physics/qcdloop/files/ 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