commit:     9ff0405de628c9a266896b1d562af904d3099b27
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 14 21:04:11 2020 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Mon Dec 14 21:04:11 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ff0405d

sci-libs/fftw: Sync live ebuild

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 sci-libs/fftw/fftw-9999.ebuild | 33 +++++++++++++++------------------
 1 file changed, 15 insertions(+), 18 deletions(-)

diff --git a/sci-libs/fftw/fftw-9999.ebuild b/sci-libs/fftw/fftw-9999.ebuild
index d92ed1ac2ad..3d5b307ce05 100644
--- a/sci-libs/fftw/fftw-9999.ebuild
+++ b/sci-libs/fftw/fftw-9999.ebuild
@@ -1,7 +1,7 @@
 # Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
 FORTRAN_NEEDED=fortran
 
@@ -12,26 +12,27 @@ HOMEPAGE="http://www.fftw.org/";
 
 MY_P=${PN}-${PV/_p/-pl}
 
-if [[ ${PV} = *9999 ]]; then
+if [[ ${PV} == *9999 ]]; then
        inherit autotools git-r3
        EGIT_REPO_URI="https://github.com/FFTW/fftw3.git";
 else
        SRC_URI="http://www.fftw.org/${PN}-${PV/_p/-pl}.tar.gz";
-       KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 
~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+       KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 
~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
 fi
 
 LICENSE="GPL-2+"
 SLOT="3.0/3"
-IUSE="cpu_flags_ppc_altivec cpu_flags_x86_avx cpu_flags_x86_avx2 
cpu_flags_x86_fma3 cpu_flags_x86_fma4 cpu_flags_x86_sse cpu_flags_x86_sse2 doc 
fortran mpi neon openmp quad static-libs test threads zbus"
+IUSE="cpu_flags_arm_neon cpu_flags_ppc_altivec cpu_flags_x86_avx 
cpu_flags_x86_avx2 cpu_flags_x86_fma3 cpu_flags_x86_fma4 cpu_flags_x86_sse 
cpu_flags_x86_sse2 doc fortran mpi openmp quad test threads zbus"
 RESTRICT="!test? ( test )"
 
 RDEPEND="
        mpi? ( >=virtual/mpi-2.0-r4[${MULTILIB_USEDEP}] )"
-DEPEND="${RDEPEND}
+DEPEND="${RDEPEND}"
+BDEPEND="
        quad? ( sys-devel/gcc[fortran] )
        test? ( dev-lang/perl )"
 
-S=${WORKDIR}/${MY_P}
+S="${WORKDIR}/${MY_P}"
 HTML_DOCS=( doc/html/. )
 
 pkg_pretend() {
@@ -60,13 +61,7 @@ src_prepare() {
        default
 
        # fix info file for category directory
-       if [[ ${PV} = *9999 ]]; then
-               sed -i -e
-                       's/Texinfo documentation system/Libraries/' \
-                       doc/fftw3."info" || die "failed to fix info file"
-
-               eautoreconf
-       fi
+       [[ ${PV} == *9999 ]] && eautoreconf
 }
 
 multilib_src_configure() {
@@ -82,13 +77,15 @@ multilib_src_configure() {
 
        local myconf=(
                --enable-shared
-               $(use_enable static-libs static)
+               --disable-static
                $(use_enable "cpu_flags_x86_fma$(usex cpu_flags_x86_fma3 3 4)" 
fma)
                $(use_enable fortran)
                $(use_enable zbus mips-zbus-timer)
                $(use_enable threads)
                $(use_enable openmp)
        )
+       [[ ${PV} == *9999 ]] && myconf+=( --enable-maintainer-mode )
+
        case "${MULTIBUILD_ID}" in
                single-*)
                        # altivec, sse, single-paired only work for single
@@ -99,7 +96,7 @@ multilib_src_configure() {
                                $(use_enable cpu_flags_x86_avx2 avx2)
                                $(use_enable cpu_flags_x86_sse sse)
                                $(use_enable cpu_flags_x86_sse2 sse2)
-                               $(use_enable neon)
+                               $(use_enable cpu_flags_arm_neon neon)
                                $(use_enable mpi)
                        )
                        ;;
@@ -166,11 +163,11 @@ src_install() {
                docinto faq
                dodoc -r doc/FAQ/fftw-faq.html/.
        else
-               rm -r "${ED%/}"/usr/share/doc/${PF}/html || die
+               rm -r "${ED}"/usr/share/doc/${PF}/html || die
        fi
 
        local x
-       for x in "${ED%/}"/usr/lib*/pkgconfig/*.pc; do
+       for x in "${ED}"/usr/lib*/pkgconfig/*.pc; do
                local u
                for u in $(usev mpi) $(usev threads) $(usex openmp omp ""); do
                        sed -e "s|-lfftw3[flq]\?|&_${u} &|" "$x" > 
"${x%.pc}_${u}.pc" || die
@@ -178,5 +175,5 @@ src_install() {
        done
 
        # fftw uses pkg-config to record its private dependencies
-       find "${D}" -name '*.la' -delete || die
+       find "${ED}" -name '*.la' -delete || die
 }

Reply via email to