From 0b34b883d47ad1579d5345b4898f66248cb7e235 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Diego=20Elio=20Petten=C3=B2?= Date: Sat, 17 Feb 2007 16:53:53 +0000 Subject: [PATCH] Add dependency on udev or really new version of alsa-tools for pcxhr card (pcxhrloader has been added with this revision); also add checks for the EchoAudio drivers or otherwise remove their firmware. Package-Manager: portage-2.1.2-r9 --- media-sound/alsa-firmware/ChangeLog | 8 ++++++- .../alsa-firmware-1.0.14_rc2-r1.ebuild | 21 ++++++++++++++++--- 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/media-sound/alsa-firmware/ChangeLog b/media-sound/alsa-firmware/ChangeLog index bb2fa9443fb6..d819e3711ae1 100644 --- a/media-sound/alsa-firmware/ChangeLog +++ b/media-sound/alsa-firmware/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-sound/alsa-firmware # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-firmware/ChangeLog,v 1.56 2007/02/17 15:36:01 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-firmware/ChangeLog,v 1.57 2007/02/17 16:53:53 flameeyes Exp $ + + 17 Feb 2007; Diego Pettenò + alsa-firmware-1.0.14_rc2-r1.ebuild: + Add dependency on udev or really new version of alsa-tools for pcxhr card + (pcxhrloader has been added with this revision); also add checks for the + EchoAudio drivers or otherwise remove their firmware. 17 Feb 2007; Diego Pettenò alsa-firmware-1.0.14_rc2-r1.ebuild: diff --git a/media-sound/alsa-firmware/alsa-firmware-1.0.14_rc2-r1.ebuild b/media-sound/alsa-firmware/alsa-firmware-1.0.14_rc2-r1.ebuild index 3cf8b54489bf..941b1d76e7cf 100644 --- a/media-sound/alsa-firmware/alsa-firmware-1.0.14_rc2-r1.ebuild +++ b/media-sound/alsa-firmware/alsa-firmware-1.0.14_rc2-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-firmware/alsa-firmware-1.0.14_rc2-r1.ebuild,v 1.2 2007/02/17 15:36:01 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-firmware/alsa-firmware-1.0.14_rc2-r1.ebuild,v 1.3 2007/02/17 16:53:53 flameeyes Exp $ MY_P="${P/_rc/rc}" @@ -11,9 +11,16 @@ SRC_URI="mirror://alsaproject/firmware/${MY_P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ia64 ~ppc ~x86" + +ECHOAUDIO_CARDS="alsa_cards_darla20 alsa_cards_gina20 +alsa_cards_layla20 alsa_cards_darla24 alsa_cards_gina24 +alsa_cards_layla24 alsa_cards_mona alsa_cards_mia alsa_cards_indigo +alsa_cards_indigoio" + IUSE="alsa_cards_pcxhr alsa_cards_vx222 alsa_cards_usb-usx2y alsa_cards_hdsp alsa_cards_hdspm alsa_cards_mixart alsa_cards_asihpi -alsa_cards_sb16 alsa_cards_korg1212 alsa_cards_maestro3" +alsa_cards_sb16 alsa_cards_korg1212 alsa_cards_maestro3 +${ECHOAUDIO_CARDS}" S="${WORKDIR}/${MY_P}" @@ -22,7 +29,8 @@ RDEPEND="alsa_cards_usb-usx2y? ( sys-apps/fxload ) alsa_cards_hdsp? ( media-sound/alsa-tools ) alsa_cards_hdspm? ( media-sound/alsa-tools ) alsa_cards_mixart? ( || ( >=sys-fs/udev-096 media-sound/alsa-tools ) ) - alsa_cards_vx222? ( || ( >=sys-fs/udev-096 media-sound/alsa-tools ) )" + alsa_cards_vx222? ( || ( >=sys-fs/udev-096 media-sound/alsa-tools ) ) + alsa_cards_pcxhr? ( || ( >=sys-fs/udev-096 >=media-sound/alsa-tools-1.0.14_rc1-r1 ) )" src_compile() { econf \ @@ -45,6 +53,13 @@ src_install () { use alsa_cards_korg1212 || rm -rf "${D}/lib/firmware/korg" use alsa_cards_maestro3 || rm -rf "${D}/lib/firmware/ess" + local ea="no" + for card in ${ECHOAUDIO_CARDS}; do + use ${card} && ea="yes" && break + done + + [[ ${ea} == "no" ]] && rm -rf "${D}/lib/firmware/ea" + insinto /etc/udev/rules.d use alsa_cards_usb-usx2y && doins "${FILESDIR}/52-usx2yaudio.rules" -- 2.26.2