summaryrefslogtreecommitdiff
blob: ee5f586816b9ad97f2b5431b717ee1584030d8fd (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-fps/legends/legends-0.3.6.ebuild,v 1.1 2003/12/13 09:34:20 mr_bones_ Exp $

inherit games

DESCRIPTION="A fast-paced first-person-perspective online multiplayer game similar to Tribes"
HOMEPAGE="http://hosted.tribalwar.com/legends/"
SRC_URI="http://themasters.co.za/${P}.tar.gz"

RESTRICT="nomirror"
KEYWORDS="~x86"
LICENSE="as-is"
SLOT="0"
IUSE="dedicated"

DEPEND=""
RDEPEND=">=media-libs/libsdl-1.2
	media-libs/openal"

src_unpack() {
	unpack ${A}
	cd ${S}
	rm runlegends libSDL-*.so* libopenal.so
	find . -type f -exec chmod a-x '{}' \;
	chmod a+x ispawn lindedicated LinLegends
}

src_install() {
	local dir=${GAMES_PREFIX_OPT}/${PN}

	dodir ${dir}                           || die "dodir failed"
	cp -R * ${D}/${dir}/                   || die "cp failed"
	dogamesbin ${FILESDIR}/legends         || die "dogamesbin failed (1)"
	dosed "s:GENTOO_DIR:${dir}:" ${GAMES_BINDIR}/legends
	if use dedicated; then
		dogamesbin ${FILESDIR}/legends-ded || die "dogamesbin failed (2)"
		dosed "s:GENTOO_DIR:${dir}:" ${GAMES_BINDIR}/legends-ded
	fi
	prepgamesdirs
}