/[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.29 - (hide annotations) (download)
Sun Feb 5 06:12:23 2012 UTC (6 years, 4 months ago) by vapier
Branch: MAIN
Changes since 1.28: +2 -2 lines
Move to new unpacker eclass for unpack_makeself.

(Portage version: 2.2.0_alpha84/cvs/Linux x86_64)

1 ulm 1.28 # Copyright 1999-2012 Gentoo Foundation
2 vapier 1.1 # Distributed under the terms of the GNU General Public License v2
3 vapier 1.29 # $Header: /var/cvsroot/gentoo-x86/games-fps/soldieroffortune/soldieroffortune-1.06a.ebuild,v 1.28 2012/01/16 19:25:38 ulm Exp $
4 vapier 1.1
5 vapier 1.29 inherit eutils unpacker cdrom 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     dir=${GAMES_PREFIX_OPT}/${PN}
37     Ddir=${D}/${dir}
38    
39     pkg_setup() {
40 wolf31o2 1.14 games_pkg_setup
41 vapier 1.1 ewarn "The installed game takes about 725MB of space!"
42     }
43    
44     src_unpack() {
45 wolf31o2 1.19 cdrom_get_cds sof.xpm
46 vapier 1.1 unpack_makeself
47 wolf31o2 1.23 tar xzf "${CDROM_ROOT}"/paks.tar.gz -C "${T}" \
48 wolf31o2 1.15 || die "uncompressing data"
49 wolf31o2 1.23 tar xzf "${CDROM_ROOT}"/binaries.tar.gz -C "${T}" \
50 wolf31o2 1.15 || die "uncompressing binaries"
51 vapier 1.1 }
52    
53     src_install() {
54     einfo "Copying files... this may take a while..."
55 wolf31o2 1.23 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 vapier 1.1
61 wolf31o2 1.23 cd "${S}"
62 wolf31o2 1.21 export _POSIX2_VERSION=199209
63 wolf31o2 1.10 loki_patch --verify patch.dat
64 wolf31o2 1.23 loki_patch patch.dat "${Ddir}" >& /dev/null || die "patching"
65 vapier 1.1
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 wolf31o2 1.23 find "${Ddir}" -exec touch '{}' \;
70 vapier 1.1
71 wolf31o2 1.12 games_make_wrapper sof ./sof "${dir}" "${dir}"
72 mr_bones_ 1.26 sed -i \
73     -e 's/^exec /__GL_ExtensionStringVersion=17700 exec /'
74     "${D}/${GAMES_BINDIR}/sof" || die
75 wolf31o2 1.23 doicon "${CDROM_ROOT}"/sof.xpm
76 carlo 1.24 make_desktop_entry sof "Soldier of Fortune" sof
77 vapier 1.1
78     prepgamesdirs
79     }
80    
81     pkg_postinst() {
82 vapier 1.2 games_pkg_postinst
83 genone 1.22 elog "To play the game run:"
84     elog " sof"
85 vapier 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20