diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-05-14 11:09:11 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-05-14 11:09:11 +0100 |
commit | deba8115d2c2af26df42966b91ef04ff4dd79cde (patch) | |
tree | 9a48f42594e1a9e6b2020d5535a784314434d7a7 /media-libs/chromaprint/chromaprint-1.5.0.ebuild | |
parent | 38423c67c8a23f6a1bc42038193182e2da3116eb (diff) |
gentoo resync : 14.05.2020
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..443f5af521e7 --- /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/v$(ver_cut 1-2 ${GTEST_VERSION}).x.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 +} |