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