/[gentoo-x86]/eclass/games-ut2k4mod.eclass
Gentoo

Diff of /eclass/games-ut2k4mod.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.2
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/games-ut2k4mod.eclass,v 1.1 2004/11/25 00:08:12 wolf31o2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/games-ut2k4mod.eclass,v 1.2 2005/02/23 12:31:38 wolf31o2 Exp $
4 4
5inherit games 5inherit games
6 6
7ECLASS=games-ut2k4mod 7ECLASS=games-ut2k4mod
8INHERITED="$INHERITED $ECLASS" 8INHERITED="$INHERITED $ECLASS"
23 >=games-fps/ut2004-3339" 23 >=games-fps/ut2004-3339"
24 24
25S=${WORKDIR} 25S=${WORKDIR}
26dir=${GAMES_PREFIX_OPT}/ut2004 26dir=${GAMES_PREFIX_OPT}/ut2004
27Ddir=${D}/${dir} 27Ddir=${D}/${dir}
28
29check_dvd() {
30 # The following is a nasty mess to determine if we are installing from
31 # a DVD or from multiple CDs. Anyone feel free to submit patches to this
32 # to bugs.gentoo.org as I know it is a very ugly hack.
33 USE_DVD=
34 USE_ECE_DVD=
35 if [ -n "${CD_ROOT}" ]
36 then
37 [ -d "${CD_ROOT}/CD1" ] && USE_DVD=1
38 [ -d "${CD_ROOT}/CD7" ] && USE_ECE_DVD=1
39 else
40 local mline=""
41 for mline in `mount | egrep -e '(iso|cdrom)' | awk '{print $3}'`
42 do
43 [ -d "${mline}/CD1" ] && USE_DVD=1
44 [ -d "${mline}/CD7" ] && USE_ECE_DVD=1
45 done
46 fi
47}
28 48
29games-ut2k4mod_pkg_fetch() { 49games-ut2k4mod_pkg_fetch() {
30 einfo "Please download ${A} and put it into ${DISTDIR}" 50 einfo "Please download ${A} and put it into ${DISTDIR}"
31 einfo "http://liflg.org/?catid=6&gameid=17" 51 einfo "http://liflg.org/?catid=6&gameid=17"
32} 52}

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20