/[gentoo-x86]/games-fps/etqw-bin/etqw-bin-1.5.ebuild
Gentoo

Contents of /games-fps/etqw-bin/etqw-bin-1.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Fri Feb 1 01:38:32 2013 UTC (17 months, 4 weeks ago) by tristan
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +3 -4 lines
Use QA_PREBUILT, bug #430534

(Portage version: 2.2.0_alpha161/cvs/Linux x86_64, signed Manifest commit with key 668310D9)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-fps/etqw-bin/etqw-bin-1.5.ebuild,v 1.5 2011/02/13 17:45:56 nyhm Exp $
4
5 inherit eutils games
6
7 DESCRIPTION="Enemy Territory: Quake Wars"
8 HOMEPAGE="http://zerowing.idsoftware.com/linux/etqw/"
9 SRC_URI="ftp://ftp.i3d.net/Games/Enemy%20Territory%20Quake%20Wars/Patches/ETQW-client-${PV}-full.x86.run"
10
11 LICENSE="ETQW"
12 SLOT="0"
13 KEYWORDS="-* amd64 x86"
14 IUSE="cdinstall"
15 RESTRICT="strip"
16
17 DEPEND="app-arch/unzip"
18 RDEPEND="sys-libs/glibc
19 virtual/opengl
20 amd64? ( app-emulation/emul-linux-x86-sdl )
21 x86? (
22 media-libs/libsdl
23 media-libs/alsa-lib
24 )
25 cdinstall? ( games-fps/etqw-data )"
26
27 S=${WORKDIR}/data
28 dir=${GAMES_PREFIX_OPT}/etqw
29
30 QA_PREBUILT="${dir:1}/*.x86
31 ${dir:1}/*.so*"
32
33 src_unpack() {
34 tail -c +194885 "${DISTDIR}"/${A} > ${A}.zip
35 unpack ./${A}.zip
36 rm -f ${A}.zip
37 }
38
39 src_install() {
40 insinto "${dir}"
41 doins -r base pb *.png *.txt || die "doins failed"
42
43 exeinto "${dir}"
44 doexe etqw{,-rthread}.x86 openurl.sh *.so* || die "doexe failed"
45
46 newicon etqw_icon.png etqw.png
47 games_make_wrapper etqw ./etqw.x86 "${dir}" "${dir}"
48 make_desktop_entry etqw "Enemy Territory: Quake Wars" etqw
49
50 games_make_wrapper etqw-rthread ./etqw-rthread.x86 "${dir}" "${dir}"
51 make_desktop_entry etqw-rthread "Enemy Territory: Quake Wars (SMP)" etqw
52
53 prepgamesdirs
54 }
55
56 pkg_postinst() {
57 games_pkg_postinst
58
59 if ! use cdinstall ; then
60 elog "You need to copy pak00*.pk4, zpak_*.pk4 and the megatextures"
61 elog "directory to ${dir}/base before running the game."
62 fi
63 elog "To change the game language from English, add"
64 elog "seta sys_lang \"your_language\" to your autoexec.cfg file."
65 elog "Menu fonts may not show up until you do so."
66 }

  ViewVC Help
Powered by ViewVC 1.1.20