commit:     8ff6629193dc380b4d8fc2f679c07047894d69c7
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Sun Jun  9 03:56:28 2024 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sun Jun  9 03:56:39 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ff66291

sci-libs/arprec: EAPI 6 -> 8

Closes: https://bugs.gentoo.org/526960
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 ...rprec-2.2.19.ebuild => arprec-2.2.19-r1.ebuild} | 27 ++++++++++++----------
 1 file changed, 15 insertions(+), 12 deletions(-)

diff --git a/sci-libs/arprec/arprec-2.2.19.ebuild 
b/sci-libs/arprec/arprec-2.2.19-r1.ebuild
similarity index 79%
rename from sci-libs/arprec/arprec-2.2.19.ebuild
rename to sci-libs/arprec/arprec-2.2.19-r1.ebuild
index b31b5b5c86c7..dc6ff68e1078 100644
--- a/sci-libs/arprec/arprec-2.2.19.ebuild
+++ b/sci-libs/arprec/arprec-2.2.19-r1.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=8
 
 FORTRAN_NEEDED=fortran
 FORTRAN_STANDARD=90
@@ -11,9 +11,10 @@ inherit autotools fortran-2
 DESCRIPTION="Arbitrary precision float arithmetics and functions"
 HOMEPAGE="https://crd-legacy.lbl.gov/~dhbailey/mpdist/";
 SRC_URI="https://crd.lbl.gov/~dhbailey/mpdist/${P}.tar.gz";
+S="${WORKDIR}/${PN}"
 
-SLOT="0"
 LICENSE="BSD"
+SLOT="0"
 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
 IUSE="cpu_flags_x86_fma3 cpu_flags_x86_fma4 doc fortran qd static-libs"
 
@@ -24,20 +25,22 @@ PATCHES=(
        "${FILESDIR}"/${P}-gold.patch
 )
 
-S="${WORKDIR}/${PN}"
-
 src_prepare() {
        default
+       sed -e '/TESTS =/s/ io//' -i tests/Makefile.am || die # bug 526960
+
        eautoreconf
 }
 
 src_configure() {
-       econf \
-               --enable-shared \
-               $(use_enable static-libs static) \
-               $(use_enable cpu_flags_x86_fma$(usex cpu_flags_x86_fma3 3 4) 
fma) \
-               $(use_enable fortran) \
+       local myeconfargs=(
+               --enable-shared
+               $(use_enable static-libs static)
+               $(use_enable cpu_flags_x86_fma$(usex cpu_flags_x86_fma3 3 4) 
fma)
+               $(use_enable fortran)
                $(use_enable qd)
+       )
+       econf "${myeconfargs[@]}"
 }
 
 src_compile() {
@@ -75,10 +78,10 @@ src_install() {
        fi
 
        if ! use doc; then
-               rm "${ED%/}"/usr/share/doc/${PF}/*.pdf || die
+               rm "${ED}"/usr/share/doc/${PF}/*.pdf || die
        fi
 
        if ! use static-libs; then
-               find "${D}" -name '*.la' -delete || die
+               find "${D}" -type f -name '*.la' -delete || die
        fi
 }

Reply via email to