From b4864c2c722df80ee129223dc3f6c3272ce9d1fc Mon Sep 17 00:00:00 2001 From: Alexander Puck Neuwirth Date: Tue, 25 Oct 2022 23:33:29 +0200 Subject: sci-physics/qcdloop: new package, add 2.0.5, 2.0.9 Signed-off-by: Alexander Puck Neuwirth Closes: https://github.com/gentoo/sci/pull/1177 Signed-off-by: Andrew Ammerlaan --- sci-physics/qcdloop/Manifest | 2 + 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 +++++++++++++++++++++++ 6 files changed, 122 insertions(+) create mode 100644 sci-physics/qcdloop/Manifest create mode 100644 sci-physics/qcdloop/files/qcdloop-2.0.5-cxx.patch create mode 100644 sci-physics/qcdloop/files/qcdloop-2.0.9-cxx.patch create mode 100644 sci-physics/qcdloop/metadata.xml create mode 100644 sci-physics/qcdloop/qcdloop-2.0.5.ebuild create mode 100644 sci-physics/qcdloop/qcdloop-2.0.9.ebuild diff --git a/sci-physics/qcdloop/Manifest b/sci-physics/qcdloop/Manifest new file mode 100644 index 000000000..84ca31226 --- /dev/null +++ b/sci-physics/qcdloop/Manifest @@ -0,0 +1,2 @@ +DIST qcdloop-2.0.5.tar.gz 199141 BLAKE2B b16c193bd267b838535a572dd3b1cf50ac9af03b65347877b550bcbdcc9cfdd42f08e198732c513cff8298632ea65be82f2986701de75cee80cec2f9c30e3368 SHA512 9bfa3bad7a8c808b2db5eda32a755da4dadf67eba10845eb798d447fd47062bd40aa877929b60d95ec6b4e3b4a2cbba6384a3d1b13f92cfdec06e76177532c0f +DIST qcdloop-2.0.9.tar.gz 214697 BLAKE2B 19d426cc61b8a8f08fc56522b5a2d48c7fea7027225e1317c2e2908b8a87367ff69077bfe5508ee50ee585d8d0f68ae4c1fdad312b4cbc73ca4f3fd735fa94c9 SHA512 c8031dbee1c83d2bd0fcca0b1d94f18e7d07b77c247ca7a15cfec9bc402391e89036a64507c48e743eeecb3a19fe25d4e766ff13ede9f042d4d723adc8adb238 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 @@ + + + + + alexander@neuwirth-informatik.de + Alexander Puck Neuwirth + + + sci-physics@gentoo.org + Gentoo Physics Project + + + 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. + + 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 +} -- cgit v1.2.3-65-gdbad