summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-05-13 06:20:11 +0000
committerMike Frysinger <vapier@gentoo.org>2005-05-13 06:20:11 +0000
commit5a64b6f8100b4a410529bef2c3a1168d28a17792 (patch)
treebf8d6053dfbebcf445e9e0d552cf574365c5838a /eclass
parentofficially deprecate (diff)
downloadgentoo-2-5a64b6f8100b4a410529bef2c3a1168d28a17792.tar.gz
gentoo-2-5a64b6f8100b4a410529bef2c3a1168d28a17792.tar.bz2
gentoo-2-5a64b6f8100b4a410529bef2c3a1168d28a17792.zip
add sanity check for libsdl and those silly USE=no{video,joystick,audio} users
Diffstat (limited to 'eclass')
-rw-r--r--eclass/games.eclass14
1 files changed, 12 insertions, 2 deletions
diff --git a/eclass/games.eclass b/eclass/games.eclass
index b8487068927f..0b84c87fc0c7 100644
--- a/eclass/games.eclass
+++ b/eclass/games.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.92 2005/04/03 07:26:38 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.93 2005/05/13 06:20:11 vapier Exp $
#
# devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@gentoo.org
#
@@ -147,7 +147,17 @@ games_pkg_setup() {
[[ ${GAMES_USER_DED} != "root" ]] \
&& enewuser "${GAMES_USER_DED}" 36 /bin/bash /usr/games "${GAMES_GROUP}"
- # Dear carpaski and portage-dev team, we are so sorry. Lots of love, games team
+ # Make sure SDL was built in a certain way
+ if [[ -n ${GAMES_USE_SDL} ]] ; then
+ if built_with_use -o media-libs/libsdl ${GAMES_USE_SDL} ; then
+ eerror "You built libsdl with wrong USE flags."
+ eerror "Make sure you rebuild it like this:"
+ eerror "USE='-${GAMES_USE_SDL// / -}'"
+ die "your libsdl sucks"
+ fi
+ fi
+
+ # Dear portage team, we are so sorry. Lots of love, games team.
# See Bug #61680
[[ $(getent passwd "${GAMES_USER_DED}" | cut -f7 -d:) == "/bin/false" ]] \
&& usermod -s /bin/bash "${GAMES_USER_DED}"