diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2018-04-19 22:52:38 +0200 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2018-05-13 13:17:56 +0100 |
commit | 7aa820ae52e5b028eca2b0364add30cb7440b54b (patch) | |
tree | 78f3eea0a76ad6981e2272d62c7047d167d4bc31 /media-libs/chromaprint/chromaprint-1.4.3.ebuild | |
parent | net-im/skypeforlinux: remove 8.14.0.10 (diff) | |
download | gentoo-7aa820ae52e5b028eca2b0364add30cb7440b54b.tar.gz gentoo-7aa820ae52e5b028eca2b0364add30cb7440b54b.tar.bz2 gentoo-7aa820ae52e5b028eca2b0364add30cb7440b54b.zip |
media-libs/chromaprint-1.4.3: add new version
Closes: https://bugs.gentoo.org/653548
Package-Manager: Portage-2.3.24, Repoman-2.3.6
RepoMan-Options: --include-arches="sparc"
Closes: https://github.com/gentoo/gentoo/pull/8077
Diffstat (limited to 'media-libs/chromaprint/chromaprint-1.4.3.ebuild')
-rw-r--r-- | media-libs/chromaprint/chromaprint-1.4.3.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/media-libs/chromaprint/chromaprint-1.4.3.ebuild b/media-libs/chromaprint/chromaprint-1.4.3.ebuild new file mode 100644 index 000000000000..c1ac357af584 --- /dev/null +++ b/media-libs/chromaprint/chromaprint-1.4.3.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit cmake-multilib + +GTEST_VERSION="1.8.0" + +DESCRIPTION="A client-side library that implements a custom algorithm for extracting fingerprints" +HOMEPAGE="http://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 ~amd64-fbsd" +IUSE="libav test tools" + +# 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}] ) +" +DEPEND="${RDEPEND} + test? ( + dev-cpp/gtest[${MULTILIB_USEDEP}] + dev-libs/boost[${MULTILIB_USEDEP}] + )" + +PATCHES=( "${FILESDIR}"/chromaprint-1.4.3-test-bigendian.patch ) + +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=$(usex libav avresample swresample) + ) + cmake-utils_src_configure +} + +multilib_src_test() { + emake check +} |