You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.1 KiB
53 lines
1.1 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
7 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
3 years ago
|
EAPI=7
|
||
7 years ago
|
|
||
|
inherit toolchain-funcs
|
||
|
|
||
|
DESCRIPTION="library for nonequispaced discrete Fourier transformations"
|
||
6 years ago
|
HOMEPAGE="https://www-user.tu-chemnitz.de/~potts/nfft/"
|
||
7 years ago
|
SRC_URI="https://github.com/NFFT/nfft/releases/download/${PV}/${P}.tar.gz"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
5 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
3 years ago
|
IUSE="doc openmp"
|
||
7 years ago
|
|
||
|
RDEPEND="sci-libs/fftw:3.0[threads,openmp?]"
|
||
|
DEPEND="${RDEPEND}"
|
||
|
|
||
|
pkg_pretend() {
|
||
|
if [[ ${MERGE_TYPE} != binary ]] && use openmp; then
|
||
|
if ! tc-has-openmp; then
|
||
|
ewarn "OpenMP is not available in your current selected compiler"
|
||
|
|
||
|
if tc-is-clang; then
|
||
|
ewarn "OpenMP support in sys-devel/clang is provided by sys-libs/libomp,"
|
||
|
ewarn "which you will need to build ${CATEGORY}/${PN} with USE=\"openmp\""
|
||
|
fi
|
||
|
|
||
|
die "need openmp capable compiler"
|
||
|
fi
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
econf \
|
||
3 years ago
|
--enable-all \
|
||
7 years ago
|
--enable-shared \
|
||
3 years ago
|
--disable-static \
|
||
|
$(use_enable openmp)
|
||
7 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
|
default
|
||
|
|
||
3 years ago
|
if ! use doc; then
|
||
|
rm -r "${ED}"/usr/share/doc/${P}/html || die
|
||
|
fi
|
||
|
|
||
|
# no static archives
|
||
7 years ago
|
find "${ED}" -name '*.la' -delete || die
|
||
|
}
|