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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 094D91382C5 for ; Wed, 9 Jun 2021 14:25:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1DDD5E0825; Wed, 9 Jun 2021 14:25:23 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 02808E07F9 for ; Wed, 9 Jun 2021 14:25:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 73B12340BC1 for ; Wed, 9 Jun 2021 14:25:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0172E7A4 for ; Wed, 9 Jun 2021 14:25:20 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1623248716.1f496e085b4a6dbd477c8749be667e4c1bbfd48a.andrewammerlaan@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-mathematics/gappa/ X-VCS-Repository: proj/sci X-VCS-Files: sci-mathematics/gappa/gappa-1.3.5.ebuild X-VCS-Directories: sci-mathematics/gappa/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: 1f496e085b4a6dbd477c8749be667e4c1bbfd48a X-VCS-Branch: master Date: Wed, 9 Jun 2021 14:25:20 +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: e9789822-cd08-4a36-8035-01a9043522fa X-Archives-Hash: b1d59d1ad4c671ab648a276675160f45 commit: 1f496e085b4a6dbd477c8749be667e4c1bbfd48a Author: Lucas Mitrak lucasmitrak com> AuthorDate: Wed Jun 9 11:35:20 2021 +0000 Commit: Andrew Ammerlaan gentoo org> CommitDate: Wed Jun 9 14:25:16 2021 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=1f496e08 sci-mathematics/gappa: Add multiprocessing.eclass for makeopts_jobs * Add inherit multiprocessing.eclass for makeopts_jobs * This is because remake does not understand -l nor --load-average This commit was tested in a docker image with dev-util/ebuildtester. This commit was written, tested, and submitted by Lucas Mitrak. Signed-off-by: Lucas Mitrak lucasmitrak.com> Closes: https://github.com/gentoo/sci/pull/1090 Signed-off-by: Andrew Ammerlaan gentoo.org> sci-mathematics/gappa/gappa-1.3.5.ebuild | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/sci-mathematics/gappa/gappa-1.3.5.ebuild b/sci-mathematics/gappa/gappa-1.3.5.ebuild index d7907989d..58ce7ffe7 100644 --- a/sci-mathematics/gappa/gappa-1.3.5.ebuild +++ b/sci-mathematics/gappa/gappa-1.3.5.ebuild @@ -3,6 +3,8 @@ EAPI=7 +inherit multiprocessing + DESCRIPTION="Verifying and proving properties on floating-point or fixed-point arithmetic" HOMEPAGE="http://gappa.gforge.inria.fr/" SRC_URI="https://gforge.inria.fr/frs/download.php/file/38044/${P}.tar.gz" @@ -28,12 +30,8 @@ src_prepare() { } src_compile() { - # Remove --load-average or -l because remake does not accept these - echo ${MAKEOPTS} | egrep -o '(\-l|\-\-load\-average)(=?|[[:space:]]*)[[:digit:]]+' > /dev/null - if [ $? -eq 0 ]; then - MAKEOPTS="${MAKEOPTS/$(echo ${MAKEOPTS} | egrep -o '(\-l|\-\-load\-average)(=?|[[:space:]]*)[[:digit:]]+')/}" - fi - ./remake -d ${MAKEOPTS} || die "emake failed" + # Only accept number of parrellel jobs because remake does not understand --load-average + ./remake -d -j$(makeopts_jobs) || die "emake failed" if use doc; then ./remake doc/html/index.html fi