commit:     74b7526430cd395dc008f7e601b968f6fa1514fc
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 30 14:39:10 2015 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Fri Oct 30 14:45:33 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74b75264

media-libs/chromaprint: Convert to multilib.

Package-Manager: portage-2.2.23

 media-libs/chromaprint/chromaprint-1.2-r1.ebuild | 43 ++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/media-libs/chromaprint/chromaprint-1.2-r1.ebuild 
b/media-libs/chromaprint/chromaprint-1.2-r1.ebuild
new file mode 100644
index 0000000..07293c8
--- /dev/null
+++ b/media-libs/chromaprint/chromaprint-1.2-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-multilib
+
+DESCRIPTION="A client-side library that implements a custom algorithm for 
extracting fingerprints"
+HOMEPAGE="http://acoustid.org/chromaprint";
+SRC_URI="https://bitbucket.org/acoustid/${PN}/downloads/${P}.tar.gz";
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~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
+               dev-libs/boost
+       )"
+
+DOCS="NEWS.txt README.md"
+
+PATCHES=( "${FILESDIR}"/${PN}-1.1-gtest.patch 
"${FILESDIR}"/${P}-ffmpeg29.patch )
+
+multilib_src_configure() {
+       local mycmakeargs=(
+               "-DBUILD_EXAMPLES=$(multilib_native_usex tools ON OFF)"
+               "-DBUILD_TESTS=$(usex test ON OFF)"
+               -DWITH_AVFFT=ON
+               )
+       cmake-utils_src_configure
+}
+
+multilib_src_test() {
+       emake check
+}

Reply via email to