# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/games-fps/unreal/unreal-226.ebuild,v 1.3 2003/10/08 00:23:58 vapier Exp $ inherit games eutils DESCRIPTION="Futuristic FPS (a hack that runs on top of Unreal Tournament)" HOMEPAGE="http://www.unreal.com/" SRC_URI="http://www.icculus.org/%7Echunky/ut/unreal/unreali-install.run ftp://ftp.lokigames.com/pub/patches/ut/ut-install-436.run" LICENSE="as-is" SLOT="0" KEYWORDS="-* x86" IUSE="X" DEPEND="sys-libs/lib-compat" RDEPEND="X? ( virtual/x11 ) opengl? ( virtual/opengl )" S=${WORKDIR} pkg_setup() { games_get_cd System/ games_verify_cd ${PN} games_pkg_setup } src_unpack() { unpack_makeself unreali-install.run || die "unpacking unreal" mkdir ut cd ut unpack_makeself ut-install-436.run || die "unpacking UT" # tar -zxf data.tar.gz || die "extract UT System data" } src_install() { local dir=${GAMES_PREFIX_OPT}/unreal dodir ${dir} # System from UT tar -zxf ut/data.tar.gz -C ${D}/${dir} # insinto ${dir}/System # doins ut/System/Engine.so # doins ut/System/Engine.int # doins ut/System/Core.so # doins ut/System/Core.int # doins ut/Systam/libSDL-1.1.so.0 # System from unreali-install.run tar -zxf System.tar.gz -C ${D}/${dir} cp -rf ${GAMES_CD}/{Maps,Music,Sounds} ${D}/${dir}/ insinto ${dir} doins icon.* README* dogamesbin ${FILESDIR}/unreal dosed "s:GENTOO_DIR:${dir}/System:" ${GAMES_BINDIR}/unreal prepgamesdirs }