# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ 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/${PN}.tar.gz" LICENSE="LEGENDS" SLOT="0" KEYWORDS="x86" DEPEND="" RDEPEND=">=media-libs/libsdl-1.2 media-libs/openal" S=${WORKDIR}/${PN} 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} cp -R * ${D}/${dir}/ dogamesbin ${FILESDIR}/legends dosed "s:GENTOO_DIR:${dir}:" ${GAMES_BINDIR}/legends if [ `use dedicated` ]; then dogamesbin ${FILESDIR}/legends-ded dosed "s:GENTOO_DIR:${dir}:" ${GAMES_BINDIR}/legends-ded fi prepgamesdirs }