# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-fps/ezquake-bin/ezquake-bin-1.8.0.ebuild,v 1.5 2007/03/12 14:38:40 genone Exp $ inherit games versionator MY_PV=$(get_version_component_range 1-2) DESCRIPTION="Quakeworld client under active development, forked from fuhquake, including long-wanted mqwcl functionality and many more features." HOMEPAGE="http://ezquake.sf.net/" SRC_URI="http://kent.dl.sourceforge.net/sourceforge/ezquake/ezquake_linux-x86_${MY_PV}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" RESTRICT="strip" IUSE="opengl svga cdinstall tcl" QA_EXECSTACK_x86="${GAMES_PREFIX_OPT:1}/quake1/ezquake-gl.glx ${GAMES_PREFIX_OPT:1}/quake1/ezquake.x11 ${GAMES_PREFIX_OPT:1}/quake1/ezquake.svga" QA_EXECSTACK_amd64="${GAMES_PREFIX_OPT:1}/quake1/ezquake-gl.glx ${GAMES_PREFIX_OPT:1}/quake1/ezquake.x11 ${GAMES_PREFIX_OPT:1}/quake1/ezquake.svga" RDEPEND="dev-libs/expat !svga? ( x11-libs/libXext ) svga? ( media-libs/svgalib ) opengl? ( virtual/opengl x11-libs/libXext ) cdinstall? ( games-fps/quake1-data ) tcl? ( dev-lang/tcl )" # Scripting in tcl is now possible, # expat is needed for the inbuild help browser. # All 3 versions, svga, x11 and opengl are maintained. S=${WORKDIR} src_install() { dir=${GAMES_PREFIX_OPT}/quake1 if [[ -n ${dir} ]] ; then dodir ${dir} fi pakdir=$(find ${GAMES_PREFIX_OPT} -wholename '*/id1/pak0.pak') if [[ -n "$pakdir" ]] ; then elog "Found a dir with *.pak files: ${pakdir}" elog "Creating a symlink to it." dosym $(dirname "$pakdir") ${dir}/id1 else dodir ${dir}/id1/ elog "Created ${dir}/id1/ dir, you have to put your *.pak files here in order to play the game." elog "The *.pak files are not free and can be obtained from the Quake 1 CD" elog "or from the shareware version of Quake 1." elog "See also: http://www.idsoftware.com/store/index.php?view=quake&page=2" fi exeinto "${dir}" insinto "${dir}" QBINS="ezquake-gl.glx ezquake.x11 ezquake.svga" QDIRS="ezquake qw" doexe ${QBINS} || die "installing bins" doins -r ${QDIRS} || die "installing dirs" for x in ${QBINS}; do games_make_wrapper ${x} ./${x} "${dir}" "${dir}" done prepgamesdirs } pkg_postinst() { games_pkg_postinst elog "NOTE that this client doesn't include .pak files, which are not free yet." elog "You need to copy them from your quake1 CD into the quake/id1 directory." elog "If you don't want to purchase Quake 1, you can download the shareware version" elog "and obtain the pak files from there, then simply copy them into" elog "${GAMES_PREFIX_OPT}/quake1/id1 (all names lowercase)" elog "You may also want to check:" elog "http://fquake.sf.net - extra QW goodies, including fancy textures, etc." }