/[gentoo-x86]/media-sound/alsa-utils/alsa-utils-1.0.25-r3.ebuild
Gentoo

Contents of /media-sound/alsa-utils/alsa-utils-1.0.25-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Fri Aug 10 17:24:24 2012 UTC (23 months, 3 weeks ago) by ssuominen
Branch: MAIN
Query correct udevdir from udev.pc pkg-config file.

(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)

1 ssuominen 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/alsa-utils-1.0.25-r2.ebuild,v 1.2 2012/07/23 15:04:38 swift Exp $
4    
5     EAPI=4
6     inherit base systemd toolchain-funcs
7    
8     MY_P=${P/_rc/rc}
9    
10     DESCRIPTION="Advanced Linux Sound Architecture Utils (alsactl, alsamixer, etc.)"
11     HOMEPAGE="http://www.alsa-project.org/"
12     SRC_URI="mirror://alsaproject/utils/${MY_P}.tar.bz2
13     mirror://alsaproject/driver/alsa-driver-${PV}.tar.bz2"
14    
15     LICENSE="GPL-2"
16     SLOT="0.9"
17     KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86"
18     IUSE="doc nls minimal selinux"
19    
20     COMMON_DEPEND=">=sys-libs/ncurses-5.1
21     dev-util/dialog
22     >=media-libs/alsa-lib-1.0.25
23     media-libs/libsamplerate
24     selinux? ( sec-policy/selinux-alsa )"
25     DEPEND="${COMMON_DEPEND}
26     virtual/pkgconfig
27     doc? ( app-text/xmlto )"
28     RDEPEND="${COMMON_DEPEND}
29     !minimal? ( sys-apps/pciutils )"
30    
31     S="${WORKDIR}/${MY_P}"
32     PATCHES=(
33     "${FILESDIR}/${PN}-1.0.23-modprobe.d.patch"
34     "${FILESDIR}/${P}-separate-usr-var-fs.patch"
35     )
36    
37     src_configure() {
38     local myconf=""
39     use doc || myconf="--disable-xmlto"
40    
41     local udevdir=/lib/udev
42     has_version sys-fs/udev && udevdir="$($(tc-getPKG_CONFIG) --variable=udevdir udev)"
43    
44     econf ${myconf} \
45     $(use_enable nls) \
46     $(use_enable !minimal alsaconf) \
47     "$(systemd_with_unitdir)" \
48     --with-udev-rules-dir="${udevdir}"/rules.d
49     }
50    
51     src_install() {
52     local ALSA_UTILS_DOCS="ChangeLog README TODO
53     seq/aconnect/README.aconnect
54     seq/aseqnet/README.aseqnet"
55    
56     emake DESTDIR="${D}" install || die "emake install failed"
57    
58     dodoc ${ALSA_UTILS_DOCS} || die
59    
60     newbin "${WORKDIR}/alsa-driver-${PV}/utils/alsa-info.sh" \
61     alsa-info
62    
63     newinitd "${FILESDIR}/alsasound.initd-r5" alsasound
64     newconfd "${FILESDIR}/alsasound.confd-r4" alsasound
65     insinto /etc/modprobe.d
66     newins "${FILESDIR}/alsa-modules.conf-rc" alsa.conf
67    
68     keepdir /var/lib/alsa
69     }
70    
71     pkg_postinst() {
72     echo
73     elog "To take advantage of the init script, and automate the process of"
74     elog "saving and restoring sound-card mixer levels you should"
75     elog "add alsasound to the boot runlevel. You can do this as"
76     elog "root like so:"
77     elog " # rc-update add alsasound boot"
78     echo
79     ewarn "The ALSA core should be built into the kernel or loaded through other"
80     ewarn "means. There is no longer any modular auto(un)loading in alsa-utils."
81     echo
82     if use minimal; then
83     ewarn "The minimal use flag disables the dependency on pciutils that"
84     ewarn "is needed by alsaconf at runtime."
85     fi
86     }

  ViewVC Help
Powered by ViewVC 1.1.20