Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libsamplerate/
Date: Sat, 14 Oct 2017 19:23:38
Message-Id: 1508008988.b9576fc069221a6679137b6b4d51115318ca0169.soap@gentoo
1 commit: b9576fc069221a6679137b6b4d51115318ca0169
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 14 19:23:08 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 14 19:23:08 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9576fc0
7
8 media-libs/libsamplerate: Add live ebuild
9
10 Package-Manager: Portage-2.3.11, Repoman-2.3.3
11
12 media-libs/libsamplerate/libsamplerate-9999.ebuild | 57 ++++++++++++++++++++++
13 1 file changed, 57 insertions(+)
14
15 diff --git a/media-libs/libsamplerate/libsamplerate-9999.ebuild b/media-libs/libsamplerate/libsamplerate-9999.ebuild
16 new file mode 100644
17 index 00000000000..e9284883551
18 --- /dev/null
19 +++ b/media-libs/libsamplerate/libsamplerate-9999.ebuild
20 @@ -0,0 +1,57 @@
21 +# Copyright 1999-2017 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +
26 +inherit multilib-minimal
27 +
28 +DESCRIPTION="Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for audio"
29 +HOMEPAGE="http://www.mega-nerd.com/SRC/"
30 +
31 +if [[ ${PV} == *9999 ]]; then
32 + inherit autotools git-r3
33 + EGIT_REPO_URI="https://github.com/erikd/libsamplerate.git"
34 +else
35 + SRC_URI="http://www.mega-nerd.com/SRC/${P}.tar.gz"
36 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
37 +fi
38 +
39 +LICENSE="BSD-2"
40 +SLOT="0"
41 +IUSE="sndfile static-libs test"
42 +REQUIRED_USE="test? ( sndfile )"
43 +
44 +RDEPEND="
45 + sndfile? (
46 + media-libs/libsndfile:=[${MULTILIB_USEDEP}]
47 + )"
48 +# Alsa/FFTW are only consumed
49 +# by tests, not by the main library.
50 +DEPEND="
51 + ${RDEPEND}
52 + test? (
53 + media-libs/alsa-lib[${MULTILIB_USEDEP}]
54 + sci-libs/fftw:3.0[${MULTILIB_USEDEP}]
55 + )
56 + virtual/pkgconfig"
57 +
58 +src_prepare() {
59 + default
60 +
61 + [[ ${PV} == *9999 ]] && eautoreconf
62 +}
63 +
64 +multilib_src_configure() {
65 + ECONF_SOURCE="${S}" econf \
66 + $(use_enable sndfile) \
67 + $(use_enable static-libs static) \
68 + $(use_enable test alsa) \
69 + $(use_enable test fftw)
70 +}
71 +
72 +multilib_src_install_all() {
73 + einstalldocs
74 +
75 + # package provides .pc files
76 + find "${D}" -name '*.la' -delete || die
77 +}