diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-puzzle/sdl-jewels |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-puzzle/sdl-jewels')
-rw-r--r-- | games-puzzle/sdl-jewels/Manifest | 6 | ||||
-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 | 8 | ||||
-rw-r--r-- | games-puzzle/sdl-jewels/sdl-jewels-1.1.1.ebuild | 42 |
4 files changed, 73 insertions, 0 deletions
diff --git a/games-puzzle/sdl-jewels/Manifest b/games-puzzle/sdl-jewels/Manifest new file mode 100644 index 000000000000..6ff29422b257 --- /dev/null +++ b/games-puzzle/sdl-jewels/Manifest @@ -0,0 +1,6 @@ +AUX sdl-jewels-1.1.1-Makefile.patch 488 SHA256 8a5f03da4997d663b488818896b500f8351ddb285d038c198feb6851c83b44d8 SHA512 9d83dea588f699ef09f89ed320bece1bb001ee0a1bfa4d3e4d4b8c679af9b2028d535469c078f387564b37a16ee0e76f3e9cf20a4248784bf322ac902aa03f26 WHIRLPOOL 98e8f77ccbd9741bb9bfe28d31ac3fa2af4e6c4234724e350acb25e26dd0e6a21b426c4ef8f6d94d187b585f46fa8c8bbdc507fe70263605ad32dacb29a354b9 +DIST SDL_jewels-1.1.1.tgz 195366 SHA256 c9a40b7e18fabb03e4065e656bc2c30f595103bf20dc74a10847c3f3aa138ee7 SHA512 720f1d89384bf267e8f5441efd70fcf94bfc89ddbd0ff90b1dafc6381e83e005281fcde256ee4cd0645f2832cf9c22aed487c105d7d9cf39711c5752e12763c4 WHIRLPOOL 8ce6f3409a50a2ff673e545f1333f7f12d6b37bd6020f22d004072d0266be3936e98e0212925457f5ede4adb7e0f2346bc5c8a00b3c8e74b3f4b61cb397f78f1 +EBUILD sdl-jewels-1.1.1.ebuild 995 SHA256 02535733d49befe47f4e7d204e941135c65a4577d6360c45ab4afb55ede47aa9 SHA512 377e48fe2e33dffe630e227efce8fc168f6112c46eb2fe7a4638de3317e24124e3d257a1863d49379d3ed6a0851b5ab408d875619d6e8e700013d781e76dcbfb WHIRLPOOL dc81bc1f48527c9507439f32108a1a53ade0d50a001ec2ba8ac5b4615ef7aceb4cc7003e61a1c4369eac39fdfa835083bc0a2b693adf30dcc3712db8f11b31b8 +MISC ChangeLog 2482 SHA256 ccde2f4a0c17d8ce1faf8250acefe0d46b34dc59717d35bbe9a6b6b43727aa0d SHA512 aca28ca6e9ec7e53f94ba0b132c0eb74fd5c113ed1ac8408dd7e09aef2dbc1949b0a9db4e9ab54e9328d98e6e6b2c9f9b0e15d48ca17516e77ffce80e2397abf WHIRLPOOL 1799858812dab939b8ac800a54dc7eef651f44d853275606aa70dfdb8e700756b112819ed40e2a8c345f3765cb6faf6b878ce4010699d53472ca887ff2e67239 +MISC ChangeLog-2015 758 SHA256 ad30ef6fe26b8700beedbb1a8dc58f4bfdf40f2c4c06f5816997e099b64ecdf3 SHA512 c3de28c806595017f73bec6e7e08be1f68159e8828718b1949889c48ade0373d4a09002d174e8249b33b64f0c32913a83a7c17f971ef515f640f4dccab7fc0cc WHIRLPOOL b3a09cb46cecacf36634d9f6e29ef2eef4a17461e4db1869e4cc006fe44deacc9009b66d1d0f3d627466d489e7128a3eae57255ecc7ac14c9daf6fb0658b4b99 +MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088 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..78274e0fa550 --- /dev/null +++ b/games-puzzle/sdl-jewels/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> +</maintainer> +</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..eae86f8bc780 --- /dev/null +++ b/games-puzzle/sdl-jewels/sdl-jewels-1.1.1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +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="" +RESTRICT="test" + +DEPEND="media-libs/libsdl[opengl,video] + virtual/opengl" +RDEPEND="${DEPEND}" + +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 + + insinto "${GAMES_DATADIR}/${PN}" + doins -r data/* + + dodoc ChangeLog README + + make_desktop_entry gljewel SDL_jewels + prepgamesdirs +} |