Gentoo Archives: gentoo-commits

From: "Pacho Ramos (pacho)" <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-sound/alsa-utils: ChangeLog alsa-utils-1.0.23-r1.ebuild
Date: Tue, 07 Sep 2010 11:57:20
Message-Id: 20100907115712.5D8A920054@flycatcher.gentoo.org
1 pacho 10/09/07 11:57:12
2
3 Modified: ChangeLog
4 Added: alsa-utils-1.0.23-r1.ebuild
5 Log:
6 Revision bump to fix bug #299362 following upstream indications and applying upstream patches that will be included in 1.0.24.
7 (Portage version: 2.1.8.3/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.296 media-sound/alsa-utils/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/alsa-utils/ChangeLog?rev=1.296&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/alsa-utils/ChangeLog?rev=1.296&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/alsa-utils/ChangeLog?r1=1.295&r2=1.296
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/ChangeLog,v
19 retrieving revision 1.295
20 retrieving revision 1.296
21 diff -u -r1.295 -r1.296
22 --- ChangeLog 16 Apr 2010 22:21:09 -0000 1.295
23 +++ ChangeLog 7 Sep 2010 11:57:12 -0000 1.296
24 @@ -1,6 +1,14 @@
25 # ChangeLog for media-sound/alsa-utils
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/ChangeLog,v 1.295 2010/04/16 22:21:09 chainsaw Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/ChangeLog,v 1.296 2010/09/07 11:57:12 pacho Exp $
29 +
30 +*alsa-utils-1.0.23-r1 (07 Sep 2010)
31 +
32 + 07 Sep 2010; Pacho Ramos <pacho@g.o> +alsa-utils-1.0.23-r1.ebuild,
33 + +files/alsa-utils-1.0.23-alsactl-output.patch,
34 + +files/alsa-utils-1.0.23-alsactl-output2.patch:
35 + Revision bump to fix bug #299362 following upstream indications and
36 + applying upstream patches that will be included in 1.0.24.
37
38 *alsa-utils-1.0.23 (16 Apr 2010)
39
40
41
42
43 1.1 media-sound/alsa-utils/alsa-utils-1.0.23-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/alsa-utils/alsa-utils-1.0.23-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/alsa-utils/alsa-utils-1.0.23-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: alsa-utils-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-sound/alsa-utils/alsa-utils-1.0.23-r1.ebuild,v 1.1 2010/09/07 11:57:12 pacho Exp $
53
54 EAPI=2
55 inherit eutils
56
57 MY_P=${P/_rc/rc}
58 ALSA_DRIVER_VER="1.0.23"
59
60 DESCRIPTION="Advanced Linux Sound Architecture Utils (alsactl, alsamixer, etc.)"
61 HOMEPAGE="http://www.alsa-project.org/"
62 SRC_URI="mirror://alsaproject/utils/${MY_P}.tar.bz2
63 mirror://alsaproject/driver/alsa-driver-${ALSA_DRIVER_VER}.tar.bz2"
64
65 LICENSE="GPL-2"
66 SLOT="0.9"
67 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86"
68 IUSE="doc nls minimal"
69
70 DEPEND=">=sys-libs/ncurses-5.1
71 dev-util/dialog
72 >=media-libs/alsa-lib-${PV}
73 doc? ( app-text/xmlto )"
74 RDEPEND=">=sys-libs/ncurses-5.1
75 dev-util/dialog
76 >=media-libs/alsa-lib-${PV}
77 virtual/modutils
78 !minimal? ( sys-apps/pciutils )"
79
80 S="${WORKDIR}/${MY_P}"
81
82 pkg_setup() {
83 if [[ -e "${ROOT}etc/modules.d/alsa" ]]; then
84 eerror "Obsolete config /etc/modules.d/alsa found."
85 die "Move /etc/modules.d/alsa to /etc/modprobe.d/alsa.conf."
86 fi
87
88 if [[ -e "${ROOT}etc/modprobe.d/alsa" ]]; then
89 eerror "Obsolete config /etc/modprobe.d/alsa found."
90 die "Move /etc/modprobe.d/alsa to /etc/modprobe.d/alsa.conf."
91 fi
92 }
93
94 src_prepare() {
95 epatch "${FILESDIR}"/${P}-modprobe.d.patch
96
97 # Exit code 99 will be the same than 0 for us per bug #299362 as suggested
98 # by upstream: http://www.spinics.net/lists/alsa-devel/msg31430.html
99 sed -i -e 's/EXIT="99"/EXIT="0"/g' alsactl/init/00main || die
100
101 # Apply upstream patches to clarify initialization
102 epatch "${FILESDIR}/${P}-alsactl-output.patch"
103 epatch "${FILESDIR}/${P}-alsactl-output2.patch"
104 }
105
106 src_configure() {
107 local myconf=""
108 use doc || myconf="--disable-xmlto"
109
110 econf ${myconf} \
111 $(use_enable nls)
112 }
113
114 src_install() {
115 local ALSA_UTILS_DOCS="ChangeLog README TODO
116 seq/aconnect/README.aconnect
117 seq/aseqnet/README.aseqnet"
118
119 emake DESTDIR="${D}" install || die "emake install failed"
120
121 dodoc ${ALSA_UTILS_DOCS} || die
122
123 newbin "${WORKDIR}/alsa-driver-${ALSA_DRIVER_VER}/utils/alsa-info.sh" \
124 alsa-info
125
126 newinitd "${FILESDIR}/alsasound.initd-r4" alsasound
127 newconfd "${FILESDIR}/alsasound.confd-r3" alsasound
128 insinto /etc/modprobe.d
129 newins "${FILESDIR}/alsa-modules.conf-rc" alsa.conf
130
131 keepdir /var/lib/alsa
132 }
133
134 pkg_postinst() {
135 echo
136 elog "To take advantage of the init script, and automate the process of"
137 elog "saving and restoring sound-card mixer levels you should"
138 elog "add alsasound to the boot runlevel. You can do this as"
139 elog "root like so:"
140 elog " # rc-update add alsasound boot"
141 echo
142 elog "The script will load ALSA modules, if you choose to use a modular"
143 elog "configuration. The Gentoo ALSA developers recommend you to build"
144 elog "your audio drivers into the kernel unless the device is hotpluggable"
145 elog "or you need to supply specific options (such as model= to HD Audio)."
146 echo
147 ewarn "Automated unloading of ALSA modules is deprecated and unsupported."
148 ewarn "Should you choose to use it, bug reports will not be accepted."
149 echo
150 if use minimal; then
151 ewarn "The minimal use flag disables the dependency on pciutils that"
152 ewarn "is needed by alsaconf at runtime."
153 fi
154 }