aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas Mitrak <lucas@lucasmitrak.com>2021-06-09 07:35:20 -0400
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2021-06-09 16:25:16 +0200
commit1f496e085b4a6dbd477c8749be667e4c1bbfd48a (patch)
tree67d63a2df13dad7a2eb87f6b35ce1c71c1596806 /sci-mathematics
parentsci-mathematics/gappa: Remove -l or --load-average from ${MAKEOPTS} (diff)
downloadsci-1f496e085b4a6dbd477c8749be667e4c1bbfd48a.tar.gz
sci-1f496e085b4a6dbd477c8749be667e4c1bbfd48a.tar.bz2
sci-1f496e085b4a6dbd477c8749be667e4c1bbfd48a.zip
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 <lucas@lucasmitrak.com> Closes: https://github.com/gentoo/sci/pull/1090 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'sci-mathematics')
-rw-r--r--sci-mathematics/gappa/gappa-1.3.5.ebuild10
1 files 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