diff options
Diffstat (limited to 'games-puzzle/sdl-jewels/sdl-jewels-1.1.1.ebuild')
-rw-r--r-- | games-puzzle/sdl-jewels/sdl-jewels-1.1.1.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/games-puzzle/sdl-jewels/sdl-jewels-1.1.1.ebuild b/games-puzzle/sdl-jewels/sdl-jewels-1.1.1.ebuild new file mode 100644 index 000000000000..ebc76c18e73f --- /dev/null +++ b/games-puzzle/sdl-jewels/sdl-jewels-1.1.1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-puzzle/sdl-jewels/sdl-jewels-1.1.1.ebuild,v 1.1 2010/11/18 20:04:02 mr_bones_ Exp $ + +EAPI=2 +inherit eutils games + +DESCRIPTION="Swap and match 3 or more jewels in a line in order to score points" +HOMEPAGE="http://www.linuxmotors.com/gljewel/" +SRC_URI="http://www.linuxmotors.com/gljewel/downloads/SDL_jewels-${PV}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="media-libs/libsdl[opengl,video] + virtual/opengl" + +S=${WORKDIR}/SDL_jewels-${PV} + +src_prepare() { + epatch "${FILESDIR}/${P}-Makefile.patch" + + # fix the data dir locations as it looks to be intended to run from src dir + sed -i -e "s|\"data\"|\"${GAMES_DATADIR}/${PN}\"|" sound.c || die + sed -i -e "s|data/bigfont.ppm|${GAMES_DATADIR}/${PN}/bigfont.ppm|" gljewel.c || die + ecvs_clean +} + +src_install() { + dogamesbin gljewel || die + + insinto "${GAMES_DATADIR}/${PN}" + doins -r data/* || die + + dodoc ChangeLog README + + make_desktop_entry gljewel SDL_jewels + prepgamesdirs +} |