blob: 524627b46845f3de8b7b05e6429f13a4ebd989cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-fps/etqw-demo/etqw-demo-2.0_p1-r1.ebuild,v 1.1 2014/07/04 21:02:08 axs Exp $
EAPI=5
inherit unpacker eutils versionator games
MY_MAJOR=$(get_major_version)
MY_REV=$(get_version_component_range 3)
MY_BODY="ETQW-demo${MY_MAJOR}-client-full.r${MY_REV/p/}.x86"
DESCRIPTION="Enemy Territory: Quake Wars demo"
HOMEPAGE="http://zerowing.idsoftware.com/linux/etqw/"
SRC_URI="mirror://idsoftware/etqw/${MY_BODY}.run"
# See copyrights.txt
LICENSE="ETQW"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RESTRICT="strip mirror"
DEPEND="app-arch/unzip"
RDEPEND="|| (
(
sys-libs/zlib[abi_x86_32(-)]
virtual/jpeg:62[abi_x86_32(-)]
media-libs/libsdl[video,sound,opengl,abi_x86_32(-)]
x11-libs/libX11[abi_x86_32(-)]
x11-libs/libXext[abi_x86_32(-)]
)
amd64? (
>=app-emulation/emul-linux-x86-sdl-20071114[-abi_x86_32(-)]
app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
)
)"
S=${WORKDIR}
dir=${GAMES_PREFIX_OPT}/${PN}
QA_PREBUILT="${dir:1}/guis/libmojosetupgui_ncurses.so
${dir:1}/data/*
${dir:1}/data/pb/*.so"
src_unpack() {
# exit status of 1 should just be warnings, not corrupt archive
unpack_zip ${A}
}
src_install() {
insinto "${dir}"
doins -r guis scripts
cd data
insinto "${dir}"/data
doins -r base pb etqw_icon.png
dodoc README.txt EULA.txt copyrights.txt etqwtv.txt
exeinto "${dir}"/data
doexe etqw *\.x86 etqw-* libCgx86* libSDL* *.sh
games_make_wrapper ${PN} ./etqw.x86 "${dir}"/data "${dir}"/data
# Matches with desktop entry for enemy-territory-truecombat
make_desktop_entry ${PN} "Enemy Territory - Quake Wars (Demo)"
games_make_wrapper ${PN}-ded ./etqwded.x86 "${dir}"/data "${dir}"/data
prepgamesdirs
}
|