/[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.16 - (show annotations) (download)
Mon May 15 19:59:10 2006 UTC (12 years, 3 months ago) by wolf31o2
Branch: MAIN
Changes since 1.15: +2 -1 lines
Added an extra dodir and closing bug #131102.
(Portage version: 2.1_pre10-r5)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-fps/soldieroffortune/soldieroffortune-1.06a.ebuild,v 1.15 2006/04/13 22:18:17 wolf31o2 Exp $
4
5 inherit eutils games
6
7 DESCRIPTION="First-person shooter based on the mercenary trade"
8 HOMEPAGE="http://www.lokigames.com/products/sof/"
9 SRC_URI="mirror://lokigames/sof/sof-${PV}-cdrom-x86.run"
10
11 LICENSE="LOKI-EULA"
12 SLOT="0"
13 KEYWORDS="~amd64 x86"
14 RESTRICT="strip"
15 IUSE=""
16
17 DEPEND="sys-libs/glibc
18 games-util/loki_patch"
19 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
37 S=${WORKDIR}
38
39 GAMES_CHECK_LICENSE="yes"
40 dir=${GAMES_PREFIX_OPT}/${PN}
41 Ddir=${D}/${dir}
42
43 pkg_setup() {
44 games_pkg_setup
45 ewarn "The installed game takes about 725MB of space!"
46 cdrom_get_cds sof.xpm
47 }
48
49 src_unpack() {
50 unpack_makeself
51 dodir ${dir}
52 tar xzf ${CDROM_ROOT}/paks.tar.gz -C ${Ddir} \
53 || die "uncompressing data"
54 tar xzf ${CDROM_ROOT}/binaries.tar.gz -C ${Ddir} \
55 || die "uncompressing binaries"
56 }
57
58 src_install() {
59 dodir ${dir}
60 einfo "Copying files... this may take a while..."
61 exeinto ${dir}
62 doexe ${CDROM_ROOT}/bin/x86/glibc-2.1/sof
63 insinto ${dir}
64 doins ${CDROM_ROOT}/{README,kver.pub,sof.xpm}
65
66 cd ${S}
67 loki_patch --verify patch.dat
68 loki_patch patch.dat ${Ddir} >& /dev/null || die "patching"
69
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 games_make_wrapper sof ./sof "${dir}" "${dir}"
76 doicon ${CDROM_ROOT}/sof.xpm
77 make_desktop_entry sof "Soldier of Fortune" sof.xpm
78
79 prepgamesdirs
80 }
81
82 pkg_postinst() {
83 games_pkg_postinst
84 einfo "To play the game run:"
85 einfo " sof"
86 }

  ViewVC Help
Powered by ViewVC 1.1.20