Gentoo Archives: gentoo-commits

From: "Michal Gorny (mgorny)" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-plugins/alsa-plugins: alsa-plugins-1.0.27-r1.ebuild ChangeLog
Date: Sat, 30 Nov 2013 22:02:25
Message-Id: 20131130220216.80C2F2004B@flycatcher.gentoo.org
1 mgorny 13/11/30 22:02:14
2
3 Modified: ChangeLog
4 Added: alsa-plugins-1.0.27-r1.ebuild
5 Log:
6 Fix pulseaudio plugin for multilib, bug #410261, comment 5+.
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)
9
10 Revision Changes Path
11 1.180 media-plugins/alsa-plugins/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/alsa-plugins/ChangeLog?rev=1.180&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/alsa-plugins/ChangeLog?rev=1.180&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/alsa-plugins/ChangeLog?r1=1.179&r2=1.180
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-plugins/alsa-plugins/ChangeLog,v
20 retrieving revision 1.179
21 retrieving revision 1.180
22 diff -u -r1.179 -r1.180
23 --- ChangeLog 1 Sep 2013 18:36:24 -0000 1.179
24 +++ ChangeLog 30 Nov 2013 22:02:14 -0000 1.180
25 @@ -1,6 +1,11 @@
26 # ChangeLog for media-plugins/alsa-plugins
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-plugins/alsa-plugins/ChangeLog,v 1.179 2013/09/01 18:36:24 ago Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-plugins/alsa-plugins/ChangeLog,v 1.180 2013/11/30 22:02:14 mgorny Exp $
30 +
31 +*alsa-plugins-1.0.27-r1 (30 Nov 2013)
32 +
33 + 30 Nov 2013; Michał Górny <mgorny@g.o> +alsa-plugins-1.0.27-r1.ebuild:
34 + Fix pulseaudio plugin for multilib, bug #410261, comment 5+.
35
36 01 Sep 2013; Agostino Sarubbo <ago@g.o> alsa-plugins-1.0.27.ebuild:
37 Stable for alpha, wrt bug #473404
38
39
40
41 1.1 media-plugins/alsa-plugins/alsa-plugins-1.0.27-r1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/alsa-plugins/alsa-plugins-1.0.27-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/alsa-plugins/alsa-plugins-1.0.27-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: alsa-plugins-1.0.27-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2013 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/media-plugins/alsa-plugins/alsa-plugins-1.0.27-r1.ebuild,v 1.1 2013/11/30 22:02:14 mgorny Exp $
51
52 EAPI=5
53 inherit autotools eutils flag-o-matic multilib
54
55 DESCRIPTION="ALSA extra plugins"
56 HOMEPAGE="http://www.alsa-project.org/"
57 SRC_URI="mirror://alsaproject/plugins/${P}.tar.bz2"
58
59 LICENSE="GPL-2 LGPL-2.1"
60 SLOT="0"
61 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux"
62 IUSE="debug ffmpeg jack libsamplerate pulseaudio speex"
63
64 RDEPEND=">=media-libs/alsa-lib-${PV}
65 ffmpeg? ( virtual/ffmpeg )
66 jack? ( >=media-sound/jack-audio-connection-kit-0.98 )
67 libsamplerate? ( media-libs/libsamplerate )
68 pulseaudio? ( media-sound/pulseaudio )
69 speex? ( media-libs/speex )"
70 DEPEND="${RDEPEND}
71 virtual/pkgconfig"
72
73 src_prepare() {
74 epatch \
75 "${FILESDIR}"/${PN}-1.0.19-missing-avutil.patch \
76 "${FILESDIR}"/${PN}-1.0.23-automagic.patch \
77 "${FILESDIR}"/${PN}-1.0.27-ffmpeg-version-check.patch
78
79 epatch_user
80
81 # For some reasons the polyp/pulse plugin does fail with alsaplayer with a
82 # failed assert. As the code works just fine with asserts disabled, for now
83 # disable them waiting for a better solution.
84 sed -i \
85 -e '/AM_CFLAGS/s:-Wall:-DNDEBUG -Wall:' \
86 pulse/Makefile.am || die
87
88 eautoreconf
89 }
90
91 src_configure() {
92 use debug || append-cppflags -DNDEBUG
93
94 local myspeex=no
95 use speex && myspeex=lib
96
97 econf \
98 $(use_enable ffmpeg avcodec) \
99 $(use_enable jack) \
100 $(use_enable libsamplerate samplerate) \
101 $(use_enable pulseaudio) \
102 --with-speex=${myspeex}
103 }
104
105 src_install() {
106 emake DESTDIR="${D}" install
107
108 cd doc
109 dodoc upmix.txt vdownmix.txt README-pcm-oss
110 use jack && dodoc README-jack
111 use libsamplerate && dodoc samplerate.txt
112 use ffmpeg && dodoc lavcrate.txt a52.txt
113
114 if use pulseaudio; then
115 dodoc README-pulse
116 # install ALSA configuration files
117 # making PA to be used by alsa clients
118 insinto /usr/share/alsa
119 doins "${FILESDIR}"/pulse-default.conf
120 insinto /usr/share/alsa/alsa.conf.d
121 doins "${FILESDIR}"/51-pulseaudio-probe.conf
122 # bug #410261, comment 5+
123 # seems to work fine without any path
124 sed -i \
125 -e "s:/usr/lib/alsa-lib/::" \
126 "${ED}"/usr/share/alsa/alsa.conf.d/51-pulseaudio-probe.conf || die #410261
127 fi
128
129 prune_libtool_files --all
130 }
131
132 pkg_postinst() {
133 if use pulseaudio; then
134 einfo "The PulseAudio device is now set as the default device if the"
135 einfo "PulseAudio server is found to be running. Any custom"
136 einfo "configuration in /etc/asound.conf or ~/.asoundrc for this"
137 einfo "purpose should now be unnecessary."
138 fi
139 }