summaryrefslogtreecommitdiff
blob: e270f1b31afb52642662b16f75e57dadeb176691 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-fps/enemy-territory-fortress/enemy-territory-fortress-1.6-r2.ebuild,v 1.4 2007/11/06 21:49:16 wolf31o2 Exp $

MOD_DESC="a class-based teamplay modification"
MOD_NAME="Fortress"
MOD_TBZ2="etf cfgnormal"
MOD_ICON="etf.xpm"
MOD_DIR="etf"
GAME="enemy-territory"

inherit eutils games games-mods

HOMEPAGE="http://www.etfgame.com/"
SRC_URI="http://www.sonnensturm.net/download/etf_${PV}-english-2.run
	http://www.playlinux.net/files/native/etf_${PV}-english-2.run
	http://liflg.httpdnet.com/files/native/etf_${PV}-english-2.run
	http://www.sonnensturm.net/download/etf_${PV}-english-2.run"

RDEPEND="games-fps/${GAME}"

QA_TEXTRELS="${GAMES_PREFIX_OPT:1}/${GAME}/etf/omnibot_etf.so"

src_unpack() {
	# This is a prime example of how we should do our src_unpack for a mod that
	# has files that we don't want.
	games-mods_src_unpack
	rm -rf cfghi.tar.gz cfglow.tar.gz cfgxtrahi.tar.gz enemy-territory.xml \
		LICENSE README search.sh bin
	cd "${S}"
	find . -type f -print0 | xargs -0 chmod a-x
}