/[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.18 - (hide annotations) (download)
Sat Oct 7 13:02:23 2006 UTC (11 years, 9 months ago) by wolf31o2
Branch: MAIN
Changes since 1.17: +2 -2 lines
Stable on amd64.
(Portage version: 2.1.2_pre2-r4)

1 wolf31o2 1.13 # Copyright 1999-2006 Gentoo Foundation
2 vapier 1.1 # Distributed under the terms of the GNU General Public License v2
3 wolf31o2 1.18 # $Header: /var/cvsroot/gentoo-x86/games-fps/soldieroffortune/soldieroffortune-1.06a.ebuild,v 1.17 2006/06/28 14:31:05 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     || (
22     (
23     x11-libs/libX11
24     x11-libs/libXext
25     x11-libs/libXau
26     x11-libs/libXdmcp )
27     virtual/x11 )
28     media-libs/libvorbis
29     media-libs/libogg
30     media-libs/smpeg )
31     amd64? (
32     app-emulation/emul-linux-x86-baselibs
33     app-emulation/emul-linux-x86-xlibs
34     app-emulation/emul-linux-x86-sdl
35     app-emulation/emul-linux-x86-soundlibs )"
36 vapier 1.1
37     S=${WORKDIR}
38    
39 wolf31o2 1.14 GAMES_CHECK_LICENSE="yes"
40 vapier 1.1 dir=${GAMES_PREFIX_OPT}/${PN}
41     Ddir=${D}/${dir}
42    
43     pkg_setup() {
44 wolf31o2 1.14 games_pkg_setup
45 vapier 1.1 ewarn "The installed game takes about 725MB of space!"
46 vapier 1.2 cdrom_get_cds sof.xpm
47 vapier 1.1 }
48    
49     src_unpack() {
50     unpack_makeself
51 wolf31o2 1.17 tar xzf ${CDROM_ROOT}/paks.tar.gz -C ${T} \
52 wolf31o2 1.15 || die "uncompressing data"
53 wolf31o2 1.17 tar xzf ${CDROM_ROOT}/binaries.tar.gz -C ${T} \
54 wolf31o2 1.15 || die "uncompressing binaries"
55 vapier 1.1 }
56    
57     src_install() {
58     dodir ${dir}
59     einfo "Copying files... this may take a while..."
60 wolf31o2 1.9 exeinto ${dir}
61 wolf31o2 1.17 doexe ${CDROM_ROOT}/bin/x86/glibc-2.1/sof || die "doexe"
62 wolf31o2 1.9 insinto ${dir}
63 wolf31o2 1.17 doins -r ${T}/* || die "doins data"
64     doins ${CDROM_ROOT}/{README,kver.pub,sof.xpm} || die "doins"
65 vapier 1.1
66     cd ${S}
67 wolf31o2 1.10 loki_patch --verify patch.dat
68     loki_patch patch.dat ${Ddir} >& /dev/null || die "patching"
69 vapier 1.1
70     # now, since these files are coming off a cd, the times/sizes/md5sums wont
71     # be different ... that means portage will try to unmerge some files (!)
72     # we run touch on ${D} so as to make sure portage doesnt do any such thing
73     find ${Ddir} -exec touch '{}' \;
74    
75 wolf31o2 1.12 games_make_wrapper sof ./sof "${dir}" "${dir}"
76 wolf31o2 1.10 doicon ${CDROM_ROOT}/sof.xpm
77 wolf31o2 1.15 make_desktop_entry sof "Soldier of Fortune" sof.xpm
78 vapier 1.1
79     prepgamesdirs
80     }
81    
82     pkg_postinst() {
83 vapier 1.2 games_pkg_postinst
84 vapier 1.1 einfo "To play the game run:"
85     einfo " sof"
86     }

  ViewVC Help
Powered by ViewVC 1.1.20