aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sci-physics/collier/Manifest1
-rw-r--r--sci-physics/collier/collier-1.2.8.ebuild36
-rw-r--r--sci-physics/collier/files/collier-1.2.7-mod.patch40
-rw-r--r--sci-physics/collier/metadata.xml22
4 files changed, 99 insertions, 0 deletions
diff --git a/sci-physics/collier/Manifest b/sci-physics/collier/Manifest
new file mode 100644
index 000000000..709444249
--- /dev/null
+++ b/sci-physics/collier/Manifest
@@ -0,0 +1 @@
+DIST collier-1.2.8.tar.gz 933258 BLAKE2B 9849ae140ed055a24010f020920f377a78665cb6f2c16ba060082c3573594a2f5772779b4a5596d306220b49ec2ffb7249705c0f05ea4eb22784518acb1038a0 SHA512 119b597da04dcd529efc35b5f96d2b2ad1f2f4403c3d0521a24b49fba973c5557378b68994ea6d30ca92057d32a30a6de299b2c707d56c231d197f33632297d9
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>alexander@neuwirth-informatik.de</email>
+ <name>Alexander Puck Neuwirth</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci-physics@gentoo.org</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>