diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2010-11-18 20:04:02 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2010-11-18 20:04:02 +0000 |
commit | e7eb255aa3c70499a30c17f9fa2a096477dc5922 (patch) | |
tree | b971e40fbd72fa8d349c66742e16a1508d9b8fe6 /games-puzzle/sdl-jewels | |
parent | Bump, lots of improvements and features added thanks to wltjr (diff) | |
download | gentoo-2-e7eb255aa3c70499a30c17f9fa2a096477dc5922.tar.gz gentoo-2-e7eb255aa3c70499a30c17f9fa2a096477dc5922.tar.bz2 gentoo-2-e7eb255aa3c70499a30c17f9fa2a096477dc5922.zip |
Initial commit - ebuild submitted by Gavin Pryke via bug #345971
(Portage version: 2.1.8.3/cvs/Linux i686)
Diffstat (limited to 'games-puzzle/sdl-jewels')
-rw-r--r-- | games-puzzle/sdl-jewels/ChangeLog | 11 | ||||
-rw-r--r-- | games-puzzle/sdl-jewels/files/sdl-jewels-1.1.1-Makefile.patch | 17 | ||||
-rw-r--r-- | games-puzzle/sdl-jewels/metadata.xml | 5 | ||||
-rw-r--r-- | games-puzzle/sdl-jewels/sdl-jewels-1.1.1.ebuild | 41 |
4 files changed, 74 insertions, 0 deletions
diff --git a/games-puzzle/sdl-jewels/ChangeLog b/games-puzzle/sdl-jewels/ChangeLog new file mode 100644 index 000000000000..aa530ffcadcf --- /dev/null +++ b/games-puzzle/sdl-jewels/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for games-puzzle/sdl-jewels +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-puzzle/sdl-jewels/ChangeLog,v 1.1 2010/11/18 20:04:02 mr_bones_ Exp $ + +*sdl-jewels-1.1.1 (18 Nov 2010) + + 18 Nov 2010; Michael Sterrett <mr_bones_@gentoo.org> + +sdl-jewels-1.1.1.ebuild, +files/sdl-jewels-1.1.1-Makefile.patch, + +metadata.xml: + Initial commit - ebuild submitted by Gavin Pryke via bug #345971 + diff --git a/games-puzzle/sdl-jewels/files/sdl-jewels-1.1.1-Makefile.patch b/games-puzzle/sdl-jewels/files/sdl-jewels-1.1.1-Makefile.patch new file mode 100644 index 000000000000..ba27fd5447bf --- /dev/null +++ b/games-puzzle/sdl-jewels/files/sdl-jewels-1.1.1-Makefile.patch @@ -0,0 +1,17 @@ +--- SDL_jewels-1.1.1/Makefile.old 2010-11-13 00:46:47.196000082 +0000 ++++ SDL_jewels-1.1.1/Makefile 2010-11-13 01:45:14.516000087 +0000 +@@ -1,11 +1,12 @@ + EXE = gljewel + +-CFLAGS = -O2 -Wall $(shell sdl-config --cflags) +-LDFLAGS = $(shell sdl-config --libs) -lGL -lm ++CFLAGS += -Wall $(shell sdl-config --cflags) ++LIBS = $(shell sdl-config --libs) -lGL -lm + + OBJS = $(EXE).o matrix.o sound.o + + $(EXE): $(OBJS) ++ $(CC) $(LDFLAGS) $^ $(LIBS) -o $@ + + $(EXE).o: $(EXE).c matrix.h misc.h + diff --git a/games-puzzle/sdl-jewels/metadata.xml b/games-puzzle/sdl-jewels/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-puzzle/sdl-jewels/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> 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 +} |