Gentoo Archives: gentoo-commits

From: "Fabio Erculiani (lxnay)" <lxnay@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-plugins/alsa-plugins: alsa-plugins-1.0.23-r1.ebuild ChangeLog alsa-plugins-1.0.23.ebuild
Date: Fri, 28 May 2010 18:41:29
Message-Id: 20100528184124.344A82CF37@corvid.gentoo.org
1 lxnay 10/05/28 18:41:23
2
3 Modified: ChangeLog
4 Added: alsa-plugins-1.0.23-r1.ebuild
5 Removed: alsa-plugins-1.0.23.ebuild
6 Log:
7 inject default working pulseaudio configuration, close bug #308697
8 (Portage version: 2.2_rc67/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.125 media-plugins/alsa-plugins/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/alsa-plugins/ChangeLog?rev=1.125&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/alsa-plugins/ChangeLog?rev=1.125&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/alsa-plugins/ChangeLog?r1=1.124&r2=1.125
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-plugins/alsa-plugins/ChangeLog,v
20 retrieving revision 1.124
21 retrieving revision 1.125
22 diff -u -r1.124 -r1.125
23 --- ChangeLog 16 Apr 2010 22:44:22 -0000 1.124
24 +++ ChangeLog 28 May 2010 18:41:23 -0000 1.125
25 @@ -1,6 +1,13 @@
26 # ChangeLog for media-plugins/alsa-plugins
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-plugins/alsa-plugins/ChangeLog,v 1.124 2010/04/16 22:44:22 chainsaw Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-plugins/alsa-plugins/ChangeLog,v 1.125 2010/05/28 18:41:23 lxnay Exp $
30 +
31 +*alsa-plugins-1.0.23-r1 (28 May 2010)
32 +
33 + 28 May 2010; Fabio Erculiani <lxnay@g.o>
34 + -alsa-plugins-1.0.23.ebuild, +alsa-plugins-1.0.23-r1.ebuild,
35 + +files/pulse.conf, +files/pulse-alsa.conf:
36 + inject default working pulseaudio configuration, close bug #308697
37
38 *alsa-plugins-1.0.23 (16 Apr 2010)
39
40
41
42
43 1.1 media-plugins/alsa-plugins/alsa-plugins-1.0.23-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/alsa-plugins/alsa-plugins-1.0.23-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-plugins/alsa-plugins/alsa-plugins-1.0.23-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: alsa-plugins-1.0.23-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2010 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/media-plugins/alsa-plugins/alsa-plugins-1.0.23-r1.ebuild,v 1.1 2010/05/28 18:41:23 lxnay Exp $
53
54 EAPI=2
55
56 MY_P="${P/_/}"
57
58 inherit autotools flag-o-matic
59
60 DESCRIPTION="ALSA extra plugins"
61 HOMEPAGE="http://www.alsa-project.org/"
62 SRC_URI="mirror://alsaproject/plugins/${MY_P}.tar.bz2"
63
64 LICENSE="GPL-2 LGPL-2.1"
65 SLOT="0"
66 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86"
67 IUSE="debug ffmpeg jack libsamplerate pulseaudio speex"
68
69 RDEPEND=">=media-libs/alsa-lib-${PV}[alsa_pcm_plugins_ioplug]
70 ffmpeg? ( media-video/ffmpeg
71 media-libs/alsa-lib[alsa_pcm_plugins_rate,alsa_pcm_plugins_plug] )
72 jack? ( >=media-sound/jack-audio-connection-kit-0.98 )
73 libsamplerate? (
74 media-libs/libsamplerate
75 media-libs/alsa-lib[alsa_pcm_plugins_rate,alsa_pcm_plugins_plug] )
76 pulseaudio? ( media-sound/pulseaudio )
77 speex? ( media-libs/speex
78 media-libs/alsa-lib[alsa_pcm_plugins_rate,alsa_pcm_plugins_plug] )
79 !media-plugins/alsa-jack"
80
81 DEPEND="${RDEPEND}
82 dev-util/pkgconfig"
83
84 S="${WORKDIR}/${MY_P}"
85
86 src_prepare() {
87 # For some reasons the polyp/pulse plugin does fail with alsaplayer with a
88 # failed assert. As the code works just fine with asserts disabled, for now
89 # disable them waiting for a better solution.
90 sed -i -e '/AM_CFLAGS/s:-Wall:-DNDEBUG -Wall:' \
91 "${S}/pulse/Makefile.am"
92
93 # Bug #256119
94 epatch "${FILESDIR}"/${PN}-1.0.19-missing-avutil.patch
95
96 # Bug #278352
97 epatch "${FILESDIR}"/${P}-automagic.patch
98
99 eautoreconf
100 }
101
102 src_configure() {
103 use debug || append-flags -DNDEBUG
104
105 local myspeex
106
107 if use speex; then
108 myspeex=lib
109 else
110 myspeex=no
111 fi
112
113 econf \
114 --disable-dependency-tracking \
115 $(use_enable ffmpeg avcodec) \
116 $(use_enable jack) \
117 $(use_enable libsamplerate samplerate) \
118 $(use_enable pulseaudio) \
119 --with-speex=${myspeex}
120 }
121
122 src_install() {
123 emake DESTDIR="${D}" install
124
125 cd "${S}/doc"
126 dodoc upmix.txt vdownmix.txt README-pcm-oss
127 use jack && dodoc README-jack
128 use libsamplerate && dodoc samplerate.txt
129 use ffmpeg && dodoc lavcrate.txt a52.txt
130
131 if use pulseaudio; then
132 dodoc README-pulse
133 # install ALSA configuration files
134 # making PA to be used by alsa clients
135 insinto /usr/share/alsa
136 doins "${FILESDIR}"/pulse/*.conf
137 fi
138
139 }