From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2FAE015834D for ; Thu, 27 Jun 2024 12:19:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5D043E2AA5; Thu, 27 Jun 2024 12:19:31 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 41915E2AA5 for ; Thu, 27 Jun 2024 12:19:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2FACB33B864 for ; Thu, 27 Jun 2024 12:19:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C0AAA126B for ; Thu, 27 Jun 2024 12:19:28 +0000 (UTC) From: "Alexander Puck Neuwirth" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alexander Puck Neuwirth" Message-ID: <1719490583.78d3b300e874a7d0553553d32e2c3387ea03f5c2.alexander@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-physics/oneloop/, sci-physics/oneloop/files/ X-VCS-Repository: proj/sci X-VCS-Files: sci-physics/oneloop/files/oneloop-2020.07.31-config.patch sci-physics/oneloop/files/oneloop-3.6_p20200731-config.patch sci-physics/oneloop/metadata.xml sci-physics/oneloop/oneloop-2020.07.31.ebuild sci-physics/oneloop/oneloop-3.6.ebuild sci-physics/oneloop/oneloop-3.6_p20200731.ebuild X-VCS-Directories: sci-physics/oneloop/ sci-physics/oneloop/files/ X-VCS-Committer: alexander X-VCS-Committer-Name: Alexander Puck Neuwirth X-VCS-Revision: 78d3b300e874a7d0553553d32e2c3387ea03f5c2 X-VCS-Branch: master Date: Thu, 27 Jun 2024 12:19:28 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: fe2e51e2-e520-4798-9298-0c80272581ef X-Archives-Hash: 266635142d0f6b778d24922295efd087 commit: 78d3b300e874a7d0553553d32e2c3387ea03f5c2 Author: Alexander Puck Neuwirth neuwirth-informatik de> AuthorDate: Wed Apr 17 16:56:43 2024 +0000 Commit: Alexander Puck Neuwirth neuwirth-informatik de> CommitDate: Thu Jun 27 12:16:23 2024 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=78d3b300 sci-physics/oneloop: add 3.6, drop 2020.07.31 Signed-off-by: Alexander Puck Neuwirth neuwirth-informatik.de> ...ig.patch => oneloop-3.6_p20200731-config.patch} | 0 sci-physics/oneloop/metadata.xml | 16 ++++ sci-physics/oneloop/oneloop-2020.07.31.ebuild | 46 --------- sci-physics/oneloop/oneloop-3.6.ebuild | 106 +++++++++++++++++++++ sci-physics/oneloop/oneloop-3.6_p20200731.ebuild | 104 ++++++++++++++++++++ 5 files changed, 226 insertions(+), 46 deletions(-) diff --git a/sci-physics/oneloop/files/oneloop-2020.07.31-config.patch b/sci-physics/oneloop/files/oneloop-3.6_p20200731-config.patch similarity index 100% rename from sci-physics/oneloop/files/oneloop-2020.07.31-config.patch rename to 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 @@ sci-physics@gentoo.org Gentoo Physics Project + + Library of one-loop scalar functions by Andreas van Hameren. + Commonly named avh_olo and used by/for cuttools. + hameren/oneloop + + double precision + quad precision + double16 precision + quad16 precision + double use sci-libs/qd + quad use sci-libs/qd + use sci-libs/arprec + use sci-libs/mpfun90 + enable tlevel + enable cppintf + 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 +}