From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 finch.gentoo.org (Postfix) with ESMTPS id 0F71D1582EF for ; Thu, 13 Feb 2025 10:55:44 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (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) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id C67F6341214 for ; Thu, 13 Feb 2025 10:55:43 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 06D4C110471; Thu, 13 Feb 2025 10:55:40 +0000 (UTC) Received: from smtp.gentoo.org (dev.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)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id F385B110471 for ; Thu, 13 Feb 2025 10:55:39 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 99012341214 for ; Thu, 13 Feb 2025 10:55:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id ECB1A26E6 for ; Thu, 13 Feb 2025 10:55:37 +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: <1739444104.d749883dd88112c89fad6f8efae0f2ed67b9dae6.alexander@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-physics/cuttools/ X-VCS-Repository: proj/sci X-VCS-Files: sci-physics/cuttools/cuttools-1.9.3.ebuild sci-physics/cuttools/cuttools-2.0.0.ebuild X-VCS-Directories: sci-physics/cuttools/ X-VCS-Committer: alexander X-VCS-Committer-Name: Alexander Puck Neuwirth X-VCS-Revision: d749883dd88112c89fad6f8efae0f2ed67b9dae6 X-VCS-Branch: master Date: Thu, 13 Feb 2025 10:55:37 +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: ccd10154-91c0-45cf-888a-b83e9b31fbb9 X-Archives-Hash: e398f52a5dae2af68f3750992240cf5b commit: d749883dd88112c89fad6f8efae0f2ed67b9dae6 Author: Alexander Puck Neuwirth neuwirth-informatik de> AuthorDate: Thu Feb 13 10:53:49 2025 +0000 Commit: Alexander Puck Neuwirth neuwirth-informatik de> CommitDate: Thu Feb 13 10:55:04 2025 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=d749883d sci-physics/cuttools: add 2.0.0, drop 1.9.3 Signed-off-by: Alexander Puck Neuwirth neuwirth-informatik.de> ...cuttools-1.9.3.ebuild => cuttools-2.0.0.ebuild} | 30 +++++++++++++++++----- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/sci-physics/cuttools/cuttools-1.9.3.ebuild b/sci-physics/cuttools/cuttools-2.0.0.ebuild similarity index 52% rename from sci-physics/cuttools/cuttools-1.9.3.ebuild rename to sci-physics/cuttools/cuttools-2.0.0.ebuild index 03f84b63c..e67589246 100644 --- a/sci-physics/cuttools/cuttools-1.9.3.ebuild +++ b/sci-physics/cuttools/cuttools-2.0.0.ebuild @@ -5,39 +5,55 @@ EAPI=8 inherit fortran-2 toolchain-funcs +MY_V="$(ver_cut 1).$(ver_cut 2)" + DESCRIPTION="Computing 1-loop amplitudes at the integrand level" HOMEPAGE="https://www.ugr.es/~pittau/CutTools/" -SRC_URI="https://www.ugr.es/~pittau/CutTools/${PN}_v${PV}.tar.gz" +SRC_URI="https://www.ugr.es/~pittau/CutTools/${PN}_v${MY_V}.tar.gz" S="${WORKDIR}" -LICENSE="GPL-3" +LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" -IUSE="+dummy" +IUSE="+dummy mpfun90" DEPEND=" + sci-libs/mpfun90 sci-physics/qcdloop - sci-physics/oneloop[dpkind,qpkind16,-qpkind,-tlevel] + sci-physics/oneloop[dpkind,qpkind16,-qpkind,-tlevel,mpfun90?] " RDEPEND="${DEPEND}" +PATCHES=( + "${FILESDIR}/${PN}-1.9.3-unbundle.patch" +) + src_prepare() { default - sed -i 's/^ALL =.*$/ALL = $(CTS)/' src/makefile || die + sed -i 's/^ALL =.*$/ALL = $(CTS)/' src/makefile || die if use dummy ; then cp "${FILESDIR}"/mpnumdummy.f90 src/cts/mpnumdummy.f90 || die fi if use dummy ; then sed -i 's/CTS =/CTS = mpnumdummy.o/' src/makefile || die fi + if use mpfun90; then + sed -i 's/PRECISION=.*$/PRECISION= MP/g' makefile || die + else + sed -i 's/PRECISION=.*$/PRECISION= QP/g' makefile || die + fi } src_compile() { - emake -j1 FFLAGS="${FFLAGS} -I${ESYSROOT}/usr/include -fPIC -std=legacy" + if use mpfun90; then + emake -j1 FFLAGS="${FFLAGS} -I${ESYSROOT}/usr/include -fPIC -std=legacy" mp + else + emake -j1 FFLAGS="${FFLAGS} -I${ESYSROOT}/usr/include -fPIC -std=legacy" qp + fi tc-export AR CXX cd includects || die ${AR} -x libcts.a || die - ${CXX} ${CXXFLAGS} -shared *.o -o lib${PN}.so || die + ${CXX} ${CXXFLAGS} ${LDFLAGS} -shared *.o -Wl,-soname,libcuttools.so -o lib${PN}.so || die } src_install() {