Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/chromaprint/
Date: Fri, 30 Oct 2015 14:45:47
Message-Id: 1446216333.74b7526430cd395dc008f7e601b968f6fa1514fc.aballier@gentoo
1 commit: 74b7526430cd395dc008f7e601b968f6fa1514fc
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 30 14:39:10 2015 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 30 14:45:33 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74b75264
7
8 media-libs/chromaprint: Convert to multilib.
9
10 Package-Manager: portage-2.2.23
11
12 media-libs/chromaprint/chromaprint-1.2-r1.ebuild | 43 ++++++++++++++++++++++++
13 1 file changed, 43 insertions(+)
14
15 diff --git a/media-libs/chromaprint/chromaprint-1.2-r1.ebuild b/media-libs/chromaprint/chromaprint-1.2-r1.ebuild
16 new file mode 100644
17 index 0000000..07293c8
18 --- /dev/null
19 +++ b/media-libs/chromaprint/chromaprint-1.2-r1.ebuild
20 @@ -0,0 +1,43 @@
21 +# Copyright 1999-2015 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI=5
26 +inherit cmake-multilib
27 +
28 +DESCRIPTION="A client-side library that implements a custom algorithm for extracting fingerprints"
29 +HOMEPAGE="http://acoustid.org/chromaprint"
30 +SRC_URI="https://bitbucket.org/acoustid/${PN}/downloads/${P}.tar.gz"
31 +
32 +LICENSE="LGPL-2.1"
33 +SLOT="0"
34 +KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~x86 ~amd64-fbsd"
35 +IUSE="libav test tools"
36 +
37 +# note: use ffmpeg or libav instead of fftw because it's recommended and required for tools
38 +RDEPEND="
39 + libav? ( >=media-video/libav-11:0=[${MULTILIB_USEDEP}] )
40 + !libav? ( >=media-video/ffmpeg-2.6:0=[${MULTILIB_USEDEP}] )
41 +"
42 +DEPEND="${RDEPEND}
43 + test? (
44 + dev-cpp/gtest
45 + dev-libs/boost
46 + )"
47 +
48 +DOCS="NEWS.txt README.md"
49 +
50 +PATCHES=( "${FILESDIR}"/${PN}-1.1-gtest.patch "${FILESDIR}"/${P}-ffmpeg29.patch )
51 +
52 +multilib_src_configure() {
53 + local mycmakeargs=(
54 + "-DBUILD_EXAMPLES=$(multilib_native_usex tools ON OFF)"
55 + "-DBUILD_TESTS=$(usex test ON OFF)"
56 + -DWITH_AVFFT=ON
57 + )
58 + cmake-utils_src_configure
59 +}
60 +
61 +multilib_src_test() {
62 + emake check
63 +}