Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-sound/alsa-utils: ChangeLog alsa-utils-1.0.20-r4.ebuild alsa-utils-1.0.20-r2.ebuild alsa-utils-1.0.20-r3.ebuild
Date: Tue, 04 Aug 2009 09:40:25
Message-Id: E1MYGVL-0006tc-NM@stork.gentoo.org
1 ssuominen 09/08/04 09:40:23
2
3 Modified: ChangeLog
4 Added: alsa-utils-1.0.20-r4.ebuild
5 Removed: alsa-utils-1.0.20-r2.ebuild
6 alsa-utils-1.0.20-r3.ebuild
7 Log:
8 Fix alsaconf to write /etc/modprobe.d/alsa.conf instead of /etc/modules.d/alsa wrt #251081.
9 (Portage version: 2.2_rc33/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.272 media-sound/alsa-utils/ChangeLog
13
14 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/alsa-utils/ChangeLog?rev=1.272&view=markup
15 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/alsa-utils/ChangeLog?rev=1.272&content-type=text/plain
16 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/alsa-utils/ChangeLog?r1=1.271&r2=1.272
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/ChangeLog,v
21 retrieving revision 1.271
22 retrieving revision 1.272
23 diff -u -r1.271 -r1.272
24 --- ChangeLog 2 Aug 2009 11:27:28 -0000 1.271
25 +++ ChangeLog 4 Aug 2009 09:40:23 -0000 1.272
26 @@ -1,6 +1,13 @@
27 # ChangeLog for media-sound/alsa-utils
28 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/ChangeLog,v 1.271 2009/08/02 11:27:28 ssuominen Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/ChangeLog,v 1.272 2009/08/04 09:40:23 ssuominen Exp $
31 +
32 +*alsa-utils-1.0.20-r4 (04 Aug 2009)
33 +
34 + 04 Aug 2009; Samuli Suominen <ssuominen@g.o>
35 + +alsa-utils-1.0.20-r4.ebuild, +files/alsa-utils-1.0.20-modprobe.d.patch:
36 + Fix alsaconf to write /etc/modprobe.d/alsa.conf instead of
37 + /etc/modules.d/alsa wrt #251081.
38
39 *alsa-utils-1.0.20-r3 (02 Aug 2009)
40
41
42
43
44 1.1 media-sound/alsa-utils/alsa-utils-1.0.20-r4.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/alsa-utils/alsa-utils-1.0.20-r4.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/alsa-utils/alsa-utils-1.0.20-r4.ebuild?rev=1.1&content-type=text/plain
48
49 Index: alsa-utils-1.0.20-r4.ebuild
50 ===================================================================
51 # Copyright 1999-2009 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/alsa-utils-1.0.20-r4.ebuild,v 1.1 2009/08/04 09:40:23 ssuominen Exp $
54
55 EAPI=2
56 inherit eutils
57
58 MY_P=${P/_rc/rc}
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
64 LICENSE="GPL-2"
65 SLOT="0.9"
66 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86"
67 IUSE="doc nls minimal"
68
69 DEPEND=">=sys-libs/ncurses-5.1
70 dev-util/dialog
71 >=media-libs/alsa-lib-${PV}
72 doc? ( app-text/xmlto )"
73 RDEPEND=">=sys-libs/ncurses-5.1
74 dev-util/dialog
75 >=media-libs/alsa-lib-${PV}
76 virtual/modutils
77 !minimal? ( sys-apps/pciutils )"
78
79 S=${WORKDIR}/${MY_P}
80
81 pkg_setup() {
82 if [[ -e "${ROOT}etc/modules.d/alsa" ]]; then
83 eerror "Obsolete config /etc/modules.d/alsa found."
84 die "Move /etc/modules.d/alsa to /etc/modprobe.d/alsa.conf."
85 fi
86
87 if [[ -e "${ROOT}etc/modprobe.d/alsa" ]]; then
88 eerror "Obsolete config /etc/modprobe.d/alsa found."
89 die "Move /etc/modprobe.d/alsa to /etc/modprobe.d/alsa.conf."
90 fi
91 }
92
93 src_prepare() {
94 epatch "${FILESDIR}"/${P}-modprobe.d.patch
95 }
96
97 src_configure() {
98 local myconf=""
99 use doc || myconf="--disable-xmlto"
100
101 econf ${myconf} \
102 $(use_enable nls)
103 }
104
105 src_install() {
106 local ALSA_UTILS_DOCS="ChangeLog README TODO
107 seq/aconnect/README.aconnect
108 seq/aseqnet/README.aseqnet"
109
110 emake DESTDIR="${D}" install || die "emake install failed"
111
112 dodoc ${ALSA_UTILS_DOCS} || die
113 newdoc alsamixer/README README.alsamixer || die
114
115 newinitd "${FILESDIR}/alsasound.initd-r4" alsasound
116 newconfd "${FILESDIR}/alsasound.confd-r3" alsasound
117 insinto /etc/modprobe.d
118 newins "${FILESDIR}/alsa-modules.conf-rc" alsa.conf
119
120 keepdir /var/lib/alsa
121 }
122
123 pkg_postinst() {
124 echo
125 elog "To take advantage of the init script, and automate the process of"
126 elog "saving and restoring sound-card mixer levels you should"
127 elog "add alsasound to the boot runlevel. You can do this as"
128 elog "root like so:"
129 elog " # rc-update add alsasound boot"
130 echo
131 elog "The script will load ALSA modules, if you choose to use a modular"
132 elog "configuration. The Gentoo ALSA developers recommend you to build"
133 elog "your audio drivers into the kernel unless the device is hotpluggable"
134 elog "or you need to supply specific options (such as model= to HD Audio)."
135 echo
136 ewarn "Automated unloading of ALSA modules is deprecated and unsupported."
137 ewarn "Should you choose to use it, bug reports will not be accepted."
138 echo
139 if use minimal; then
140 ewarn "The minimal use flag disables the dependency on pciutils that"
141 ewarn "is needed by alsaconf at runtime."
142 fi
143 }