# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-roguelike/scourge/scourge-0.14.ebuild,v 1.1 2006/06/13 16:32:25 mr_bones_ Exp $ inherit eutils games DESCRIPTION="A rogue-like adventure game to eliminate pests" HOMEPAGE="http://scourge.sf.net" SRC_URI="mirror://sourceforge/scourge/${P}.tar.gz mirror://sourceforge/scourge/${PN}-data-${PV}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" IUSE="" DEPEND="|| ( ( x11-libs/libXmu x11-libs/libXi ) virtual/x11 ) sys-libs/zlib virtual/glu virtual/opengl >=media-libs/freetype-2 >=media-libs/libsdl-1.2 media-libs/sdl-net media-libs/sdl-mixer" S=${WORKDIR}/${PN} src_compile() { egamesconf \ --with-data-dir="${GAMES_DATADIR}/${PN}/data" \ || die emake || die "emake failed" } src_install() { dogamesbin src/scourge || die "dogamesbin failed" doicon assets/scourge.png insinto "${GAMES_DATADIR}/${PN}/data" doins -r "${WORKDIR}"/scourge_data/* || die "doins failed" dodoc AUTHORS README make_desktop_entry scourge Scourge prepgamesdirs }