media-libs/libsamplerate: Update live ebuild
authorDavid Seifert <soap@gentoo.org>
Sun, 22 Apr 2018 09:26:15 +0000 (11:26 +0200)
committerDavid Seifert <soap@gentoo.org>
Sun, 22 Apr 2018 09:26:44 +0000 (11:26 +0200)
Package-Manager: Portage-2.3.31, Repoman-2.3.9

media-libs/libsamplerate/libsamplerate-9999.ebuild

index e92848835512c4efb8b5ecd20d8a6b3d48ea3832..5fd3fc1ba4573080e647998bc180a6faaf5b3a70 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -18,19 +18,15 @@ fi
 
 LICENSE="BSD-2"
 SLOT="0"
-IUSE="sndfile static-libs test"
-REQUIRED_USE="test? ( sndfile )"
-
-RDEPEND="
-       sndfile? (
-               media-libs/libsndfile:=[${MULTILIB_USEDEP}]
-       )"
-# Alsa/FFTW are only consumed
-# by tests, not by the main library.
+IUSE="static-libs test"
+RESTRICT="!test? ( test )"
+
+# Alsa/FFTW are only required for tests
+# libsndfile is only used by examples and tests
 DEPEND="
-       ${RDEPEND}
        test? (
                media-libs/alsa-lib[${MULTILIB_USEDEP}]
+               media-libs/libsndfile[${MULTILIB_USEDEP}]
                sci-libs/fftw:3.0[${MULTILIB_USEDEP}]
        )
        virtual/pkgconfig"
@@ -43,10 +39,10 @@ src_prepare() {
 
 multilib_src_configure() {
        ECONF_SOURCE="${S}" econf \
-               $(use_enable sndfile) \
                $(use_enable static-libs static) \
                $(use_enable test alsa) \
-               $(use_enable test fftw)
+               $(use_enable test fftw) \
+               $(use_enable test sndfile)
 }
 
 multilib_src_install_all() {