From 12f531df5b237335b127dd7329c5ce042f1a1bfe Mon Sep 17 00:00:00 2001 From: Diego Elio Pettenò Date: Fri, 6 Jul 2007 17:44:11 +0000 Subject: Add a pkg_setup check for midi USE flag in alsa-lib. (Portage version: 2.1.3_rc6) --- media-sound/ecasound/ChangeLog | 5 ++++- media-sound/ecasound/ecasound-2.4.5.ebuild | 11 ++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) (limited to 'media-sound') diff --git a/media-sound/ecasound/ChangeLog b/media-sound/ecasound/ChangeLog index ff9fe2e4f943..43e275b2c2d8 100644 --- a/media-sound/ecasound/ChangeLog +++ b/media-sound/ecasound/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for media-sound/ecasound # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/ecasound/ChangeLog,v 1.40 2007/07/02 15:10:01 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/ecasound/ChangeLog,v 1.41 2007/07/06 17:44:11 flameeyes Exp $ + + 06 Jul 2007; Diego Pettenò ecasound-2.4.5.ebuild: + Add a pkg_setup check for midi USE flag in alsa-lib. 02 Jul 2007; Diego Pettenò metadata.xml: Hand to newly-born proaudio herd. diff --git a/media-sound/ecasound/ecasound-2.4.5.ebuild b/media-sound/ecasound/ecasound-2.4.5.ebuild index 731355b693aa..28849735602d 100644 --- a/media-sound/ecasound/ecasound-2.4.5.ebuild +++ b/media-sound/ecasound/ecasound-2.4.5.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/ecasound/ecasound-2.4.5.ebuild,v 1.1 2007/06/15 12:22:23 drac Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/ecasound/ecasound-2.4.5.ebuild,v 1.2 2007/07/06 17:44:11 flameeyes Exp $ inherit multilib @@ -31,6 +31,15 @@ DEPEND="${RDEPEND}" # We don't make RDEPEND for vorbis-tools, mpg123/mpg321, timidity++ or lame -- no # use flags for them. +pkg_setup() { + if use alsa && ! built_with_use --missing true media-libs/alsa-lib midi; then + eerror "" + eerror "To be able to build ${CATEGORY}/${PN} with ALSA support you" + eerror "need to have built media-libs/alsa-lib with midi USE flag." + die "Missing midi USE flag on media-libs/alsa-lib" + fi +} + src_compile () { local myconf -- cgit v1.2.3-65-gdbad