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/libsndfile/
Date: Sun, 27 Mar 2022 12:56:48
Message-Id: 1648385788.f4d27f5152f534f429dfe79c1172977ea22d17ae.soap@gentoo
1 commit: f4d27f5152f534f429dfe79c1172977ea22d17ae
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 27 12:56:28 2022 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 27 12:56:28 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4d27f51
7
8 media-libs/libsndfile: add 1.1.0
9
10 Signed-off-by: David Seifert <soap <AT> gentoo.org>
11
12 media-libs/libsndfile/Manifest | 1 +
13 media-libs/libsndfile/libsndfile-1.1.0.ebuild | 74 +++++++++++++++++++++++++++
14 2 files changed, 75 insertions(+)
15
16 diff --git a/media-libs/libsndfile/Manifest b/media-libs/libsndfile/Manifest
17 index 7a791144a2d2..f18173fc5402 100644
18 --- a/media-libs/libsndfile/Manifest
19 +++ b/media-libs/libsndfile/Manifest
20 @@ -1 +1,2 @@
21 DIST libsndfile-1.0.31.tar.bz2 875335 BLAKE2B 33e3c3d111427e829d8233aec52c227188834936839da9a04cf1ea5d2595d6a3127e7ce86d7686ca0336cca2017e6e2466845c27c7fc399efae34a0902316e41 SHA512 62202092e5cac6346fd3c0a977380e9bf888fc59d08c9c9707dc254a8ef6ed6356da2ab0430bb970c7b06ba5bb1dafa5d7b0fe13898834c1fe4acb16f409f0e1
22 +DIST libsndfile-1.1.0.tar.xz 730604 BLAKE2B ff2d27bff460c4d3c549bdf70c84c6f17a2c3e10674a44216ed83e657e603ddfbc33afe0827676fc4f5dc7745a9fb6aa866023fe589d0c00714477e3a246e5f2 SHA512 d01696a8a88a4444e5eb91a137cf7b26b55b12c1fe3b648653f7e78674bbdf61870066216c9ff2f6a1e63bdf7b558af9a759480cf6523b607d29347b12762006
23
24 diff --git a/media-libs/libsndfile/libsndfile-1.1.0.ebuild b/media-libs/libsndfile/libsndfile-1.1.0.ebuild
25 new file mode 100644
26 index 000000000000..bb877041e344
27 --- /dev/null
28 +++ b/media-libs/libsndfile/libsndfile-1.1.0.ebuild
29 @@ -0,0 +1,74 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +PYTHON_COMPAT=( python3_{8..10} pypy3 )
36 +
37 +if [[ ${PV} == *9999 ]]; then
38 + inherit autotools git-r3
39 + EGIT_REPO_URI="https://github.com/libsndfile/libsndfile.git"
40 +else
41 + SRC_URI="https://github.com/libsndfile/libsndfile/releases/download/${PV}/${P}.tar.xz"
42 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
43 +fi
44 +inherit python-any-r1 multilib-minimal
45 +
46 +DESCRIPTION="C library for reading and writing files containing sampled sound"
47 +HOMEPAGE="https://libsndfile.github.io/libsndfile/"
48 +
49 +LICENSE="LGPL-2.1"
50 +SLOT="0"
51 +IUSE="alsa minimal sqlite test"
52 +RESTRICT="!test? ( test )"
53 +
54 +RDEPEND="
55 + !minimal? (
56 + media-libs/flac:=[${MULTILIB_USEDEP}]
57 + media-libs/libogg:=[${MULTILIB_USEDEP}]
58 + media-libs/libvorbis:=[${MULTILIB_USEDEP}]
59 + media-libs/opus:=[${MULTILIB_USEDEP}]
60 + )
61 + alsa? ( media-libs/alsa-lib:= )
62 + sqlite? ( dev-db/sqlite )"
63 +DEPEND="${RDEPEND}"
64 +BDEPEND="
65 + virtual/pkgconfig
66 + test? ( ${PYTHON_DEPS} )"
67 +if [[ ${PV} == *9999 ]]; then
68 + BDEPEND+="
69 + ${PYTHON_DEPS}
70 + sys-devel/autogen
71 + "
72 +fi
73 +
74 +pkg_setup() {
75 + if use test || [[ ${PV} == *9999 ]]; then
76 + python-any-r1_pkg_setup
77 + fi
78 +}
79 +
80 +src_prepare() {
81 + default
82 +
83 + [[ ${PV} == *9999 ]] && eautoreconf
84 +}
85 +
86 +multilib_src_configure() {
87 + ECONF_SOURCE="${S}" econf \
88 + --disable-octave \
89 + --disable-static \
90 + --disable-werror \
91 + $(use_enable !minimal external-libs) \
92 + $(multilib_native_enable full-suite) \
93 + $(multilib_native_use_enable alsa) \
94 + $(multilib_native_use_enable sqlite) \
95 + PYTHON="${EPYTHON}"
96 +}
97 +
98 +multilib_src_install_all() {
99 + einstalldocs
100 +
101 + # no static archives
102 + find "${ED}" -name '*.la' -delete || die
103 +}