diff options
author | Pacho Ramos <pacho@gentoo.org> | 2018-05-01 16:14:42 +0200 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2018-05-01 21:34:14 +0200 |
commit | 9afee42d9280d11ef54e98f387200b7e1a1cf177 (patch) | |
tree | d9ba57cfcff05af3b8a6ed2fbc48c1c7adb17746 /games-puzzle/sdl-jewels | |
parent | games-puzzle/scramble: Drop old (diff) | |
download | gentoo-9afee42d9280d11ef54e98f387200b7e1a1cf177.tar.gz gentoo-9afee42d9280d11ef54e98f387200b7e1a1cf177.tar.bz2 gentoo-9afee42d9280d11ef54e98f387200b7e1a1cf177.zip |
games-puzzle/sdl-jewels: Stop using games.eclass
Package-Manager: Portage-2.3.31, Repoman-2.3.9
Diffstat (limited to 'games-puzzle/sdl-jewels')
-rw-r--r-- | games-puzzle/sdl-jewels/sdl-jewels-1.1.1-r1.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/games-puzzle/sdl-jewels/sdl-jewels-1.1.1-r1.ebuild b/games-puzzle/sdl-jewels/sdl-jewels-1.1.1-r1.ebuild new file mode 100644 index 000000000000..e9f6f0422ae1 --- /dev/null +++ b/games-puzzle/sdl-jewels/sdl-jewels-1.1.1-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit desktop vcs-clean + +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="" +RESTRICT="test" + +RDEPEND=" + media-libs/libsdl[opengl,video] + virtual/opengl +" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/SDL_jewels-${PV}" + +src_prepare() { + default + eapply "${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\"|\"/usr/share/${PN}\"|" sound.c || die + sed -i -e "s|data/bigfont.ppm|/usr/share/${PN}/bigfont.ppm|" gljewel.c || die + ecvs_clean +} + +src_install() { + dobin gljewel + + insinto "/usr/share/${PN}" + doins -r data/* + + einstalldocs + make_desktop_entry gljewel SDL_jewels +} |