diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2005-02-23 12:31:38 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2005-02-23 12:31:38 +0000 |
commit | 75579780ff516dbee76985ec8ce01f6bc49522ed (patch) | |
tree | 018a6197f688e5c6f3149dbcf1294ed80dea3331 /eclass | |
parent | Bump to make it conform bug #79240. (diff) | |
download | gentoo-2-75579780ff516dbee76985ec8ce01f6bc49522ed.tar.gz gentoo-2-75579780ff516dbee76985ec8ce01f6bc49522ed.tar.bz2 gentoo-2-75579780ff516dbee76985ec8ce01f6bc49522ed.zip |
Updated eclass.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/games-ut2k4mod.eclass | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/eclass/games-ut2k4mod.eclass b/eclass/games-ut2k4mod.eclass index b2b2e4bd3b9e..8e150cd12881 100644 --- a/eclass/games-ut2k4mod.eclass +++ b/eclass/games-ut2k4mod.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/games-ut2k4mod.eclass,v 1.1 2004/11/25 00:08:12 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/games-ut2k4mod.eclass,v 1.2 2005/02/23 12:31:38 wolf31o2 Exp $ inherit games @@ -26,6 +26,26 @@ S=${WORKDIR} dir=${GAMES_PREFIX_OPT}/ut2004 Ddir=${D}/${dir} +check_dvd() { + # The following is a nasty mess to determine if we are installing from + # a DVD or from multiple CDs. Anyone feel free to submit patches to this + # to bugs.gentoo.org as I know it is a very ugly hack. + USE_DVD= + USE_ECE_DVD= + if [ -n "${CD_ROOT}" ] + then + [ -d "${CD_ROOT}/CD1" ] && USE_DVD=1 + [ -d "${CD_ROOT}/CD7" ] && USE_ECE_DVD=1 + else + local mline="" + for mline in `mount | egrep -e '(iso|cdrom)' | awk '{print $3}'` + do + [ -d "${mline}/CD1" ] && USE_DVD=1 + [ -d "${mline}/CD7" ] && USE_ECE_DVD=1 + done + fi +} + games-ut2k4mod_pkg_fetch() { einfo "Please download ${A} and put it into ${DISTDIR}" einfo "http://liflg.org/?catid=6&gameid=17" |