Skip to content

Commit

Permalink
sci-physics/qcdloop: add 2.0.11, drop 2.0.5
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Puck Neuwirth <[email protected]>
  • Loading branch information
APN-Pucky committed Nov 15, 2024
1 parent cb5227c commit 17e9685
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sci-physics/qcdloop/Manifest
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
DIST qcdloop-2.0.5.tar.gz 199141 BLAKE2B b16c193bd267b838535a572dd3b1cf50ac9af03b65347877b550bcbdcc9cfdd42f08e198732c513cff8298632ea65be82f2986701de75cee80cec2f9c30e3368 SHA512 9bfa3bad7a8c808b2db5eda32a755da4dadf67eba10845eb798d447fd47062bd40aa877929b60d95ec6b4e3b4a2cbba6384a3d1b13f92cfdec06e76177532c0f
DIST qcdloop-2.0.11.tar.gz 215694 BLAKE2B 91d3729d06c6efb4a554c3f4f4936872e1e2545de4730c93ef177e7cf7439f0017f29e7fdf1f5e61125c65102cf275711b7a784b5b364cf6ecfb578f99b7abad SHA512 34f84f38ab4214297f168504e4758b0c862bbfe160d0ac4060dcdb692d3474f0f330949fa7d4e834d5eb8d05899111e4e8c41bea6c193a1887200498f6f4fb4f
DIST qcdloop-2.0.9.tar.gz 214697 BLAKE2B 19d426cc61b8a8f08fc56522b5a2d48c7fea7027225e1317c2e2908b8a87367ff69077bfe5508ee50ee585d8d0f68ae4c1fdad312b4cbc73ca4f3fd735fa94c9 SHA512 c8031dbee1c83d2bd0fcca0b1d94f18e7d07b77c247ca7a15cfec9bc402391e89036a64507c48e743eeecb3a19fe25d4e766ff13ede9f042d4d723adc8adb238
21 changes: 21 additions & 0 deletions sci-physics/qcdloop/files/qcdloop-2.0.11-quadmathpath.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
From 2c316f000e83e56419709fe64b7627d4541ef5aa Mon Sep 17 00:00:00 2001
From: Alexander Puck Neuwirth <[email protected]>
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}"
)

Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 17e9685

Please sign in to comment.