commit:     b4864c2c722df80ee129223dc3f6c3272ce9d1fc
Author:     Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> 
de>
AuthorDate: Tue Oct 25 21:33:29 2022 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Mon Oct 31 10:30:49 2022 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=b4864c2c

sci-physics/qcdloop: new package, add 2.0.5, 2.0.9

Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de>
Closes: https://github.com/gentoo/sci/pull/1177
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 sci-physics/qcdloop/files/qcdloop-2.0.5-cxx.patch | 11 +++++
 sci-physics/qcdloop/files/qcdloop-2.0.9-cxx.patch | 11 +++++
 sci-physics/qcdloop/metadata.xml                  | 15 +++++++
 sci-physics/qcdloop/qcdloop-2.0.5.ebuild          | 33 +++++++++++++++
 sci-physics/qcdloop/qcdloop-2.0.9.ebuild          | 50 +++++++++++++++++++++++
 5 files changed, 120 insertions(+)

diff --git a/sci-physics/qcdloop/files/qcdloop-2.0.5-cxx.patch 
b/sci-physics/qcdloop/files/qcdloop-2.0.5-cxx.patch
new file mode 100644
index 000000000..56a665de2
--- /dev/null
+++ b/sci-physics/qcdloop/files/qcdloop-2.0.5-cxx.patch
@@ -0,0 +1,11 @@
+--- a/CMakeLists.txt   2022-09-19 11:13:08.777453946 +0200
++++ b/CMakeLists.txt   2022-09-19 11:13:27.315507011 +0200
+@@ -20,7 +20,7 @@
+ set(CMAKE_CXX_STANDARD_REQUIRED ON)
+ set(CMAKE_CXX_EXTENSIONS OFF)
+ set(VERSION "\"2.0.5\"")
+-set(CMAKE_CXX_FLAGS "-Wall -Wextra -march=nocona -mtune=haswell 
-fvisibility-inlines-hidden -fmessage-length=0 -ftree-vectorize -fPIC 
-fstack-protector-strong -O2 -pipe -fext-numeric-literals")
++set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fext-numeric-literals")
+ set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fsanitize=address -fPIC 
${CMAKE_CXX_FLAGS}" CACHE STRING "debug compile flags" FORCE)
+ set(CMAKE_EXE_LINKER_FLAGS_DEBUG "-fsanitize=address" CACHE STRING "debug 
linker flags" FORCE)
+ set(prefix ${CMAKE_INSTALL_PREFIX})

diff --git a/sci-physics/qcdloop/files/qcdloop-2.0.9-cxx.patch 
b/sci-physics/qcdloop/files/qcdloop-2.0.9-cxx.patch
new file mode 100644
index 000000000..b3babf764
--- /dev/null
+++ b/sci-physics/qcdloop/files/qcdloop-2.0.9-cxx.patch
@@ -0,0 +1,11 @@
+--- a/CMakeLists.txt   2022-09-19 11:13:08.777453946 +0200
++++ b/CMakeLists.txt   2022-09-19 11:13:27.315507011 +0200
+@@ -20,7 +20,7 @@
+ set(CMAKE_CXX_STANDARD_REQUIRED ON)
+ set(CMAKE_CXX_EXTENSIONS OFF)
+ set(VERSION "\"2.0.9\"")
+-set(CMAKE_CXX_FLAGS "-Wall -Wextra -march=nocona -mtune=haswell 
-fvisibility-inlines-hidden -fmessage-length=0 -ftree-vectorize -fPIC 
-fstack-protector-strong -O2 -pipe -fext-numeric-literals")
++set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fext-numeric-literals")
+ set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fsanitize=address -fPIC 
${CMAKE_CXX_FLAGS}" CACHE STRING "debug compile flags" FORCE)
+ set(CMAKE_EXE_LINKER_FLAGS_DEBUG "-fsanitize=address" CACHE STRING "debug 
linker flags" FORCE)
+ set(prefix ${CMAKE_INSTALL_PREFIX})

diff --git a/sci-physics/qcdloop/metadata.xml b/sci-physics/qcdloop/metadata.xml
new file mode 100644
index 000000000..5b1b9cd40
--- /dev/null
+++ b/sci-physics/qcdloop/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Alexander Puck Neuwirth</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>[email protected]</email>
+               <name>Gentoo Physics Project</name>
+       </maintainer>
+       <longdescription lang="en">
+       QCDLoop is a library of one-loop scalar Feynman integrals, evaluated 
close to four dimensions. First documented in arXiv:0712.1851 and recently in 
arXiv:1605.03181.
+       </longdescription>
+</pkgmetadata>

diff --git a/sci-physics/qcdloop/qcdloop-2.0.5.ebuild 
b/sci-physics/qcdloop/qcdloop-2.0.5.ebuild
new file mode 100644
index 000000000..19a247ba2
--- /dev/null
+++ b/sci-physics/qcdloop/qcdloop-2.0.5.ebuild
@@ -0,0 +1,33 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CMAKE_MAKEFILE_GENERATOR="emake"
+
+inherit cmake
+
+DESCRIPTION="An object-oriented one-loop scalar Feynman integrals framework"
+HOMEPAGE="https://qcdloop.web.cern.ch/qcdloop/";
+SRC_URI="https://github.com/scarrazza/${PN}/archive/refs/tags/${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+BDEPEND="
+       virtual/fortran
+"
+
+PATCHES=(
+       "${FILESDIR}"/${P}-cxx.patch
+)
+
+src_configure() {
+       local mycmakeargs=(
+               -DCMAKE_INSTALL_PREFIX="${ESYSROOT}/usr/$(get_libdir)"
+       )
+       cmake_src_configure
+}

diff --git a/sci-physics/qcdloop/qcdloop-2.0.9.ebuild 
b/sci-physics/qcdloop/qcdloop-2.0.9.ebuild
new file mode 100644
index 000000000..ccea20aa5
--- /dev/null
+++ b/sci-physics/qcdloop/qcdloop-2.0.9.ebuild
@@ -0,0 +1,50 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CMAKE_MAKEFILE_GENERATOR="emake"
+
+inherit cmake
+
+DESCRIPTION="An object-oriented one-loop scalar Feynman integrals framework"
+HOMEPAGE="https://qcdloop.web.cern.ch/qcdloop/";
+SRC_URI="https://github.com/scarrazza/${PN}/archive/refs/tags/${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+BDEPEND="
+       virtual/fortran
+"
+
+PATCHES=(
+       "${FILESDIR}"/${P}-cxx.patch
+)
+
+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
+               -DENABLE_FORTRAN_WRAPPER=ON
+       )
+       cmake_src_configure
+}

Reply via email to