summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}"