aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Puck Neuwirth <alexander@neuwirth-informatik.de>2024-04-17 18:56:43 +0200
committerAlexander Puck Neuwirth <alexander@neuwirth-informatik.de>2024-06-27 14:16:23 +0200
commit78d3b300e874a7d0553553d32e2c3387ea03f5c2 (patch)
tree15e171e71258015dab4683da897726762ef21cd5
parentdev-python/sphinxcontrib-napoleon: enable py3.12 (diff)
downloadsci-78d3b300e874a7d0553553d32e2c3387ea03f5c2.tar.gz
sci-78d3b300e874a7d0553553d32e2c3387ea03f5c2.tar.bz2
sci-78d3b300e874a7d0553553d32e2c3387ea03f5c2.zip
sci-physics/oneloop: add 3.6, drop 2020.07.31
Signed-off-by: Alexander Puck Neuwirth <alexander@neuwirth-informatik.de>
-rw-r--r--sci-physics/oneloop/Manifest3
-rw-r--r--sci-physics/oneloop/files/oneloop-3.6_p20200731-config.patch (renamed from sci-physics/oneloop/files/oneloop-2020.07.31-config.patch)0
-rw-r--r--sci-physics/oneloop/metadata.xml16
-rw-r--r--sci-physics/oneloop/oneloop-2020.07.31.ebuild46
-rw-r--r--sci-physics/oneloop/oneloop-3.6.ebuild106
-rw-r--r--sci-physics/oneloop/oneloop-3.6_p20200731.ebuild104
6 files changed, 228 insertions, 47 deletions
diff --git a/sci-physics/oneloop/Manifest b/sci-physics/oneloop/Manifest
index f698d0a23..baeb504b0 100644
--- a/sci-physics/oneloop/Manifest
+++ b/sci-physics/oneloop/Manifest
@@ -1 +1,2 @@
-DIST oneloop-2020.07.31.zip 166257 BLAKE2B 7869806c6e70388311b62ae1ad15b35292c81d5d87ff7f24ad53bb8e562631664545f36e3e32d6f31a39ca9489d7da64284ad10ed988cb7c4375626121d0a84f SHA512 eee46cfe60b1d887cb40033e63d7a04ca24b329692e443d28ecb9f070182d5c56ea5bbaefd2ae21b2776d907ea280ebf81cae0c332391e7e7e7d5e3be3084220
+DIST OneLOop-3.6.tgz 111734 BLAKE2B 61e1638b17ec356c29d40c2af187464d5499b9172c2858fc47486bd527f0f47e90eba4d836697176a1ecbb01b7344d774bc595c722a92abede143b3df90067d9 SHA512 979981ad5ecdf1f71424c7b8a8d12c7d30aa140c62295a4452d3e5c0e260d42b431c12efcc0d7f0ab55ee2f9af08d4ab204ada5860f65343b24552cbdd3f3cd2
+DIST oneloop-3.6_p20200731.zip 166257 BLAKE2B 7869806c6e70388311b62ae1ad15b35292c81d5d87ff7f24ad53bb8e562631664545f36e3e32d6f31a39ca9489d7da64284ad10ed988cb7c4375626121d0a84f SHA512 eee46cfe60b1d887cb40033e63d7a04ca24b329692e443d28ecb9f070182d5c56ea5bbaefd2ae21b2776d907ea280ebf81cae0c332391e7e7e7d5e3be3084220
diff --git a/sci-physics/oneloop/files/oneloop-2020.07.31-config.patch b/sci-physics/oneloop/files/oneloop-3.6_p20200731-config.patch
index 4af47e066..4af47e066 100644
--- a/sci-physics/oneloop/files/oneloop-2020.07.31-config.patch
+++ b/sci-physics/oneloop/files/oneloop-3.6_p20200731-config.patch
diff --git a/sci-physics/oneloop/metadata.xml b/sci-physics/oneloop/metadata.xml
index 35b6c2bd9..40e059101 100644
--- a/sci-physics/oneloop/metadata.xml
+++ b/sci-physics/oneloop/metadata.xml
@@ -9,7 +9,23 @@
<email>sci-physics@gentoo.org</email>
<name>Gentoo Physics Project</name>
</maintainer>
+ <longdescription lang="en">
+ Library of one-loop scalar functions by Andreas van Hameren.
+ Commonly named avh_olo and used by/for cuttools.
+ </longdescription>
<upstream>
<remote-id type="bitbucket">hameren/oneloop</remote-id>
</upstream>
+ <use>
+ <flag name="dpkind">double precision</flag>
+ <flag name="qpkind">quad precision</flag>
+ <flag name="dpkind16">double16 precision</flag>
+ <flag name="qpkind16">quad16 precision</flag>
+ <flag name="ddcpp">double use sci-libs/qd</flag>
+ <flag name="qdcpp">quad use sci-libs/qd</flag>
+ <flag name="arprec"> use sci-libs/arprec</flag>
+ <flag name="mpfun90"> use sci-libs/mpfun90</flag>
+ <flag name="tlevel"> enable tlevel</flag>
+ <flag name="cppintf"> enable cppintf</flag>
+ </use>
</pkgmetadata>
diff --git a/sci-physics/oneloop/oneloop-2020.07.31.ebuild b/sci-physics/oneloop/oneloop-2020.07.31.ebuild
deleted file mode 100644
index 9344d1513..000000000
--- a/sci-physics/oneloop/oneloop-2020.07.31.ebuild
+++ /dev/null
@@ -1,46 +0,0 @@
-# Copyright 2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-# python only needed for create.py to get binaries
-PYTHON_COMPAT=( python3_{10..11} )
-inherit toolchain-funcs python-any-r1 fortran-2
-
-DESCRIPTION="Library of one-loop scalar functions"
-HOMEPAGE="https://bitbucket.org/hameren/oneloop"
-SRC_URI="https://bitbucket.org/hameren/oneloop/get/3762b8bad6ad.zip -> ${P}.zip"
-S="${WORKDIR}/hameren-oneloop-3762b8bad6ad"
-
-LICENSE="GPL-3+"
-SLOT="0"
-KEYWORDS="~amd64"
-
-BDEPEND="
- ${PYTHON_DEPS}
- app-arch/unzip
-"
-
-PATCHES=(
- "${FILESDIR}"/${P}-config.patch
-)
-
-src_configure() {
- tc-export FC
- sed -i "/FC = /s/gfortran/${FC}/g" Config || die
- sed -i "/FFLAGS = /s/ -O/${FFLAGS} -fPIC/g" Config || die
-}
-
-src_compile() {
- tc-export FC
- emake -f make_cuttools
- ${EPYTHON} ./create.py || die "Failed to compile"
- #./create.py dynamic || die
- ${FC} ${LDFLAGS} -Wl,-soname,libavh_olo.so -shared -o libavh_olo.so avh_olo.o || die "Failed to link"
-}
-
-src_install() {
- dolib.a libavh_olo.a
- dolib.so libavh_olo.so
- doheader avh_olo.mod
-}
diff --git a/sci-physics/oneloop/oneloop-3.6.ebuild b/sci-physics/oneloop/oneloop-3.6.ebuild
new file mode 100644
index 000000000..1a7f5d864
--- /dev/null
+++ b/sci-physics/oneloop/oneloop-3.6.ebuild
@@ -0,0 +1,106 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_P=OneLOop-${PV}
+
+# python only needed for create.py to get binaries
+PYTHON_COMPAT=( python3_{10..12} )
+inherit fortran-2 python-any-r1 toolchain-funcs
+
+DESCRIPTION="Library of one-loop scalar functions"
+HOMEPAGE="
+ https://helac-phegas.web.cern.ch/OneLOop.html
+ https://bitbucket.org/hameren/oneloop
+"
+SRC_URI="http://helac-phegas.web.cern.ch/helac-phegas/tar-files/${MY_P}.tgz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+dpkind +qpkind qpkind16 dpkind16 qdcpp ddcpp mpfun90 arprec tlevel cppintf"
+REQUIRED_USE="
+ ?? ( dpkind dpkind16 ddcpp )
+ ?? ( qpkind qpkind16 qdcpp )
+ ?? ( arprec mpfun90 )
+ || ( dpkind dpkind16 ddcpp qpkind qpkind16 qdcpp )
+"
+
+DEPEND="
+ qpkind? ( sci-libs/qd )
+ qpkind16? ( sci-libs/qd )
+ arprec? ( sci-libs/arprec )
+ mpfun90? ( sci-libs/mpfun90 )
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+ ${PYTHON_DEPS}
+ app-arch/unzip
+"
+
+src_configure() {
+ tc-export FC
+ # set fortran
+ sed -i "/FC = /s/gfortran/${FC}/g" Config || die
+ sed -i "/FFLAGS = /s/ -O/${FFLAGS} -fPIC/g" Config || die
+ # Clear config
+ sed -i "s/^DPKIND.*$//g" Config || die
+ sed -i "s/^QPKIND.*$//g" Config || die
+
+ if use dpkind ; then
+ echo "DPKIND = kind(1d0)" >> Config || die
+ fi
+ if use qpkind ; then
+ echo "QPKIND = kind(1d0)" >> Config || die
+ fi
+ if use dpkind16 ; then
+ echo "DPKIND = 16" >> Config || die
+ fi
+ if use qpkind16 ; then
+ echo "QPKIND = 16" >> Config || die
+ fi
+
+ if use qdcpp ; then
+ echo "QDTYPE = qdcpp" >> Config || die
+ fi
+ if use ddcpp ; then
+ echo "DDTYPE = qdcpp" >> Config || die
+ fi
+
+ if use mpfun90 ; then
+ echo "MPTYPE = mpfun90" >> Config || die
+ fi
+ if use arprec ; then
+ echo "MPTYPE = arprec" >> Config || die
+ fi
+
+ if use tlevel ; then
+ sed -i "s/^.*TLEVEL.*$/TLEVEL = yes/" Config || die
+ else
+ sed -i "s/^.*TLEVEL.*$/TLEVEL = no/" Config || die
+ fi
+ if use cppintf ; then
+ sed -i "s/^.*CPPINTF.*$/CPPINTF = yes/" Config || die
+ else
+ sed -i "s/^.*CPPINTF.*$/CPPINTF = no/" Config || die
+ fi
+}
+
+src_compile() {
+ tc-export FC
+ #emake -f make_cuttools
+ ${EPYTHON} ./create.py source || die "Failed to compile"
+ # create.py does not use soname, so we do it ourself
+ #./create.py dynamic || die
+ ${FC} -O -fPIC -c avh_olo.f90 -o avh_olo.o || die
+ ${FC} ${LDFLAGS} -Wl,-soname,libavh_olo.so -shared -o libavh_olo.so *.o || die
+}
+
+src_install() {
+ #dolib.a libavh_olo.a
+ dolib.so libavh_olo.so
+ doheader *.mod
+ dosym libavh_olo.so /usr/$(get_libdir)/liboneloop.so
+}
diff --git a/sci-physics/oneloop/oneloop-3.6_p20200731.ebuild b/sci-physics/oneloop/oneloop-3.6_p20200731.ebuild
new file mode 100644
index 000000000..e25833759
--- /dev/null
+++ b/sci-physics/oneloop/oneloop-3.6_p20200731.ebuild
@@ -0,0 +1,104 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# python only needed for create.py to get binaries
+PYTHON_COMPAT=( python3_{10..12} )
+inherit fortran-2 python-any-r1 toolchain-funcs
+
+DESCRIPTION="Library of one-loop scalar functions"
+HOMEPAGE="
+ https://helac-phegas.web.cern.ch/OneLOop.html
+ https://bitbucket.org/hameren/oneloop
+"
+SRC_URI="https://bitbucket.org/hameren/oneloop/get/3762b8bad6ad.zip -> ${P}.zip"
+S="${WORKDIR}/hameren-oneloop-3762b8bad6ad"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+dpkind +qpkind qpkind16 dpkind16 qdcpp ddcpp mpfun90 arprec tlevel cppintf"
+REQUIRED_USE="
+ ?? ( dpkind dpkind16 ddcpp )
+ ?? ( qpkind qpkind16 qdcpp )
+ ?? ( arprec mpfun90 )
+ || ( dpkind dpkind16 ddcpp qpkind qpkind16 qdcpp )
+"
+
+DEPEND="
+ qpkind? ( sci-libs/qd )
+ qpkind16? ( sci-libs/qd )
+ arprec? ( sci-libs/arprec )
+ mpfun90? ( sci-libs/mpfun90 )
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+ ${PYTHON_DEPS}
+ app-arch/unzip
+"
+
+src_configure() {
+ tc-export FC
+ # set fortran
+ sed -i "/FC = /s/gfortran/${FC}/g" Config || die
+ sed -i "/FFLAGS = /s/ -O/${FFLAGS} -fPIC/g" Config || die
+ # Clear config
+ sed -i "s/^DPKIND.*$//g" Config || die
+ sed -i "s/^QPKIND.*$//g" Config || die
+
+ if use dpkind ; then
+ echo "DPKIND = kind(1d0)" >> Config || die
+ fi
+ if use qpkind ; then
+ echo "QPKIND = kind(1d0)" >> Config || die
+ fi
+ if use dpkind16 ; then
+ echo "DPKIND = 16" >> Config || die
+ fi
+ if use qpkind16 ; then
+ echo "QPKIND = 16" >> Config || die
+ fi
+
+ if use qdcpp ; then
+ echo "QDTYPE = qdcpp" >> Config || die
+ fi
+ if use ddcpp ; then
+ echo "DDTYPE = qdcpp" >> Config || die
+ fi
+
+ if use mpfun90 ; then
+ echo "MPTYPE = mpfun90" >> Config || die
+ fi
+ if use arprec ; then
+ echo "MPTYPE = arprec" >> Config || die
+ fi
+
+ if use tlevel ; then
+ sed -i "s/^.*TLEVEL.*$/TLEVEL = yes/" Config || die
+ else
+ sed -i "s/^.*TLEVEL.*$/TLEVEL = no/" Config || die
+ fi
+ if use cppintf ; then
+ sed -i "s/^.*CPPINTF.*$/CPPINTF = yes/" Config || die
+ else
+ sed -i "s/^.*CPPINTF.*$/CPPINTF = no/" Config || die
+ fi
+}
+
+src_compile() {
+ tc-export FC
+ #emake -f make_cuttools
+ ${EPYTHON} ./create.py source || die "Failed to compile"
+ # create.py does not use soname, so we do it ourself
+ #./create.py dynamic || die
+ ${FC} -O -fPIC -c avh_olo.f90 -o avh_olo.o || die
+ ${FC} ${LDFLAGS} -Wl,-soname,libavh_olo.so -shared -o libavh_olo.so *.o || die
+}
+
+src_install() {
+ #dolib.a libavh_olo.a
+ dolib.so libavh_olo.so
+ doheader *.mod
+ dosym libavh_olo.so /usr/$(get_libdir)/liboneloop.so
+}