media-libs/chromaprint: migrate from libav
authorMikle Kolyada <zlogene@gentoo.org>
Sun, 26 Apr 2020 08:29:35 +0000 (11:29 +0300)
committerMikle Kolyada <zlogene@gentoo.org>
Sun, 26 Apr 2020 08:31:16 +0000 (11:31 +0300)
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
media-libs/chromaprint/chromaprint-1.4.3.ebuild

index ab357f8b267eb7db4e21309cbab3c565106be36c..81c4f4b78a7a1100f0c04a8f2a09281c84e6e7ca 100644 (file)
@@ -16,13 +16,11 @@ SRC_URI="https://github.com/acoustid/${PN}/releases/download/v${PV}/${P}.tar.gz
 LICENSE="LGPL-2.1"
 SLOT="0/1"
 KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 sparc x86"
-IUSE="libav test tools"
+IUSE="test tools"
 RESTRICT="!test? ( test )"
 
-# note: use ffmpeg or libav instead of fftw because it's recommended and required for tools
-RDEPEND="
-       libav? ( >=media-video/libav-11:0=[${MULTILIB_USEDEP}] )
-       !libav? ( >=media-video/ffmpeg-2.6:0=[${MULTILIB_USEDEP}] )
+# note: use ffmpeg instead of fftw because it's recommended and required for tools
+RDEPEND=">=media-video/ffmpeg-2.6:0=[${MULTILIB_USEDEP}]
 "
 DEPEND="${RDEPEND}
        test? ( dev-cpp/gtest[${MULTILIB_USEDEP}] )"
@@ -42,7 +40,7 @@ multilib_src_configure() {
                -DBUILD_TOOLS=$(multilib_native_usex tools ON OFF)
                -DBUILD_TESTS=$(usex test ON OFF)
                -DFFT_LIB=avfft
-               -DAUDIO_PROCESSOR_LIB=$(usex libav avresample swresample)
+               -DAUDIO_PROCESSOR_LIB="swresample"
        )
        cmake_src_configure
 }