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