/[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.30 - (show annotations) (download)
Wed Sep 19 15:16:06 2012 UTC (22 months, 1 week ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.29: +2 -2 lines
fix sed typo noticed by Jared B (bug #435476)

(Portage version: 2.1.11.9/cvs/Linux x86_64)

1 # Copyright 1999-2012 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.29 2012/02/05 06:12:23 vapier Exp $
4
5 inherit eutils unpacker cdrom 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 x11-libs/libX11
22 x11-libs/libXext
23 x11-libs/libXau
24 x11-libs/libXdmcp
25 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
34 S=${WORKDIR}
35
36 dir=${GAMES_PREFIX_OPT}/${PN}
37 Ddir=${D}/${dir}
38
39 pkg_setup() {
40 games_pkg_setup
41 ewarn "The installed game takes about 725MB of space!"
42 }
43
44 src_unpack() {
45 cdrom_get_cds sof.xpm
46 unpack_makeself
47 tar xzf "${CDROM_ROOT}"/paks.tar.gz -C "${T}" \
48 || die "uncompressing data"
49 tar xzf "${CDROM_ROOT}"/binaries.tar.gz -C "${T}" \
50 || die "uncompressing binaries"
51 }
52
53 src_install() {
54 einfo "Copying files... this may take a while..."
55 exeinto "${dir}"
56 doexe "${CDROM_ROOT}"/bin/x86/glibc-2.1/sof || die "doexe"
57 insinto "${dir}"
58 doins -r "${T}"/* || die "doins data"
59 doins "${CDROM_ROOT}"/{README,kver.pub,sof.xpm} || die "doins"
60
61 cd "${S}"
62 export _POSIX2_VERSION=199209
63 loki_patch --verify patch.dat
64 loki_patch patch.dat "${Ddir}" >& /dev/null || die "patching"
65
66 # now, since these files are coming off a cd, the times/sizes/md5sums wont
67 # be different ... that means portage will try to unmerge some files (!)
68 # we run touch on ${D} so as to make sure portage doesnt do any such thing
69 find "${Ddir}" -exec touch '{}' \;
70
71 games_make_wrapper sof ./sof "${dir}" "${dir}"
72 sed -i \
73 -e 's/^exec /__GL_ExtensionStringVersion=17700 exec /' \
74 "${D}/${GAMES_BINDIR}/sof" || die
75 doicon "${CDROM_ROOT}"/sof.xpm
76 make_desktop_entry sof "Soldier of Fortune" sof
77
78 prepgamesdirs
79 }
80
81 pkg_postinst() {
82 games_pkg_postinst
83 elog "To play the game run:"
84 elog " sof"
85 }

  ViewVC Help
Powered by ViewVC 1.1.20