Created
August 6, 2012 13:11
-
-
Save hasufell/3274385 to your computer and use it in GitHub Desktop.
retrobattle-1.0.0.ebuild
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 1999-2012 Gentoo Foundation | |
# Distributed under the terms of the GNU General Public License v2 | |
# $Header: $ | |
EAPI=3 | |
inherit eutils games | |
MY_P="${PN}-src-${PV}" | |
DESCRIPTION="A NES-like platform arcade game" | |
HOMEPAGE="http://remar.se/andreas/retrobattle/" | |
SRC_URI="http://remar.se/andreas/retrobattle/files/${MY_P}.tar.bz2" | |
LICENSE="GPL-2" | |
SLOT="0" | |
KEYWORDS="~amd64 ~x86" | |
IUSE="" | |
# test is incomplete | |
RESTRICT="test" | |
DEPEND="media-libs/libsdl[X,audio,video] | |
media-libs/sdl-mixer[wav]" | |
S=${WORKDIR}/${MY_P}/src | |
src_prepare() { | |
epatch "${FILESDIR}"/${P}-{build,sound}.patch | |
} | |
src_install() { | |
insinto "${GAMES_DATADIR}"/${PN} | |
doins -r "${WORKDIR}"/${MY_P}/data || die | |
# wrapper to pass datadir location | |
newgamesbin "${WORKDIR}"/${MY_P}/${PN} ${PN}.bin || die | |
games_make_wrapper ${PN} "${PN}.bin \"${GAMES_DATADIR}/${PN}\"" | |
make_desktop_entry ${PN} | |
dodoc "${WORKDIR}"/${MY_P}/{manual.txt,README} | |
prepgamesdirs | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment