1 |
commit: 824b23931c71b994eec223ab373c0f9f4406f054 |
2 |
Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 4 06:46:05 2017 +0000 |
4 |
Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 4 06:56:51 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=824b2393 |
7 |
|
8 |
media-sound/pulseaudio: version bump 10.0 → 10.99.1, bug #627760 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/show_bug.cgi?id=552818 |
11 |
Package-Manager: Portage-2.3.8, Repoman-2.3.3 |
12 |
|
13 |
media-sound/pulseaudio/Manifest | 1 + |
14 |
media-sound/pulseaudio/pulseaudio-10.99.1.ebuild | 365 +++++++++++++++++++++++ |
15 |
2 files changed, 366 insertions(+) |
16 |
|
17 |
diff --git a/media-sound/pulseaudio/Manifest b/media-sound/pulseaudio/Manifest |
18 |
index caedec5e80f..d91643a9943 100644 |
19 |
--- a/media-sound/pulseaudio/Manifest |
20 |
+++ b/media-sound/pulseaudio/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST pulseaudio-10.0.tar.xz 1608040 SHA256 a3186824de9f0d2095ded5d0d0db0405dc73133983c2fbb37291547e37462f57 SHA512 11d98b4b2000a41bdea92df253409452bc9b77d8bb309b6d14c439e3b902e3f90c69da00daff409e3859a54ad01c63a75be5723616bdcb492801d622a6406481 WHIRLPOOL 6d03d8cf7b96cbb46a8cc5f7810f7cf1c4187aa9321483d5e56435874b218d437bc66860d25a149be59ca73de7118916e05e481758e04619e099cb9a50dcb119 |
23 |
+DIST pulseaudio-10.99.1.tar.xz 1635836 SHA256 c9791844569d8d0adb468c183d0d9fb6ac12b9db34a4a078a7773c8bac993f32 SHA512 410758da3cf3431b5810b9a5790d60ed8fe0bba58f621f4ca8e7ba66be8dcdd53cbd8284105ee6694b04f81a37791c3e8c5fe4af3ee034e89dff0b66fdbde006 WHIRLPOOL c8dfe0e4ab54029fdc3b47fb43282406908b7993ee155d6aaa9919419fb4e58a8f1df34bc569a33697a02533979c6ff4002944a20ed96c1246993eb3b97b7eb3 |
24 |
|
25 |
diff --git a/media-sound/pulseaudio/pulseaudio-10.99.1.ebuild b/media-sound/pulseaudio/pulseaudio-10.99.1.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..54df4e0b7f5 |
28 |
--- /dev/null |
29 |
+++ b/media-sound/pulseaudio/pulseaudio-10.99.1.ebuild |
30 |
@@ -0,0 +1,365 @@ |
31 |
+# Copyright 1999-2017 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=6 |
35 |
+inherit autotools bash-completion-r1 eutils flag-o-matic gnome2-utils linux-info systemd user versionator udev multilib-minimal |
36 |
+ |
37 |
+DESCRIPTION="A networked sound server with an advanced plugin system" |
38 |
+HOMEPAGE="https://www.freedesktop.org/wiki/Software/PulseAudio/" |
39 |
+SRC_URI="https://freedesktop.org/software/pulseaudio/releases/${P}.tar.xz" |
40 |
+ |
41 |
+# libpulse-simple and libpulse link to libpulse-core; this is daemon's |
42 |
+# library and can link to gdbm and other GPL-only libraries. In this |
43 |
+# cases, we have a fully GPL-2 package. Leaving the rest of the |
44 |
+# GPL-forcing USE flags for those who use them. |
45 |
+# qpaeq equalizer pyqt GUI frontend is AGPL-3+ |
46 |
+LICENSE="!gdbm? ( LGPL-2.1 ) gdbm? ( GPL-2 ) equalizer? ( AGPL-3+ )" |
47 |
+ |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux" |
50 |
+ |
51 |
+# +alsa-plugin as discussed in bug #519530 |
52 |
+IUSE="+alsa +alsa-plugin +asyncns bluetooth +caps dbus doc equalizer +gdbm +glib |
53 |
+gnome gtk ipv6 jack libsamplerate libressl lirc native-headset neon ofono-headset |
54 |
++orc oss qt4 realtime selinux sox ssl systemd system-wide tcpd test +udev |
55 |
++webrtc-aec +X zeroconf" |
56 |
+ |
57 |
+# See "*** BLUEZ support not found (requires D-Bus)" in configure.ac |
58 |
+REQUIRED_USE=" |
59 |
+ bluetooth? ( dbus ) |
60 |
+ equalizer? ( dbus ) |
61 |
+ ofono-headset? ( bluetooth ) |
62 |
+ native-headset? ( bluetooth ) |
63 |
+ udev? ( || ( alsa oss ) ) |
64 |
+" |
65 |
+ |
66 |
+# libpcre needed in some cases, bug #472228 |
67 |
+RDEPEND=" |
68 |
+ || ( |
69 |
+ elibc_glibc? ( virtual/libc ) |
70 |
+ elibc_uclibc? ( virtual/libc ) |
71 |
+ dev-libs/libpcre |
72 |
+ ) |
73 |
+ >=media-libs/libsndfile-1.0.20[${MULTILIB_USEDEP}] |
74 |
+ X? ( |
75 |
+ >=x11-libs/libX11-1.4.0[${MULTILIB_USEDEP}] |
76 |
+ >=x11-libs/libxcb-1.6[${MULTILIB_USEDEP}] |
77 |
+ x11-libs/libSM[${MULTILIB_USEDEP}] |
78 |
+ x11-libs/libICE[${MULTILIB_USEDEP}] |
79 |
+ x11-libs/libXtst[${MULTILIB_USEDEP}] |
80 |
+ ) |
81 |
+ caps? ( >=sys-libs/libcap-2.22-r2[${MULTILIB_USEDEP}] ) |
82 |
+ libsamplerate? ( >=media-libs/libsamplerate-0.1.1-r1 ) |
83 |
+ alsa? ( >=media-libs/alsa-lib-1.0.19 ) |
84 |
+ glib? ( >=dev-libs/glib-2.4.0:2[${MULTILIB_USEDEP}] ) |
85 |
+ zeroconf? ( >=net-dns/avahi-0.6.12[dbus] ) |
86 |
+ jack? ( virtual/jack ) |
87 |
+ tcpd? ( sys-apps/tcp-wrappers[${MULTILIB_USEDEP}] ) |
88 |
+ lirc? ( app-misc/lirc ) |
89 |
+ dbus? ( >=sys-apps/dbus-1.0.0[${MULTILIB_USEDEP}] ) |
90 |
+ gtk? ( x11-libs/gtk+:3 ) |
91 |
+ gnome? ( >=gnome-base/gconf-2.4.0 ) |
92 |
+ bluetooth? ( |
93 |
+ >=net-wireless/bluez-5 |
94 |
+ >=sys-apps/dbus-1.0.0 |
95 |
+ media-libs/sbc |
96 |
+ ) |
97 |
+ asyncns? ( net-libs/libasyncns[${MULTILIB_USEDEP}] ) |
98 |
+ udev? ( >=virtual/udev-143[hwdb(+)] ) |
99 |
+ realtime? ( sys-auth/rtkit ) |
100 |
+ equalizer? ( sci-libs/fftw:3.0 ) |
101 |
+ ofono-headset? ( >=net-misc/ofono-1.13 ) |
102 |
+ orc? ( >=dev-lang/orc-0.4.15 ) |
103 |
+ sox? ( >=media-libs/soxr-0.1.1 ) |
104 |
+ ssl? ( |
105 |
+ !libressl? ( dev-libs/openssl:0= ) |
106 |
+ libressl? ( dev-libs/libressl:= ) |
107 |
+ ) |
108 |
+ || ( |
109 |
+ ( |
110 |
+ >=media-libs/speex-1.2.0 |
111 |
+ media-libs/speexdsp |
112 |
+ ) |
113 |
+ ( |
114 |
+ <media-libs/speex-1.2.0 |
115 |
+ >=media-libs/speex-1.2_rc1 |
116 |
+ ) |
117 |
+ ) |
118 |
+ gdbm? ( sys-libs/gdbm ) |
119 |
+ webrtc-aec? ( >=media-libs/webrtc-audio-processing-0.2 ) |
120 |
+ systemd? ( sys-apps/systemd:0=[${MULTILIB_USEDEP}] ) |
121 |
+ dev-libs/libltdl:0 |
122 |
+ selinux? ( sec-policy/selinux-pulseaudio ) |
123 |
+" |
124 |
+# it's a valid RDEPEND, libltdl.so is used for native abi |
125 |
+ |
126 |
+DEPEND="${RDEPEND} |
127 |
+ sys-devel/m4 |
128 |
+ doc? ( app-doc/doxygen ) |
129 |
+ test? ( >=dev-libs/check-0.9.10 ) |
130 |
+ X? ( |
131 |
+ x11-proto/xproto[${MULTILIB_USEDEP}] |
132 |
+ >=x11-libs/libXtst-1.0.99.2[${MULTILIB_USEDEP}] |
133 |
+ ) |
134 |
+ dev-libs/libatomic_ops |
135 |
+ virtual/pkgconfig |
136 |
+ system-wide? ( || ( dev-util/unifdef sys-freebsd/freebsd-ubin ) ) |
137 |
+ dev-util/intltool |
138 |
+ >=sys-devel/gettext-0.18.1 |
139 |
+" |
140 |
+# This is a PDEPEND to avoid a circular dep |
141 |
+PDEPEND=" |
142 |
+ alsa? ( alsa-plugin? ( >=media-plugins/alsa-plugins-1.0.27-r1[pulseaudio,${MULTILIB_USEDEP}] ) ) |
143 |
+" |
144 |
+ |
145 |
+# alsa-utils dep is for the alsasound init.d script (see bug #155707) |
146 |
+# bluez dep is for the bluetooth init.d script |
147 |
+# PyQt4 dep is for the qpaeq script |
148 |
+RDEPEND="${RDEPEND} |
149 |
+ equalizer? ( qt4? ( dev-python/PyQt4[dbus] ) ) |
150 |
+ system-wide? ( |
151 |
+ alsa? ( media-sound/alsa-utils ) |
152 |
+ bluetooth? ( >=net-wireless/bluez-5 ) |
153 |
+ ) |
154 |
+" |
155 |
+ |
156 |
+pkg_pretend() { |
157 |
+ CONFIG_CHECK="~HIGH_RES_TIMERS" |
158 |
+ WARNING_HIGH_RES_TIMERS="CONFIG_HIGH_RES_TIMERS:\tis not set (required for enabling timer-based scheduling in pulseaudio)\n" |
159 |
+ check_extra_config |
160 |
+ |
161 |
+ if linux_config_exists; then |
162 |
+ local snd_hda_prealloc_size=$(linux_chkconfig_string SND_HDA_PREALLOC_SIZE) |
163 |
+ if [ -n "${snd_hda_prealloc_size}" ] && [ "${snd_hda_prealloc_size}" -lt 2048 ]; then |
164 |
+ ewarn "A preallocated buffer-size of 2048 (kB) or higher is recommended for the HD-audio driver!" |
165 |
+ ewarn "CONFIG_SND_HDA_PREALLOC_SIZE=${snd_hda_prealloc_size}" |
166 |
+ fi |
167 |
+ fi |
168 |
+} |
169 |
+ |
170 |
+pkg_setup() { |
171 |
+ linux-info_pkg_setup |
172 |
+ gnome2_environment_reset #543364 |
173 |
+ |
174 |
+ enewgroup audio 18 # Just make sure it exists |
175 |
+ |
176 |
+ if use system-wide; then |
177 |
+ enewgroup pulse-access |
178 |
+ enewgroup pulse |
179 |
+ enewuser pulse -1 -1 /var/run/pulse pulse,audio |
180 |
+ fi |
181 |
+} |
182 |
+ |
183 |
+src_prepare() { |
184 |
+ default |
185 |
+ |
186 |
+ # Skip test that cannot work with sandbox, bug #501846 |
187 |
+ sed -i -e '/lock-autospawn-test/d' src/Makefile.am || die |
188 |
+ |
189 |
+ eautoreconf |
190 |
+} |
191 |
+ |
192 |
+multilib_src_configure() { |
193 |
+ local myconf=() |
194 |
+ |
195 |
+ if use gdbm; then |
196 |
+ myconf+=( --with-database=gdbm ) |
197 |
+ else |
198 |
+ myconf+=( --with-database=simple ) |
199 |
+ fi |
200 |
+ |
201 |
+ if use bluetooth; then |
202 |
+ if multilib_is_native_abi; then |
203 |
+ myconf+=( --enable-bluez5 --disable-bluez4 |
204 |
+ $(use_enable native-headset bluez5-native-headset) |
205 |
+ $(use_enable ofono-headset bluez5-ofono-headset) ) |
206 |
+ fi |
207 |
+ else |
208 |
+ myconf+=( --disable-bluez5 --disable-bluez4 ) |
209 |
+ fi |
210 |
+ |
211 |
+ myconf+=( |
212 |
+ --enable-largefile |
213 |
+ $(use_enable glib glib2) |
214 |
+ --disable-solaris |
215 |
+ $(use_enable asyncns) |
216 |
+ $(use_enable oss oss-output) |
217 |
+ $(use_enable alsa) |
218 |
+ $(use_enable lirc) |
219 |
+ $(use_enable neon neon-opt) |
220 |
+ $(use_enable tcpd tcpwrap) |
221 |
+ $(use_enable jack) |
222 |
+ $(use_enable zeroconf avahi) |
223 |
+ $(use_enable dbus) |
224 |
+ $(use_enable gnome gconf) |
225 |
+ $(use_enable gtk gtk3) |
226 |
+ $(use_enable libsamplerate samplerate) |
227 |
+ $(use_enable orc) |
228 |
+ $(use_enable X x11) |
229 |
+ $(use_enable test default-build-tests) |
230 |
+ $(use_enable udev) |
231 |
+ $(use_with sox soxr) |
232 |
+ $(use_enable systemd systemd-daemon) |
233 |
+ $(use_enable systemd systemd-login) |
234 |
+ $(use_enable systemd systemd-journal) |
235 |
+ $(use_enable ipv6) |
236 |
+ $(use_enable ssl openssl) |
237 |
+ $(use_enable webrtc-aec) |
238 |
+ $(use_with caps) |
239 |
+ $(use_with equalizer fftw) |
240 |
+ --disable-adrian-aec |
241 |
+ --disable-esound |
242 |
+ --localstatedir="${EPREFIX}"/var |
243 |
+ --with-udev-rules-dir="${EPREFIX}/$(get_udevdir)"/rules.d |
244 |
+ --with-systemduserunitdir=$(systemd_get_userunitdir) |
245 |
+ ) |
246 |
+ |
247 |
+ if ! multilib_is_native_abi; then |
248 |
+ # disable all the modules and stuff |
249 |
+ myconf+=( |
250 |
+ --disable-oss-output |
251 |
+ --disable-alsa |
252 |
+ --disable-lirc |
253 |
+ --disable-jack |
254 |
+ --disable-avahi |
255 |
+ --disable-gconf |
256 |
+ --disable-gtk3 |
257 |
+ --disable-samplerate |
258 |
+ --disable-bluez4 |
259 |
+ --disable-bluez5 |
260 |
+ --disable-udev |
261 |
+ --disable-openssl |
262 |
+ --disable-orc |
263 |
+ --disable-webrtc-aec |
264 |
+ --without-fftw |
265 |
+ --without-soxr |
266 |
+ |
267 |
+ # tests involve random modules, so just do them for the native |
268 |
+ --disable-default-build-tests |
269 |
+ |
270 |
+ # hack around unnecessary checks |
271 |
+ # (results don't matter, we're not building anything using it) |
272 |
+ ac_cv_lib_ltdl_lt_dladvise_init=yes |
273 |
+ --with-database=simple |
274 |
+ LIBSPEEX_CFLAGS=' ' |
275 |
+ LIBSPEEX_LIBS=' ' |
276 |
+ ) |
277 |
+ fi |
278 |
+ |
279 |
+ ECONF_SOURCE=${S} \ |
280 |
+ econf "${myconf[@]}" |
281 |
+} |
282 |
+ |
283 |
+multilib_src_compile() { |
284 |
+ if multilib_is_native_abi; then |
285 |
+ emake |
286 |
+ use doc && emake doxygen |
287 |
+ else |
288 |
+ local targets=( libpulse.la libpulse-simple.la ) |
289 |
+ use glib && targets+=( libpulse-mainloop-glib.la ) |
290 |
+ emake -C src libpulse{,dsp,-simple,-mainloop-glib}.la |
291 |
+ fi |
292 |
+} |
293 |
+ |
294 |
+multilib_src_test() { |
295 |
+ # We avoid running the toplevel check target because that will run |
296 |
+ # po/'s tests too, and they are broken. Officially, it should work |
297 |
+ # with intltool 0.41, but that doesn't look like a stable release. |
298 |
+ if multilib_is_native_abi; then |
299 |
+ emake -C src check |
300 |
+ fi |
301 |
+} |
302 |
+ |
303 |
+multilib_src_install() { |
304 |
+ if multilib_is_native_abi; then |
305 |
+ emake -j1 DESTDIR="${D}" bashcompletiondir="$(get_bashcompdir)" install |
306 |
+ use doc && dohtml -r doxygen/html/ |
307 |
+ else |
308 |
+ local targets=( libpulse.la libpulse-simple.la ) |
309 |
+ use glib && targets+=( libpulse-mainloop-glib.la ) |
310 |
+ emake DESTDIR="${D}" install-pkgconfigDATA |
311 |
+ emake DESTDIR="${D}" -C src \ |
312 |
+ install-libLTLIBRARIES \ |
313 |
+ install-padsplibLTLIBRARIES \ |
314 |
+ lib_LTLIBRARIES="${targets[*]}" \ |
315 |
+ install-pulseincludeHEADERS |
316 |
+ fi |
317 |
+} |
318 |
+ |
319 |
+multilib_src_install_all() { |
320 |
+ # Drop the script entirely if X is disabled |
321 |
+ use X || rm "${ED}"/usr/bin/start-pulseaudio-x11 |
322 |
+ |
323 |
+ if use system-wide; then |
324 |
+ newconfd "${FILESDIR}/pulseaudio.conf.d" pulseaudio |
325 |
+ |
326 |
+ use_define() { |
327 |
+ local define=${2:-$(echo $1 | tr '[:lower:]' '[:upper:]')} |
328 |
+ |
329 |
+ use "$1" && echo "-D$define" || echo "-U$define" |
330 |
+ } |
331 |
+ |
332 |
+ unifdef $(use_define zeroconf AVAHI) \ |
333 |
+ $(use_define alsa) \ |
334 |
+ $(use_define bluetooth) \ |
335 |
+ $(use_define udev) \ |
336 |
+ "${FILESDIR}/pulseaudio.init.d-5" \ |
337 |
+ > "${T}/pulseaudio" |
338 |
+ |
339 |
+ doinitd "${T}/pulseaudio" |
340 |
+ |
341 |
+ systemd_dounit "${FILESDIR}/${PN}.service" |
342 |
+ fi |
343 |
+ |
344 |
+ use zeroconf && sed -i -e '/module-zeroconf-publish/s:^#::' "${ED}/etc/pulse/default.pa" |
345 |
+ |
346 |
+ dodoc NEWS README todo |
347 |
+ |
348 |
+ # Create the state directory |
349 |
+ use prefix || diropts -o pulse -g pulse -m0755 |
350 |
+ |
351 |
+ # We need /var/run/pulse, bug #442852 |
352 |
+ use system-wide && systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles" "${PN}.conf" |
353 |
+ |
354 |
+ # Prevent warnings when system-wide is not used, bug #447694 |
355 |
+ use system-wide || rm "${ED}"/etc/dbus-1/system.d/pulseaudio-system.conf |
356 |
+ |
357 |
+ prune_libtool_files --all |
358 |
+} |
359 |
+ |
360 |
+pkg_postinst() { |
361 |
+ if use system-wide; then |
362 |
+ elog "You have enabled the 'system-wide' USE flag for pulseaudio." |
363 |
+ elog "This mode should only be used on headless servers, embedded systems," |
364 |
+ elog "or thin clients. It will usually require manual configuration, and is" |
365 |
+ elog "incompatible with many expected pulseaudio features." |
366 |
+ elog "On normal desktop systems, system-wide mode is STRONGLY DISCOURAGED." |
367 |
+ elog "For more information, see" |
368 |
+ elog " https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/WhatIsWrongWithSystemWide/" |
369 |
+ elog " https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/SystemWide/" |
370 |
+ elog " https://wiki.gentoo.org/wiki/PulseAudio#Headless_server" |
371 |
+ if use gnome ; then |
372 |
+ elog |
373 |
+ elog "By enabling gnome USE flag, you enabled gconf support. Please note" |
374 |
+ elog "that you might need to remove the gnome USE flag or disable the" |
375 |
+ elog "gconf module on /etc/pulse/system.pa to be able to use PulseAudio" |
376 |
+ elog "with a system-wide instance." |
377 |
+ fi |
378 |
+ fi |
379 |
+ |
380 |
+ if use equalizer && ! use qt4; then |
381 |
+ elog "You've enabled the 'equalizer' USE-flag but not the 'qt4' USE-flag." |
382 |
+ elog "This will build the equalizer module, but the 'qpaeq' tool" |
383 |
+ elog "which is required to set equalizer levels will not work." |
384 |
+ fi |
385 |
+ |
386 |
+ if use native-headset && use ofono-headset; then |
387 |
+ elog "You have enabled both native and ofono headset profiles. The runtime decision" |
388 |
+ elog "which to use is done via the 'headset' argument of module-bluetooth-discover." |
389 |
+ fi |
390 |
+ |
391 |
+ if use libsamplerate; then |
392 |
+ elog "The libsamplerate based resamplers are now deprecated, because they offer no" |
393 |
+ elog "particular advantage over speex. Upstream suggests disabling them." |
394 |
+ fi |
395 |
+} |