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: Sun, 05 Sep 2021 12:11:17
Message-Id: 1630843860.d98252a18249287d04b708c56fbcd2a6e7bba849.soap@gentoo
1 commit: d98252a18249287d04b708c56fbcd2a6e7bba849
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 5 12:11:00 2021 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 5 12:11:00 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d98252a1
7
8 media-libs/libsamplerate: add 0.2.2
9
10 Signed-off-by: David Seifert <soap <AT> gentoo.org>
11
12 media-libs/libsamplerate/Manifest | 1 +
13 .../libsamplerate/libsamplerate-0.2.2.ebuild | 49 ++++++++++++++++++++++
14 2 files changed, 50 insertions(+)
15
16 diff --git a/media-libs/libsamplerate/Manifest b/media-libs/libsamplerate/Manifest
17 index c4c029f96b3..fb0051a0279 100644
18 --- a/media-libs/libsamplerate/Manifest
19 +++ b/media-libs/libsamplerate/Manifest
20 @@ -1 +1,2 @@
21 DIST libsamplerate-0.2.1.tar.bz2 3747188 BLAKE2B 83540f3e75cfa79cbd166f075d22cab6a63e0e057b90ac6a3760c07196cac962df7d1ca26620a9033de046e0528bee3ded2b482e8629b1ae316844b5b31f3074 SHA512 f54f7f12c9536868d7a11fc9cbb86857505e7b75fe34cedaf0b9bfc864da6037296b3eae303a33d4c87b7fd20d96933b91ef59c8cc3d1313b9fc21654e5daa2d
22 +DIST libsamplerate-0.2.2.tar.xz 3319468 BLAKE2B 71b1e8a1644a94fff019abc6bf98c557df84994293f1e9bc651ad3ad3f0afeb24f54b8c75fc26e5202ae7c3a3e34e783fd1be7f7c6fdefe9eac9a5dfe7100b91 SHA512 d23ae54d23209ba22baae9e5fd178dd8e0e99205dada7e7c3a7b3a3d8cf816ed427a411bfeb008427f64da7767d645edce40811f238af11c8c386f5ef25a9f0c
23
24 diff --git a/media-libs/libsamplerate/libsamplerate-0.2.2.ebuild b/media-libs/libsamplerate/libsamplerate-0.2.2.ebuild
25 new file mode 100644
26 index 00000000000..698fa623a51
27 --- /dev/null
28 +++ b/media-libs/libsamplerate/libsamplerate-0.2.2.ebuild
29 @@ -0,0 +1,49 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +inherit multilib-minimal
36 +
37 +DESCRIPTION="Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for audio"
38 +HOMEPAGE="https://libsndfile.github.io/libsamplerate/"
39 +
40 +if [[ ${PV} == *9999 ]]; then
41 + inherit autotools git-r3
42 + EGIT_REPO_URI="https://github.com/libsndfile/libsamplerate.git"
43 +else
44 + SRC_URI="https://github.com/libsndfile/libsamplerate/releases/download/${PV}/${P}.tar.xz"
45 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
46 +fi
47 +
48 +LICENSE="BSD-2"
49 +SLOT="0"
50 +IUSE="test"
51 +RESTRICT="!test? ( test )"
52 +
53 +# Alsa/FFTW are only required for tests
54 +# libsndfile is only used by examples and tests
55 +DEPEND="
56 + test? (
57 + media-libs/alsa-lib[${MULTILIB_USEDEP}]
58 + media-libs/libsndfile[${MULTILIB_USEDEP}]
59 + sci-libs/fftw:3.0[${MULTILIB_USEDEP}]
60 + )"
61 +BDEPEND="virtual/pkgconfig"
62 +
63 +src_prepare() {
64 + default
65 + [[ ${PV} == *9999 ]] && eautoreconf
66 +}
67 +
68 +multilib_src_configure() {
69 + ECONF_SOURCE="${S}" econf \
70 + $(use_enable test alsa) \
71 + $(use_enable test fftw) \
72 + $(use_enable test sndfile)
73 +}
74 +
75 +multilib_src_install_all() {
76 + einstalldocs
77 + find "${ED}" -name '*.la' -type f -delete || die
78 +}