# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-roguelike/scourge/scourge-0.1.ebuild,v 1.5 2004/06/24 23:14:03 agriffis Exp $ inherit games DESCRIPTION="A rogue-like adventure game to eliminate pests" HOMEPAGE="http://scourge.sf.net" SRC_URI="mirror://sourceforge/scourge/${P}.tar.gz" KEYWORDS="x86 ~ppc amd64" LICENSE="GPL-2" SLOT="0" IUSE="" RDEPEND="virtual/x11 virtual/glut virtual/opengl >=media-libs/libsdl-1.2" DEPEND="${RDEPEND}" src_unpack() { unpack ${A} epatch ${FILESDIR}/scourge-gcc34.patch } src_compile() { econf --with-data-dir=${GAMES_DATADIR}/${PN}/data || die "conf failed" emake || die "make failed" } src_install() { dogamesbin src/scourge || die "dogamesbin failed" dodir "${GAMES_DATADIR}/${PN}" cp -r data/ "${D}${GAMES_DATADIR}/${PN}" || die "cp failed" dodoc AUTHORS README || die "dodoc failed" prepgamesdirs }