/[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.8 Revision 1.9
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.8 2006/03/31 02:39:32 wolf31o2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/games-ut2k4mod.eclass,v 1.9 2006/09/28 21:32:12 wolf31o2 Exp $
4 4
5inherit games 5inherit games
6 6
7 7
8EXPORT_FUNCTIONS pkg_nofetch src_unpack src_install pkg_postinst 8EXPORT_FUNCTIONS pkg_nofetch src_unpack src_install pkg_postinst
10DESCRIPTION="UT2004 - ${MOD_DESC}" 10DESCRIPTION="UT2004 - ${MOD_DESC}"
11 11
12SLOT="0" 12SLOT="0"
13KEYWORDS="-* x86 amd64" 13KEYWORDS="-* x86 amd64"
14IUSE="" 14IUSE=""
15RESTRICT="nomirror fetch"
16 15
17DEPEND="app-arch/tar 16DEPEND="app-arch/tar
18 app-arch/bzip2" 17 app-arch/bzip2"
19 18
20RDEPEND="virtual/libc 19RDEPEND="sys-libs/glibc"
21 >=games-fps/ut2004-3339" 20PDEPEND=">=games-fps/ut2004-3339"
22 21
23S=${WORKDIR} 22S=${WORKDIR}
24dir=${GAMES_PREFIX_OPT}/ut2004 23dir=${GAMES_PREFIX_OPT}/ut2004
25Ddir=${D}/${dir} 24Ddir=${D}/${dir}
26 25
51 50
52games-ut2k4mod_src_unpack() { 51games-ut2k4mod_src_unpack() {
53 [ -z "${MOD_TBZ2}" ] && die "what are we supposed to unpack ?" 52 [ -z "${MOD_TBZ2}" ] && die "what are we supposed to unpack ?"
54 [ -z "${MOD_NAME}" ] && die "what is the name of this ut2k4mod ?" 53 [ -z "${MOD_NAME}" ] && die "what is the name of this ut2k4mod ?"
55 54
56 for makeself in ${A} 55 for src_uri in ${A}
57 do 56 do
58 unpack_makeself ${makeself} 57 URI_SUFFIX="${src_uri##*.}"
58 case ${URI_SUFFIX##*.} in
59 run|bin)
60 # We have a Makeself archive, use unpack_makeself
61 unpack_makeself ${src_uri}
62 # Since this is a Makeself archive, it has a lot of useless
63 # files (for us), so we delete them.
64 rm -rf setup.data setup.sh uninstall
65 ;;
66 bz2|gz|Z|z|ZIP|zip)
67 # We have a normal tarball/zip file, use unpack
68 unpack ${src_uri}
69 ;;
70 esac
59 done 71 done
60 72
61 mkdir ${S}/unpack 73 mkdir ${S}/unpack
62 for tarball in ${MOD_TBZ2} 74 for tarball in ${MOD_TBZ2}
63 do 75 do

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.20