/[gentoo-x86]/games-fps/soldieroffortune/soldieroffortune-1.06a.ebuild
Gentoo

Contents of /games-fps/soldieroffortune/soldieroffortune-1.06a.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.22 - (hide annotations) (download)
Mon Mar 12 15:19:54 2007 UTC (11 years, 9 months ago) by genone
Branch: MAIN
Changes since 1.21: +3 -3 lines
Replacing einfo with elog
(Portage version: 2.1.2.2)

1 wolf31o2 1.21 # Copyright 1999-2007 Gentoo Foundation
2 vapier 1.1 # Distributed under the terms of the GNU General Public License v2
3 genone 1.22 # $Header: /var/cvsroot/gentoo-x86/games-fps/soldieroffortune/soldieroffortune-1.06a.ebuild,v 1.21 2007/01/09 22:17:18 wolf31o2 Exp $
4 vapier 1.1
5 wolf31o2 1.12 inherit eutils games
6 vapier 1.1
7 wolf31o2 1.10 DESCRIPTION="First-person shooter based on the mercenary trade"
8 vapier 1.1 HOMEPAGE="http://www.lokigames.com/products/sof/"
9 wolf31o2 1.11 SRC_URI="mirror://lokigames/sof/sof-${PV}-cdrom-x86.run"
10 vapier 1.1
11     LICENSE="LOKI-EULA"
12     SLOT="0"
13 wolf31o2 1.18 KEYWORDS="amd64 x86"
14 wolf31o2 1.13 RESTRICT="strip"
15 wolf31o2 1.5 IUSE=""
16 vapier 1.1
17 wolf31o2 1.15 DEPEND="sys-libs/glibc
18 wolf31o2 1.10 games-util/loki_patch"
19 wolf31o2 1.15 RDEPEND="virtual/opengl
20     x86? (
21 wolf31o2 1.20 x11-libs/libX11
22     x11-libs/libXext
23     x11-libs/libXau
24     x11-libs/libXdmcp
25 wolf31o2 1.15 media-libs/libvorbis
26     media-libs/libogg
27     media-libs/smpeg )
28     amd64? (
29     app-emulation/emul-linux-x86-baselibs
30     app-emulation/emul-linux-x86-xlibs
31     app-emulation/emul-linux-x86-sdl
32     app-emulation/emul-linux-x86-soundlibs )"
33 vapier 1.1
34     S=${WORKDIR}
35    
36 wolf31o2 1.14 GAMES_CHECK_LICENSE="yes"
37 vapier 1.1 dir=${GAMES_PREFIX_OPT}/${PN}
38     Ddir=${D}/${dir}
39    
40     pkg_setup() {
41 wolf31o2 1.14 games_pkg_setup
42 vapier 1.1 ewarn "The installed game takes about 725MB of space!"
43     }
44    
45     src_unpack() {
46 wolf31o2 1.19 cdrom_get_cds sof.xpm
47 vapier 1.1 unpack_makeself
48 wolf31o2 1.17 tar xzf ${CDROM_ROOT}/paks.tar.gz -C ${T} \
49 wolf31o2 1.15 || die "uncompressing data"
50 wolf31o2 1.17 tar xzf ${CDROM_ROOT}/binaries.tar.gz -C ${T} \
51 wolf31o2 1.15 || die "uncompressing binaries"
52 vapier 1.1 }
53    
54     src_install() {
55     dodir ${dir}
56     einfo "Copying files... this may take a while..."
57 wolf31o2 1.9 exeinto ${dir}
58 wolf31o2 1.17 doexe ${CDROM_ROOT}/bin/x86/glibc-2.1/sof || die "doexe"
59 wolf31o2 1.9 insinto ${dir}
60 wolf31o2 1.17 doins -r ${T}/* || die "doins data"
61     doins ${CDROM_ROOT}/{README,kver.pub,sof.xpm} || die "doins"
62 vapier 1.1
63     cd ${S}
64 wolf31o2 1.21 export _POSIX2_VERSION=199209
65 wolf31o2 1.10 loki_patch --verify patch.dat
66     loki_patch patch.dat ${Ddir} >& /dev/null || die "patching"
67 vapier 1.1
68     # now, since these files are coming off a cd, the times/sizes/md5sums wont
69     # be different ... that means portage will try to unmerge some files (!)
70     # we run touch on ${D} so as to make sure portage doesnt do any such thing
71     find ${Ddir} -exec touch '{}' \;
72    
73 wolf31o2 1.12 games_make_wrapper sof ./sof "${dir}" "${dir}"
74 wolf31o2 1.10 doicon ${CDROM_ROOT}/sof.xpm
75 wolf31o2 1.15 make_desktop_entry sof "Soldier of Fortune" sof.xpm
76 vapier 1.1
77     prepgamesdirs
78     }
79    
80     pkg_postinst() {
81 vapier 1.2 games_pkg_postinst
82 genone 1.22 elog "To play the game run:"
83     elog " sof"
84 vapier 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20