# 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.4 2003/11/16 08:06:17 vapier Exp $ inherit games eutils DESCRIPTION="Futuristic FPS (a hack that runs on top of Unreal Tournament)" HOMEPAGE="http://www.unreal.com/ http://icculus.org/~chunky/ut/unreal/" SRC_URI="http://www.icculus.org/%7Echunky/ut/unreal/unreali-install.run ftp://ftp.lokigames.com/pub/patches/ut/ut-install-436.run ftp://ftp.lokigames.com/pub/patches/ut/IpDrv-436-Linux-08-20-02.zip" LICENSE="as-is" SLOT="0" KEYWORDS="-* x86" IUSE="X" DEPEND="|| ( games-fps/unreal-tournament games-fps/unreal-tournament-goty ) 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 mkdir ut cd ut unpack_makeself ut-install-436.run unpack IpDrv-436-Linux-08-20-02.zip } src_install() { local dir=${GAMES_PREFIX_OPT}/unreal dodir ${dir} tar -zxf ut/data.tar.gz -C ${D}/${dir} tar -zxf ut/OpenGL.ini.tar.gz -C ${D}/${dir} tar -zxf System.tar.gz -C ${D}/${dir} insinto ${dir}/System doins ut/IpDrv.so cp -rf ${GAMES_CD}/{Maps,Music,Sounds} ${D}/${dir}/ for f in ${D}/${dir}/Maps/Dm*.unr ; do mv ${f} ${f/Dm/DM-} done dosym Maps ${dir}/maps if [ -z "${UT_CDROM}" ] ; then if has_version '