summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2006-10-24 20:53:32 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2006-10-24 20:53:32 +0000
commit42e6892a3cae59681c3b2ff810ca3991baee2070 (patch)
treec4d31b10fb37b256a1743b6eb013f71c828cbeca /eclass
parentFixed athlon64 asm (again), closes again bug#152575 (diff)
downloadgentoo-2-42e6892a3cae59681c3b2ff810ca3991baee2070.tar.gz
gentoo-2-42e6892a3cae59681c3b2ff810ca3991baee2070.tar.bz2
gentoo-2-42e6892a3cae59681c3b2ff810ca3991baee2070.zip
If we have MOD_BINS and also MOD_DIR, then skip the MOD_BINS processing and simply create our links using MOD_BINS as the name.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/games-mods.eclass16
1 files changed, 12 insertions, 4 deletions
diff --git a/eclass/games-mods.eclass b/eclass/games-mods.eclass
index 1f3a6638bc22..963a3d4d7899 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.2 2006/10/23 19:15:28 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games-mods.eclass,v 1.3 2006/10/24 20:53:32 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-"
@@ -217,7 +217,13 @@ games-mods_src_install() {
then
for binary in ${MOD_BINS}
do
- if [[ -e "${S}"/bin/"${binary}" ]]
+ if [[ -n "${MOD_DIR}" ]]
+ then
+ games_make_wrapper "${GAME_EXE}-${MOD_BINS}" \
+ "${GAME_EXE} ${SELECT_MOD}${MOD_DIR}" "${dir}" "${dir}"
+ make_desktop_entry "${GAME_EXE}-${MOD_BINS}" \
+ "${GAME_TITLE} - ${MOD_NAME}" "${MOD_ICON}"
+ elif [[ -e "${S}"/bin/"${binary}" ]]
then
exeinto "${dir}"
newexe bin/${binary} ${GAME_EXE}-${binary} \
@@ -249,8 +255,10 @@ games-mods_src_install() {
# We don't want to leave the binary directory around
rm -rf bin
else
- games_make_wrapper "${GAME_EXE}-${MOD_DIR}" "${GAME_EXE} ${SELECT_MOD}${MOD_DIR}" "${dir}" "${dir}"
- make_desktop_entry "${GAME_EXE}-${MOD_DIR}" "${GAME_TITLE} - ${MOD_NAME}" "${MOD_ICON}"
+ games_make_wrapper "${GAME_EXE}-${MOD_DIR}" \
+ "${GAME_EXE} ${SELECT_MOD}${MOD_DIR}" "${dir}" "${dir}"
+ make_desktop_entry "${GAME_EXE}-${MOD_DIR}" \
+ "${GAME_TITLE} - ${MOD_NAME}" "${MOD_ICON}"
# Since only quake3 has both a binary and a source-based install,
# we only look for quake3 here.
case "${GAME_EXE}" in