diff options
author | Arcady Genkin <agenkin@gentoo.org> | 2002-05-03 06:44:52 +0000 |
---|---|---|
committer | Arcady Genkin <agenkin@gentoo.org> | 2002-05-03 06:44:52 +0000 |
commit | 71371f22ee6791d90fb499f20cde7cbe425e9e8c (patch) | |
tree | 9fcd2c49c8cfa9e397750a6662b8966b5c01bb38 /media-sound/alsa-driver | |
parent | new package (diff) | |
download | gentoo-2-71371f22ee6791d90fb499f20cde7cbe425e9e8c.tar.gz gentoo-2-71371f22ee6791d90fb499f20cde7cbe425e9e8c.tar.bz2 gentoo-2-71371f22ee6791d90fb499f20cde7cbe425e9e8c.zip |
This version checks that KV is set by the portage. A workaround for
bug #2374.
Diffstat (limited to 'media-sound/alsa-driver')
-rw-r--r-- | media-sound/alsa-driver/alsa-driver-0.9.0_rc1-r3.ebuild | 59 | ||||
-rw-r--r-- | media-sound/alsa-driver/alsa-driver-0.9.0_rc1-r5.ebuild (renamed from media-sound/alsa-driver/alsa-driver-0.9.0_rc1-r4.ebuild) | 11 | ||||
-rw-r--r-- | media-sound/alsa-driver/files/digest-alsa-driver-0.9.0_rc1-r4 | 1 | ||||
-rw-r--r-- | media-sound/alsa-driver/files/digest-alsa-driver-0.9.0_rc1-r5 (renamed from media-sound/alsa-driver/files/digest-alsa-driver-0.9.0_rc1-r3) | 0 |
4 files changed, 10 insertions, 61 deletions
diff --git a/media-sound/alsa-driver/alsa-driver-0.9.0_rc1-r3.ebuild b/media-sound/alsa-driver/alsa-driver-0.9.0_rc1-r3.ebuild deleted file mode 100644 index d0d4cff78f37..000000000000 --- a/media-sound/alsa-driver/alsa-driver-0.9.0_rc1-r3.ebuild +++ /dev/null @@ -1,59 +0,0 @@ -# Copyright 1999-2001 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License, v2 or later -# Author Daniel Robbins <drobbins@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-driver/alsa-driver-0.9.0_rc1-r3.ebuild,v 1.1 2002/04/28 17:18:10 agenkin Exp $ - -DESCRIPTION="Advanced Linux Sound Architecture kernel modules" -HOMEPAGE="http://www.alsa-project.org/" - -# By default, drivers for all supported cards will be compiled. -# If you want to only compile for specific card(s), set ALSA_CARDS -# environment variable accordingly -[ x${ALSA_CARDS} = x ] && ALSA_CARDS=all - -SRC_URI="ftp://ftp.alsa-project.org/pub/driver/${P/_rc/rc}.tar.bz2" -S=${WORKDIR}/${P/_rc/rc} - -#virtual/glibc should depend on specific kernel headers -DEPEND="sys-devel/autoconf - virtual/glibc" -PROVIDE="virtual/alsa" - -src_compile() { - ./configure \ - --host=${CHOST} \ - --prefix=/usr \ - --with-kernel="${ROOT}usr/src/linux-${KV}" \ - --with-isapnp=yes \ - --with-sequencer=yes \ - --with-oss=yes \ - --with-cards=${ALSA_CARDS} \ - || die "./configure failed" - - emake || die "Parallel Make Failed" -} - -src_install () { - dodir /usr/include/sound - dodir /etc/init.d - make DESTDIR=${D} install || die - - dodoc CARDS-STATUS COPYING FAQ INSTALL README WARNING TODO doc/* - - insinto /etc/modules.d - newins ${FILESDIR}/alsa-modules.conf alsa - exeinto /etc/init.d - doexe ${FILESDIR}/alsasound -} - -pkg_postinst () { - if [ "${ROOT}" = / ] - then - [ -x /usr/sbin/update-modules ] && /usr/sbin/update-modules - fi - - einfo - einfo "You might want to edit file /etc/modules.d/alsa according to your" - einfo "hardware configuration." - einfo -} diff --git a/media-sound/alsa-driver/alsa-driver-0.9.0_rc1-r4.ebuild b/media-sound/alsa-driver/alsa-driver-0.9.0_rc1-r5.ebuild index 5cb8d1585510..bee3e2884dfc 100644 --- a/media-sound/alsa-driver/alsa-driver-0.9.0_rc1-r4.ebuild +++ b/media-sound/alsa-driver/alsa-driver-0.9.0_rc1-r5.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2001 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Daniel Robbins <drobbins@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-driver/alsa-driver-0.9.0_rc1-r4.ebuild,v 1.1 2002/05/03 00:34:30 agenkin Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-driver/alsa-driver-0.9.0_rc1-r5.ebuild,v 1.1 2002/05/03 06:44:52 agenkin Exp $ DESCRIPTION="Advanced Linux Sound Architecture kernel modules" HOMEPAGE="http://www.alsa-project.org/" @@ -34,6 +34,15 @@ src_unpack() { src_compile() { + # Portage should determine the version of the kernel sources + if [ x"${KV}" = x ] + then + eerror "" + eerror "Could not determine you kernel version." + eerror "Make sure that you have /usr/src/linux symlink." + eerror "" + die + fi ./configure \ --host=${CHOST} \ --prefix=/usr \ diff --git a/media-sound/alsa-driver/files/digest-alsa-driver-0.9.0_rc1-r4 b/media-sound/alsa-driver/files/digest-alsa-driver-0.9.0_rc1-r4 deleted file mode 100644 index ab82b0c07726..000000000000 --- a/media-sound/alsa-driver/files/digest-alsa-driver-0.9.0_rc1-r4 +++ /dev/null @@ -1 +0,0 @@ -MD5 440feeb7a0932a9f40a059fe78b3d6b2 alsa-driver-0.9.0rc1.tar.bz2 1103418 diff --git a/media-sound/alsa-driver/files/digest-alsa-driver-0.9.0_rc1-r3 b/media-sound/alsa-driver/files/digest-alsa-driver-0.9.0_rc1-r5 index ab82b0c07726..ab82b0c07726 100644 --- a/media-sound/alsa-driver/files/digest-alsa-driver-0.9.0_rc1-r3 +++ b/media-sound/alsa-driver/files/digest-alsa-driver-0.9.0_rc1-r5 |