commit: cc8a759de134ec89f2272ec173bc96c53e98594b Author: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de> AuthorDate: Tue Feb 27 14:17:47 2024 +0000 Commit: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de> CommitDate: Tue Feb 27 16:10:07 2024 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=cc8a759d
sci-physics/collier: new package, add 1.2.8 Closes: https://github.com/gentoo/sci/pull/1249 Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de> sci-physics/collier/collier-1.2.8.ebuild | 36 ++++++++++++++++++++ sci-physics/collier/files/collier-1.2.7-mod.patch | 40 +++++++++++++++++++++++ sci-physics/collier/metadata.xml | 22 +++++++++++++ 3 files changed, 98 insertions(+) diff --git a/sci-physics/collier/collier-1.2.8.ebuild b/sci-physics/collier/collier-1.2.8.ebuild new file mode 100644 index 000000000..b50f9a279 --- /dev/null +++ b/sci-physics/collier/collier-1.2.8.ebuild @@ -0,0 +1,36 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CMAKE_MAKEFILE_GENERATOR="emake" + +inherit fortran-2 cmake + +MY_P=COLLIER-${PV} + +DESCRIPTION="A Complex One-Loop LIbrary with Extended Regularizations" +HOMEPAGE="https://collier.hepforge.org/index.html" +SRC_URI="https://collier.hepforge.org/downloads/?f=${P}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="static-libs" +BDEPEND=" + virtual/fortran +" +PATCHES=( + "${FILESDIR}/${PN}-1.2.7-mod.patch" +) + +src_configure() { + local mycmakeargs=( + -Dstatic=$(usex static-libs ON OFF) + -DLIB_INSTALL_DIR="${EPREFIX}"/usr/$(get_libdir) + -DSYSCONFIG_INSTALL_DIR="${EPREFIX}"/usr/$(get_libdir)/cmake/collier + ) + cmake_src_configure +} diff --git a/sci-physics/collier/files/collier-1.2.7-mod.patch b/sci-physics/collier/files/collier-1.2.7-mod.patch new file mode 100644 index 000000000..030900b5c --- /dev/null +++ b/sci-physics/collier/files/collier-1.2.7-mod.patch @@ -0,0 +1,40 @@ +--- a/CMakeLists.txt 2023-05-08 17:21:39.559979698 +0200 ++++ b/CMakeLists.txt 2023-05-08 17:43:20.599147534 +0200 +@@ -282,7 +282,36 @@ + message("Collier install include prefix: ${INCLUDE_INSTALL_DIR}") + message("Collier install library prefix: ${LIB_INSTALL_DIR}") + +-set(COLLIER_HEADERS "${CMAKE_Fortran_MODULE_DIRECTORY}/collier.mod") ++set(COLLIER_HEADERS "${CMAKE_Fortran_MODULE_DIRECTORY}/collier.mod" ++ "${CMAKE_Fortran_MODULE_DIRECTORY}/cache.mod" ++ "${CMAKE_Fortran_MODULE_DIRECTORY}/buildtensors.mod" ++ "${CMAKE_Fortran_MODULE_DIRECTORY}/coli_aux2.mod" ++ "${CMAKE_Fortran_MODULE_DIRECTORY}/coli_stat.mod" ++ "${CMAKE_Fortran_MODULE_DIRECTORY}/collier_aux.mod" ++ "${CMAKE_Fortran_MODULE_DIRECTORY}/collier_coefs.mod" ++ "${CMAKE_Fortran_MODULE_DIRECTORY}/collier_global.mod" ++ "${CMAKE_Fortran_MODULE_DIRECTORY}/collier_init.mod" ++ "${CMAKE_Fortran_MODULE_DIRECTORY}/collier.mod" ++ "${CMAKE_Fortran_MODULE_DIRECTORY}/collier_tensors.mod" ++ "${CMAKE_Fortran_MODULE_DIRECTORY}/combinatorics.mod" ++ "${CMAKE_Fortran_MODULE_DIRECTORY}/dd_2pt.mod" ++ "${CMAKE_Fortran_MODULE_DIRECTORY}/dd_3pt.mod" ++ "${CMAKE_Fortran_MODULE_DIRECTORY}/dd_4pt.mod" ++ "${CMAKE_Fortran_MODULE_DIRECTORY}/dd_5pt.mod" ++ "${CMAKE_Fortran_MODULE_DIRECTORY}/dd_6pt.mod" ++ "${CMAKE_Fortran_MODULE_DIRECTORY}/dd_global.mod" ++ "${CMAKE_Fortran_MODULE_DIRECTORY}/dd_statistics.mod" ++ "${CMAKE_Fortran_MODULE_DIRECTORY}/globalc.mod" ++ "${CMAKE_Fortran_MODULE_DIRECTORY}/globald.mod" ++ "${CMAKE_Fortran_MODULE_DIRECTORY}/inittensors.mod" ++ "${CMAKE_Fortran_MODULE_DIRECTORY}/master.mod" ++ "${CMAKE_Fortran_MODULE_DIRECTORY}/reductionab.mod" ++ "${CMAKE_Fortran_MODULE_DIRECTORY}/reductionc.mod" ++ "${CMAKE_Fortran_MODULE_DIRECTORY}/reductiond.mod" ++ "${CMAKE_Fortran_MODULE_DIRECTORY}/reductionefg.mod" ++ "${CMAKE_Fortran_MODULE_DIRECTORY}/reductiontn.mod" ++ "${CMAKE_Fortran_MODULE_DIRECTORY}/tensorreduction.mod" ++) + set_target_properties(collier PROPERTIES PUBLIC_HEADER "${COLLIER_HEADERS}") + + include(PackageConfigInstall) diff --git a/sci-physics/collier/metadata.xml b/sci-physics/collier/metadata.xml new file mode 100644 index 000000000..f863d8237 --- /dev/null +++ b/sci-physics/collier/metadata.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://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> + A package for evaluation of scalar and tensor one-loop integrals + based on the FF package by G.J. van Oldenborgh. + It features an easy Fortran, C++, and Mathematica interface + to the scalar one-loop functions of FF and in addition provides + the 2-, 3-, and 4-point tensor coefficient functions. + </longdescription> + <use> + <flag name="static">Build static library</flag> + </use> +</pkgmetadata>
