# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=3 inherit eutils games DESCRIPTION="A 2D space combat, multiplayer net game." HOMEPAGE="http://spacezero.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" S="${WORKDIR}/${PN}" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" RDEPEND=">=dev-libs/glib-2.18.1:2 >=x11-libs/gtk+-2.6:2 media-libs/openal" DEPEND="${RDEPEND} media-libs/freealut" src_prepare() { epatch "${FILESDIR}/datadir-${PV}.patch" } src_compile() { emake spacezero || die } src_install() { emake INSTALL_DIR="${ED}${GAMES_BINDIR}/" INSTALL_DATA_DIR="${ED}${GAMES_DATADIR}/spacezero/" install || die dodoc changelog INSTALL newicon "${FILESDIR}"/fighter0.png ${PN}.png make_desktop_entry ${PN} "SpaceZero" prepgamesdirs }