# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit autotools eutils games subversion DESCRIPTION="Quake 2 performance engine" HOMEPAGE="http://jdolan.dyndns.org/trac/wiki/Quetoo" #SRC_URI="http://jdolan.dyndns.org/jaydolan/files/${P}-full.tar.bz2 # http://tastyspleen.net/~jdolan/${P}-full.tar.bz2" ESVN_REPO_URI="svn://jdolan.dyndns.org/quetoo/trunk/" S="$S/trunk/" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 x86" IUSE="mysql" RDEPEND="media-libs/alsa-lib virtual/opengl media-libs/libsdl mysql? ( virtual/mysql )" DEPEND="${RDEPEND}" src_unpack() { subversion_src_unpack } src_compile() { eaclocal || die "aclocal failed" eautoreconf -f -i -Wall,no-obsolete || die "autoreconf failed" egamesconf \ $(use_with mysql) \ || die "egamesconf failed" eautomake || die "automake failed" } src_install() { eautomake DESTDIR="${D}" install || die "automake install failed" # Has no icon, so use quake2 icon if available make_desktop_entry ${PN} "Quetoo" quake2.xpm dodoc README prepgamesdirs } pkg_postinst() { games_pkg_postinst elog "Be warned, there is no user interface in this game." elog "To start a map, type e.g.: map base1" elog "The configuration is saved in ~/.quake2/baseq2/quetoo.cfg" echo }