summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2007-07-06 17:48:34 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2007-07-06 17:48:34 +0000
commit9ecf4d4ded080ffe77ad4168cc8315d8ee05aef1 (patch)
tree041a61d5c7ce12cf1abea2ad24258a75935b05a1 /games-engines
parentAdd a pkg_setup check for midi USE flag in alsa-lib. (diff)
downloadgentoo-2-9ecf4d4ded080ffe77ad4168cc8315d8ee05aef1.tar.gz
gentoo-2-9ecf4d4ded080ffe77ad4168cc8315d8ee05aef1.tar.bz2
gentoo-2-9ecf4d4ded080ffe77ad4168cc8315d8ee05aef1.zip
Add a pkg_setup check for midi USE flag in alsa-lib.
(Portage version: 2.1.3_rc6)
Diffstat (limited to 'games-engines')
-rw-r--r--games-engines/freesci/ChangeLog5
-rw-r--r--games-engines/freesci/freesci-0.6.2.ebuild15
2 files changed, 17 insertions, 3 deletions
diff --git a/games-engines/freesci/ChangeLog b/games-engines/freesci/ChangeLog
index 72b4ecdb4c0a..4d487545a7c6 100644
--- a/games-engines/freesci/ChangeLog
+++ b/games-engines/freesci/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for games-engines/freesci
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-engines/freesci/ChangeLog,v 1.17 2007/02/21 23:34:45 peper Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-engines/freesci/ChangeLog,v 1.18 2007/07/06 17:48:34 flameeyes Exp $
+
+ 06 Jul 2007; Diego Pettenò <flameeyes@gentoo.org> freesci-0.6.2.ebuild:
+ Add a pkg_setup check for midi USE flag in alsa-lib.
21 Feb 2007; Piotr Jaroszyński <peper@gentoo.org> ChangeLog:
Transition to Manifest2.
diff --git a/games-engines/freesci/freesci-0.6.2.ebuild b/games-engines/freesci/freesci-0.6.2.ebuild
index b9ebfa9a73fb..9410d9535aab 100644
--- a/games-engines/freesci/freesci-0.6.2.ebuild
+++ b/games-engines/freesci/freesci-0.6.2.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/games-engines/freesci/freesci-0.6.2.ebuild,v 1.2 2006/12/01 22:21:25 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-engines/freesci/freesci-0.6.2.ebuild,v 1.3 2007/07/06 17:48:34 flameeyes Exp $
inherit games
@@ -28,6 +28,17 @@ DEPEND="${RDEPEND}
x11-libs/libXft
x11-libs/libXt )"
+pkg_setup() {
+ games_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_unpack() {
unpack ${A}
cd "${S}"