From: Andreas Sturmlechner Date: Mon, 1 Oct 2018 19:31:48 +0000 (+0200) Subject: media-libs/aubio: Fix USE flag conflicts X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=19c3f586c801c32054718525defffa129cadf9bd;p=gentoo.git media-libs/aubio: Fix USE flag conflicts Thanks-to: ak <4nykey@gmail.com> Closes: https://bugs.gentoo.org/605750 Signed-off-by: Andreas Sturmlechner Package-Manager: Portage-2.3.50, Repoman-2.3.11 --- diff --git a/media-libs/aubio/aubio-0.4.7.ebuild b/media-libs/aubio/aubio-0.4.7.ebuild index 0592ffa0a50d..a7d7db9a590a 100644 --- a/media-libs/aubio/aubio-0.4.7.ebuild +++ b/media-libs/aubio/aubio-0.4.7.ebuild @@ -37,7 +37,9 @@ DEPEND="${RDEPEND} virtual/pkgconfig doc? ( app-doc/doxygen ) " -REQUIRED_USE="${PYTHON_REQUIRED_USE}" +REQUIRED_USE="${PYTHON_REQUIRED_USE} + ?? ( double-precision libsamplerate ) +" DOCS=( AUTHORS ChangeLog README.md ) PYTHON_SRC_DIR="${S}" @@ -49,16 +51,19 @@ src_prepare() { src_configure() { python_setup - waf-utils_src_configure \ - --enable-complex \ - --docdir="${EPREFIX}"/usr/share/doc/${PF} \ - $(use_enable double-precision double) \ - $(use_enable fftw fftw3f) \ - $(use_enable fftw fftw3) \ - $(use_enable ffmpeg avcodec) \ - $(use_enable jack) \ - $(use_enable libsamplerate samplerate) \ + local mywafconfargs=( + --enable-complex + --docdir="${EPREFIX}"/usr/share/doc/${PF} + $(use_enable double-precision double) + $(use_enable fftw fftw3) + $(use_enable ffmpeg avcodec) + $(use_enable jack) + $(use_enable libsamplerate samplerate) $(use_enable sndfile) + ) + use double-precision || mywafconfargs+=( $(use_enable fftw fftw3f) ) + + waf-utils_src_configure "${mywafconfargs[@]}" if use python ; then cd "${PYTHON_SRC_DIR}" || die