commit: 1f496e085b4a6dbd477c8749be667e4c1bbfd48a Author: Lucas Mitrak <lucas <AT> lucasmitrak <DOT> com> AuthorDate: Wed Jun 9 11:35:20 2021 +0000 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> 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 <lucas <AT> lucasmitrak.com> Closes: https://github.com/gentoo/sci/pull/1090 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> 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
