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