# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-fps/ezquake-bin/ezquake-bin-1517.ebuild,v 1.3 2006/09/19 19:19:52 wolf31o2 Exp $ inherit games 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://wit.edu.pl/~rzadzinp/ezquake/releases/${PV}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" RESTRICT="strip" IUSE="opengl svga cdinstall" QA_EXECSTACK_x86="${GAMES_PREFIX_OPT:1}/ezquake-bin/ezquake-gl.glx ${GAMES_PREFIX_OPT:1}/ezquake-bin/ezquake.x11 ${GAMES_PREFIX_OPT:1}/ezquake-bin/ezquake.svga" QA_EXECSTACK_amd64="${GAMES_PREFIX_OPT:1}/ezquake-bin/ezquake-gl.glx ${GAMES_PREFIX_OPT:1}/ezquake-bin/ezquake.x11 ${GAMES_PREFIX_OPT:1}/ezquake-bin/ezquake.svga" RDEPEND=">=dev-libs/expat-2.0 !svga? ( || ( x11-libs/libXext virtual/x11 ) ) svga? ( media-libs/svgalib ) opengl? ( virtual/opengl || ( x11-libs/libXext virtual/x11 ) ) cdinstall? ( games-fps/quake1-data )" S=${WORKDIR}/${PN} dir=${GAMES_PREFIX_OPT}/${PN} src_install() { exeinto ${dir} insinto ${dir} BINS="ezquake-gl.glx ezquake.x11 ezquake.svga" doexe ${BINS} ezquake-security.so || die "doexe" doins -r ezquake qw || die "cp dirs" dodir "${GAMES_DATADIR}"/quake1/id1 dosym "${GAMES_DATADIR}"/quake1/id1 "${dir}"/id1 for x in ${BINS}; do games_make_wrapper ${x} ./${x} "${dir}" "${dir}" done prepgamesdirs } pkg_postinst() { games_pkg_postinst einfo "NOTE that this client doesnt include .pak files. You need to copy them from" einfo "your quake1 CD (see also: http://www.idsoftware.com/store/index.php?view=quake&page=2), " einfo "(note that quake1 shareware packs are free) and put them in" einfo " ${GAMES_PREFIX_OPT}/quake1/id1 (all names lowercase)" einfo "You may also want to check:" einfo "--> http://fuhquake.quakeworld.nu -- complete howto on commands and variables" einfo "--> http://equake.quakeworld.nu -- free package containing various files" }