diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2020-05-07 11:36:21 +0200 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2020-05-07 14:42:30 +0200 |
commit | 292109feb5deddadfc5e4893e83cea7866717389 (patch) | |
tree | cc5d64dfeaef01607f12da8c0fd8f23b379f8a17 /media-libs/chromaprint/chromaprint-1.5.0.ebuild | |
parent | www-client/chromium: amd64 stable wrt bug #721310 (diff) | |
download | gentoo-292109feb5deddadfc5e4893e83cea7866717389.tar.gz gentoo-292109feb5deddadfc5e4893e83cea7866717389.tar.bz2 gentoo-292109feb5deddadfc5e4893e83cea7866717389.zip |
media-libs/chromaprint: Bump to version 1.5.0
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'media-libs/chromaprint/chromaprint-1.5.0.ebuild')
-rw-r--r-- | media-libs/chromaprint/chromaprint-1.5.0.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/media-libs/chromaprint/chromaprint-1.5.0.ebuild b/media-libs/chromaprint/chromaprint-1.5.0.ebuild new file mode 100644 index 000000000000..8e835df6c844 --- /dev/null +++ b/media-libs/chromaprint/chromaprint-1.5.0.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CMAKE_ECLASS=cmake +GTEST_VERSION="1.10.0" +inherit cmake-multilib + +DESCRIPTION="Library implementing a custom algorithm for extracting audio fingerprints" +HOMEPAGE="https://acoustid.org/chromaprint" +SRC_URI="https://github.com/acoustid/${PN}/releases/download/v${PV}/${P}.tar.gz + test? ( https://github.com/google/googletest/archive/release-${GTEST_VERSION}.tar.gz -> gtest-${GTEST_VERSION}.tar.gz ) +" + +LICENSE="LGPL-2.1" +SLOT="0/1" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="test tools" +RESTRICT="!test? ( test )" + +# 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}] )" + +DOCS=( NEWS.txt README.md ) + +S="${WORKDIR}/${PN}-v${PV}" + +multilib_src_configure() { + export GTEST_ROOT="${WORKDIR}/googletest-release-${GTEST_VERSION}/googletest/" + local mycmakeargs=( + -DBUILD_TOOLS=$(multilib_native_usex tools ON OFF) + -DBUILD_TESTS=$(usex test ON OFF) + -DFFT_LIB=avfft + -DAUDIO_PROCESSOR_LIB="swresample" + ) + cmake_src_configure +} + +multilib_src_test() { + emake check +} |