summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2007-07-06 17:45:50 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2007-07-06 17:45:50 +0000
commit3d5ea718281c6d04d499a1edbfcb44b6f8877622 (patch)
treee0794df1e77ae9be53dd3f838cb85e2ef1152d92 /media-sound/gmorgan/gmorgan-0.25.ebuild
parentebuild cleanups (diff)
downloadhistorical-3d5ea718281c6d04d499a1edbfcb44b6f8877622.tar.gz
historical-3d5ea718281c6d04d499a1edbfcb44b6f8877622.tar.bz2
historical-3d5ea718281c6d04d499a1edbfcb44b6f8877622.zip
Add a pkg_setup check for midi USE flag in alsa-lib.
Package-Manager: portage-2.1.3_rc6
Diffstat (limited to 'media-sound/gmorgan/gmorgan-0.25.ebuild')
-rw-r--r--media-sound/gmorgan/gmorgan-0.25.ebuild13
1 files changed, 11 insertions, 2 deletions
diff --git a/media-sound/gmorgan/gmorgan-0.25.ebuild b/media-sound/gmorgan/gmorgan-0.25.ebuild
index 812b9d568aac..825af8963874 100644
--- a/media-sound/gmorgan/gmorgan-0.25.ebuild
+++ b/media-sound/gmorgan/gmorgan-0.25.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/gmorgan/gmorgan-0.25.ebuild,v 1.1 2006/11/07 17:41:02 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/gmorgan/gmorgan-0.25.ebuild,v 1.2 2007/07/06 17:45:05 flameeyes Exp $
inherit eutils
@@ -20,6 +20,15 @@ RDEPEND=">=x11-libs/fltk-1.1.2
DEPEND="${RDEPEND}
nls? ( >=sys-devel/gettext-0.11.5-r1 )"
+pkg_setup() {
+ if ! 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_unpack() {
unpack ${A}
cd "${S}/po"