summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2006-11-08 14:43:18 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2006-11-08 14:43:18 +0000
commit36a6e05f9b995173132478b45736e946d6a4b9fc (patch)
tree3a1408224c6421c381a9cc7e18a4afd015dbcaa3 /eclass/games-mods.eclass
parentMarking mips stable, tested out on swarm (diff)
downloadgentoo-2-36a6e05f9b995173132478b45736e946d6a4b9fc.tar.gz
gentoo-2-36a6e05f9b995173132478b45736e946d6a4b9fc.tar.bz2
gentoo-2-36a6e05f9b995173132478b45736e946d6a4b9fc.zip
Changed else to elsif so we don't put stupid wrappers/desktop entries for map packs. Thanks to Tristan Heaven <nyhm@gentoo.org> for pointing it out.
Diffstat (limited to 'eclass/games-mods.eclass')
-rw-r--r--eclass/games-mods.eclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/eclass/games-mods.eclass b/eclass/games-mods.eclass
index 0094f07306a9..25256e64bd98 100644
--- a/eclass/games-mods.eclass
+++ b/eclass/games-mods.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games-mods.eclass,v 1.7 2006/11/07 15:38:52 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games-mods.eclass,v 1.8 2006/11/08 14:43:18 wolf31o2 Exp $
# Variables to specify in an ebuild which uses this eclass:
# GAME - (doom3, quake4 or ut2004, etc), unless ${PN} starts with e.g. "doom3-"
@@ -270,7 +270,8 @@ games-mods_src_install() {
done
# We don't want to leave the binary directory around
rm -rf bin
- else
+ elif [[ -n "${MOD_DIR}" ]]
+ then
games_make_wrapper "${GAME_EXE}-${MOD_DIR}" \
"${GAME_EXE} ${SELECT_MOD}${MOD_DIR}" "${dir}" "${dir}"
make_desktop_entry "${GAME_EXE}-${MOD_DIR}" \