media-libs/aubio: Disable tests for real
authorAndreas Sturmlechner <asturm@gentoo.org>
Mon, 1 Oct 2018 20:07:08 +0000 (22:07 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Mon, 1 Oct 2018 20:08:19 +0000 (22:08 +0200)
Tests were always built and run regardless. At least disable them
if not requested.

Bug: https://bugs.gentoo.org/651956
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Package-Manager: Portage-2.3.50, Repoman-2.3.11

media-libs/aubio/aubio-0.4.7.ebuild

index a7d7db9a590a451987ec1caa15e126f91dba9010..c7b767af9ebe70284d06a4aa688adc6e6d9880cf 100644 (file)
@@ -15,7 +15,7 @@ SRC_URI="https://aubio.org/pub/${P}.tar.bz2"
 LICENSE="GPL-3"
 SLOT="0/5"
 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
-IUSE="doc double-precision examples ffmpeg fftw jack libav libsamplerate sndfile python"
+IUSE="doc double-precision examples ffmpeg fftw jack libav libsamplerate sndfile python test"
 
 RDEPEND="
        ffmpeg? (
@@ -46,7 +46,11 @@ PYTHON_SRC_DIR="${S}"
 
 src_prepare() {
        default
-       sed -i -e "s:doxygen:doxygen_disabled:" wscript || die
+       sed -e "s:doxygen:doxygen_disabled:" -i wscript || die
+
+       if ! use test; then
+               sed -e "/bld.*tests/d" -i wscript || die
+       fi
 }
 
 src_configure() {