Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-plugins/alsa-plugins/
Date: Tue, 07 Dec 2021 06:47:16
Message-Id: 1638859621.e2fabfb35b4259c1386750922e6e805835c71bf7.polynomial-c@gentoo
1 commit: e2fabfb35b4259c1386750922e6e805835c71bf7
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 7 06:44:30 2021 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 7 06:47:01 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2fabfb3
7
8 media-plugins/alsa-plugins: Bump to version 1.2.6
9
10 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
11
12 media-plugins/alsa-plugins/Manifest | 1 +
13 .../alsa-plugins/alsa-plugins-1.2.6.ebuild | 100 +++++++++++++++++++++
14 2 files changed, 101 insertions(+)
15
16 diff --git a/media-plugins/alsa-plugins/Manifest b/media-plugins/alsa-plugins/Manifest
17 index b245ef83d604..5512d43b9060 100644
18 --- a/media-plugins/alsa-plugins/Manifest
19 +++ b/media-plugins/alsa-plugins/Manifest
20 @@ -1,2 +1,3 @@
21 DIST alsa-plugins-1.2.2.tar.bz2 406494 BLAKE2B 64148e3e6fcf651a2ac62b6b5f3cc915fe6718d35fea53da08f6f4b1a5ff06ba29e69b8cd2a95e3b9edf3880570b1d0b9267239f705043dab592c27fdd150ef3 SHA512 25a7dfaa64be024447d889b5cde668f1308d197f54880548a82d50beb4ac0dbff33b415da1e26dc5229408c934247a9bd38acfb0f82ca388deac0d77ab3cdadb
22 DIST alsa-plugins-1.2.5.tar.bz2 406134 BLAKE2B a1bb2f187c92a2999722e22775baf2c1fc4240162bb71f454c60359ef61b46934ff8ecd5af97589bafe2c7f737530cf5a4dcc139af7ed001d8dfe24bf3ae045c SHA512 32aa475ec4af040861c2bfb01eac71042242d2109d3c5102d0111f3327e3f6c9031c32cbb50eb4b6568a6bd9408691a047a39972f09d6087e31ec11f19ddc9cf
23 +DIST alsa-plugins-1.2.6.tar.bz2 408596 BLAKE2B bead0b9514725560a4fb738c4b1e14b148bf888cc82e0d7611cb6c494ed97a7e366b57f233095372c26a7bd614655bd58a6505202910de421561b540c94d5cca SHA512 ac54a6f227f1ca5f6e01e08d869e7c06f4bcd68f148932e1902a6fcf3e5ccd3667ac4d8c1a00b77e4b5cb27e17c01cf7526ded4aaf35c4b26fc69e14e6e341f9
24
25 diff --git a/media-plugins/alsa-plugins/alsa-plugins-1.2.6.ebuild b/media-plugins/alsa-plugins/alsa-plugins-1.2.6.ebuild
26 new file mode 100644
27 index 000000000000..5aada389cb21
28 --- /dev/null
29 +++ b/media-plugins/alsa-plugins/alsa-plugins-1.2.6.ebuild
30 @@ -0,0 +1,100 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +inherit autotools flag-o-matic multilib multilib-minimal
36 +
37 +DESCRIPTION="ALSA extra plugins"
38 +HOMEPAGE="https://alsa-project.org/wiki/Main_Page"
39 +SRC_URI="https://www.alsa-project.org/files/pub/plugins/${P}.tar.bz2"
40 +
41 +LICENSE="GPL-2 LGPL-2.1"
42 +SLOT="0"
43 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux"
44 +IUSE="arcam_av debug ffmpeg jack libsamplerate +mix oss pulseaudio speex +usb_stream"
45 +
46 +RDEPEND="
47 + >=media-libs/alsa-lib-${PV}:=[${MULTILIB_USEDEP}]
48 + ffmpeg? ( media-video/ffmpeg:0=[${MULTILIB_USEDEP}] )
49 + jack? ( virtual/jack[${MULTILIB_USEDEP}] )
50 + libsamplerate? ( >=media-libs/libsamplerate-0.1.8-r1:=[${MULTILIB_USEDEP}] )
51 + pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] )
52 + speex? (
53 + >=media-libs/speex-1.2.0:=[${MULTILIB_USEDEP}]
54 + media-libs/speexdsp[${MULTILIB_USEDEP}]
55 + )
56 +"
57 +DEPEND="${RDEPEND}"
58 +BDEPEND="virtual/pkgconfig"
59 +
60 +src_prepare() {
61 + default
62 +
63 + # For some reasons the polyp/pulse plugin does fail with alsaplayer with a
64 + # failed assert. As the code works just fine with asserts disabled, for now
65 + # disable them waiting for a better solution.
66 + sed \
67 + -e '/AM_CFLAGS/s:-Wall:-DNDEBUG -Wall:' \
68 + -i pulse/Makefile.am || die
69 +
70 + eautoreconf
71 +}
72 +
73 +multilib_src_configure() {
74 + use debug || append-cppflags -DNDEBUG
75 +
76 + local myeconfargs=(
77 + # default does not contain $prefix: bug #673464
78 + --with-alsalconfdir="${EPREFIX}"/etc/alsa/conf.d
79 +
80 + --with-speex="$(usex speex lib no)"
81 + $(use_enable arcam_av arcamav)
82 + $(use_enable ffmpeg libav)
83 + $(use_enable jack)
84 + $(use_enable libsamplerate samplerate)
85 + $(use_enable mix)
86 + $(use_enable oss)
87 + $(use_enable pulseaudio)
88 + $(use_enable speex speexdsp)
89 + $(use_enable usb_stream usbstream)
90 + )
91 + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
92 +}
93 +
94 +multilib_src_install_all() {
95 + einstalldocs
96 +
97 + cd doc || die
98 + dodoc upmix.txt vdownmix.txt README-pcm-oss
99 + use jack && dodoc README-jack
100 + use libsamplerate && dodoc samplerate.txt
101 + use ffmpeg && dodoc lavrate.txt a52.txt
102 +
103 + if use pulseaudio; then
104 + dodoc README-pulse
105 + # install ALSA configuration files
106 + # making PA to be used by alsa clients
107 + insinto /usr/share/alsa
108 + doins "${FILESDIR}"/pulse-default.conf
109 + insinto /usr/share/alsa/alsa.conf.d
110 + doins "${FILESDIR}"/51-pulseaudio-probe.conf
111 + # bug #410261, comment 5+
112 + # seems to work fine without any path
113 + sed \
114 + -e "s:/usr/lib/alsa-lib/::" \
115 + -i "${ED}"/usr/share/alsa/alsa.conf.d/51-pulseaudio-probe.conf || die #410261
116 + dosym ../../../usr/share/alsa/alsa.conf.d/51-pulseaudio-probe.conf \
117 + /etc/alsa/conf.d/51-pulseaudio-probe.conf #670960
118 + fi
119 +
120 + find "${ED}" -type f \( -name '*.a' -o -name '*.la' \) -delete || die
121 +}
122 +
123 +pkg_postinst() {
124 + if use pulseaudio; then
125 + einfo "The PulseAudio device is now set as the default device if the"
126 + einfo "PulseAudio server is found to be running. Any custom"
127 + einfo "configuration in /etc/asound.conf or ~/.asoundrc for this"
128 + einfo "purpose should now be unnecessary."
129 + fi
130 +}