Gentoo Archives: gentoo-commits

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