From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1691993-garchives=archives.gentoo.org@lists.gentoo.org> 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 (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6507D1581EC for <garchives@archives.gentoo.org>; Thu, 21 Nov 2024 17:44:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B30C5E07EF; Thu, 21 Nov 2024 17:44:03 +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 6ED68E07EF for <gentoo-commits@lists.gentoo.org>; Thu, 21 Nov 2024 17:44:03 +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 64019341707 for <gentoo-commits@lists.gentoo.org>; Thu, 21 Nov 2024 17:43:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F2F4D1295 for <gentoo-commits@lists.gentoo.org>; Thu, 21 Nov 2024 17:43:57 +0000 (UTC) From: "Alexander Puck Neuwirth" <alexander@neuwirth-informatik.de> 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" <alexander@neuwirth-informatik.de> Message-ID: <1732208752.c25717f3afb7bbd9f39d9f57f6b5e4ae908b5dbd.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-r1.ebuild sci-physics/cuttools/metadata.xml X-VCS-Directories: sci-physics/cuttools/ X-VCS-Committer: alexander X-VCS-Committer-Name: Alexander Puck Neuwirth X-VCS-Revision: c25717f3afb7bbd9f39d9f57f6b5e4ae908b5dbd X-VCS-Branch: master Date: Thu, 21 Nov 2024 17:43:57 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e159c31f-b934-4b43-b87d-05a76049daa8 X-Archives-Hash: eab67d024f58703a8c4926d6a4cb1ba3 commit: c25717f3afb7bbd9f39d9f57f6b5e4ae908b5dbd Author: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de> AuthorDate: Thu Nov 21 17:05:52 2024 +0000 Commit: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de> CommitDate: Thu Nov 21 17:05:52 2024 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=c25717f3 sci-physics/cuttools: expose mpfun90 Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de> sci-physics/cuttools/cuttools-1.9.3-r1.ebuild | 15 ++++++++++++--- sci-physics/cuttools/metadata.xml | 3 ++- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/sci-physics/cuttools/cuttools-1.9.3-r1.ebuild b/sci-physics/cuttools/cuttools-1.9.3-r1.ebuild index e2bd4df9d..f27b5beb6 100644 --- a/sci-physics/cuttools/cuttools-1.9.3-r1.ebuild +++ b/sci-physics/cuttools/cuttools-1.9.3-r1.ebuild @@ -14,11 +14,11 @@ LICENSE="GPL-3" 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}" @@ -35,10 +35,19 @@ src_prepare() { 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 diff --git a/sci-physics/cuttools/metadata.xml b/sci-physics/cuttools/metadata.xml index ceddefcf0..8a4566dbf 100644 --- a/sci-physics/cuttools/metadata.xml +++ b/sci-physics/cuttools/metadata.xml @@ -17,6 +17,7 @@ the 2-, 3-, and 4-point tensor coefficient functions. </longdescription> <use> - <flag name="dummy">Add dummy module for OpenLoops</flag> + <flag name="dummy">Add dummy module for <pkg>sci-physics/openloops</pkg></flag> + <flag name="mpfun90">Use <pkg>sci-libs/mpfun90</pkg></flag> </use> </pkgmetadata>