diff options
author | Sam James <sam@gentoo.org> | 2021-09-16 02:41:22 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-09-16 02:41:22 +0100 |
commit | a580532de52c209b8dc15a164a9bcba141fc69d1 (patch) | |
tree | af6d2a5d6210bc0925f75924987d04605a53ddf4 /sci-libs/fftw/fftw-9999.ebuild | |
parent | sci-libs/libsigrokdecode: Pick the right python3-embed version (diff) | |
download | gentoo-a580532de52c209b8dc15a164a9bcba141fc69d1.tar.gz gentoo-a580532de52c209b8dc15a164a9bcba141fc69d1.tar.bz2 gentoo-a580532de52c209b8dc15a164a9bcba141fc69d1.zip |
sci-libs/fftw: add 3.3.10, sync live
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sci-libs/fftw/fftw-9999.ebuild')
-rw-r--r-- | sci-libs/fftw/fftw-9999.ebuild | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/sci-libs/fftw/fftw-9999.ebuild b/sci-libs/fftw/fftw-9999.ebuild index 23c52fd7f3d2..c8a32cdc88e8 100644 --- a/sci-libs/fftw/fftw-9999.ebuild +++ b/sci-libs/fftw/fftw-9999.ebuild @@ -8,7 +8,7 @@ FORTRAN_NEEDED=fortran inherit flag-o-matic fortran-2 multibuild multilib-minimal toolchain-funcs DESCRIPTION="Fast C library for the Discrete Fourier Transform" -HOMEPAGE="http://www.fftw.org/" +HOMEPAGE="https://www.fftw.org/" MY_P=${PN}-${PV/_p/-pl} @@ -16,22 +16,21 @@ 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 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" + SRC_URI="https://www.fftw.org/${PN}-${PV/_p/-pl}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" fi +S="${WORKDIR}/${MY_P}" + LICENSE="GPL-2+" SLOT="3.0/3" 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 test threads zbus" RESTRICT="!test? ( test )" -RDEPEND=" - mpi? ( >=virtual/mpi-2.0-r4[${MULTILIB_USEDEP}] )" +RDEPEND="mpi? ( >=virtual/mpi-2.0-r4[${MULTILIB_USEDEP}] )" DEPEND="${RDEPEND}" -BDEPEND=" - test? ( dev-lang/perl )" +BDEPEND="test? ( dev-lang/perl )" -S="${WORKDIR}/${MY_P}" HTML_DOCS=( doc/html/. ) pkg_pretend() { @@ -65,6 +64,7 @@ multilib_src_configure() { $(use_enable threads) $(use_enable openmp) ) + [[ ${PV} == *9999 ]] && myconf+=( --enable-maintainer-mode ) # --enable-quad-precision is a brittle feature that requires @@ -147,13 +147,16 @@ src_install() { rm -r "${ED}"/usr/share/doc/${PF}/html || die fi - local x - 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 + augment_pc_files() { + local x + for x in "${ED}"/usr/$(get_libdir)/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 + done done - done + } + multilib_foreach_abi augment_pc_files # fftw uses pkg-config to record its private dependencies find "${ED}" -name '*.la' -delete || die |