# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-fps/quake3-urbanterror/quake3-urbanterror-4.1.ebuild,v 1.1 2008/03/16 00:46:11 wolf31o2 Exp $ inherit games HOMEPAGE="http://www.urbanterror.net/" SRC_URI=" ftp://ftp.snt.utwente.nl/pub/games/urbanterror/UrbanTerror_41_FULL.zip http://mirror.kickassctf.com/UrbanTerror_41_FULL.zip http://mirror.kickassctf.com/UrbanTerror_41_FULL.zip http://www.iourt.com/urt41/UrbanTerror_41_FULL.zip http://mirror.ncsa.uiuc.edu/ut4/urbanterror/UrbanTerror_41_FULL.zip" LICENSE="freedist" SLOT="3" RESTRICT="mirror strip" KEYWORDS="~x86" IUSE="dedicated opengl" DEPEND=" app-arch/unzip " # this list was compiled according to "ldd ioUrbanTerror.i386" RDEPEND=" sys-libs/glibc opengl? ( x11-libs/libXext x11-libs/libX11 x11-libs/libXau x11-libs/libXdmcp sys-libs/gpm sys-libs/ncurses media-libs/libsdl media-libs/aalib ) " S="${WORKDIR}" optdir="${GAMES_PREFIX_OPT}/${P}" # do we want to install the gui part of ioUrbanTerror? default_client() { if use opengl || ! use dedicated then # Use opengl by default return 0 else return 1 fi } src_install() { # binaries dodir "${optdir}" exeinto "${optdir}" if default_client then # game binary doexe Linux-i386/ioUrbanTerror.i386 games_make_wrapper ${PN} ./ioUrbanTerror.i386 "${optdir}" "${optdir}" # icon and desktop entry newicon Linux-i386/iourbanterror.png ${PN}.png make_desktop_entry ${PN} "ioUrbanTerror" ${PN}.png # BattlEye dodir "${optdir}/BattlEye" insinto "${optdir}/BattlEye" doins Linux-i386/BattlEye/* fi if use dedicated then doexe Linux-i386/ioUrTded.i386 # insert nice initscript here fi # docs dodir "${optdir}/docs" insinto "${optdir}/docs" doins *.txt # symlink the mod dosym ${GAMES_DATADIR}/quake3/UrbanTerror/q3ut4 ${optdir}/ || die # ensure proper permissions prepgamesdirs }