summaryrefslogtreecommitdiff
path: root/games-puzzle/twindistress
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /games-puzzle/twindistress
reinit the tree, so we can have metadata
Diffstat (limited to 'games-puzzle/twindistress')
-rw-r--r--games-puzzle/twindistress/Manifest7
-rw-r--r--games-puzzle/twindistress/files/twindistress-1.1.0-ldflags.patch11
-rw-r--r--games-puzzle/twindistress/files/twindistress-1.1.0-warnings.patch61
-rw-r--r--games-puzzle/twindistress/metadata.xml11
-rw-r--r--games-puzzle/twindistress/twindistress-1.1.0.ebuild59
5 files changed, 149 insertions, 0 deletions
diff --git a/games-puzzle/twindistress/Manifest b/games-puzzle/twindistress/Manifest
new file mode 100644
index 000000000000..5d54e1b0c148
--- /dev/null
+++ b/games-puzzle/twindistress/Manifest
@@ -0,0 +1,7 @@
+AUX twindistress-1.1.0-ldflags.patch 372 SHA256 73760cc2d2e0b4a1d9ca3d763d2485e7127386d7139a06413f50012bea951f2f SHA512 5c19ffcfe2e9a451e95ac4d03da20cf54bf46ddc7bd369cc9e6c49a3215f8c39f50632d9e60167389859156c4df35ed7b813e1beb7a884c8ec0198f56a8d9f56 WHIRLPOOL 957c90d6202138accbf05056ea6eef217125db981f5c5e03ddcc8511cfb8a9ef40fb699ed82c71b40c8e15490bff68521275a702c08d8862470c93a82dd0324e
+AUX twindistress-1.1.0-warnings.patch 3342 SHA256 d94d8af1faa83596c43873388846632207a5daaf7b9c28695bf39b44d1c2d884 SHA512 20bb973c6dea47436333f9449c7b924c38744e74b8eed6646062e4a48c74156cba8fd17150f5a4f8dc19de68ee1c394eee8aa0f2f867a72bddbbb32278e9c304 WHIRLPOOL 9b36aae6a0fbc75e2429705405560b01e979cf57b01b7abb95fe713cf7de6e043740ece5bc0d053ab9f14a38e4e0308def4bca780ccd203f06411636ed90733e
+DIST twind-1.1.0.tar.gz 2837845 SHA256 392a09e92862cf8a89a9b8c6f5ed7255c15c7f058a89d889c32f59ed8da73382 SHA512 f1b3be3e5706ce244dd291b6fba2160605593e51b60344521025daf882509e164aa5c201c8d696e56a64d6f3525d16ecd3fd78cc1b86f39f401d4137b615fe8f WHIRLPOOL bd6c54f7d558d7a099c26aaa420908b2cbaecec7244f7e4ed2e3b1703ce7f433af88e70201a856e55e2d9c8644298c4ae7adae91b467f50507e7cf61a9be4a71
+EBUILD twindistress-1.1.0.ebuild 1377 SHA256 adfe889aa53740c342e028f10da200466004e25d3c7335adcb54b2c92ea322c5 SHA512 9782bf13433dbb7bd6a63636597dfb7f95e89cae6b8fe89e4a0f69194583060fafd32f67198da90640373cf3bde17728eeadef1716567d500ec8ed7e93a14412 WHIRLPOOL 4d6575148a1b9b2831a952e229b5f75440011d1d8d50005c81a3d8e8124d8d97d01a25c7db9acb8e84e5cc40ee38c8f6600a5ff49c9bca02781ab5e6b5a3bc49
+MISC ChangeLog 2533 SHA256 0092fb247ee961bfedef1b9ea742bc68370c054d3c09410e5491374ab87906cb SHA512 c16222d71cc516989091ec9045d6b3b982d8a1bcfe3bf8c7de723a79e37c1b606adb27072ddcb8b6b5c710c77f00ee0f809583107ae428c541cdef9daf949fa6 WHIRLPOOL 2f7c027e461c4222d5fece2b7c02278b44b7254711072ff9d43ddaf135e3ae05ec5198909b9c378d85124e624087e39eaeb17098a275124cc845dee73dd0b89f
+MISC ChangeLog-2015 1732 SHA256 fd7c12f0101cb58f5013c3f84d86211ea0495a77f2589eaf32859dbe2d82a32a SHA512 f77cf9e4aab58d7a4be644e8bdcbb5e6b546cbdbb838d36112ff77a13ad8602cbd429ae97d114ec2ab02ecdce5d9fe17eb0268ceeea16d70e00de7bd77ae704b WHIRLPOOL 04ee12615247c5011969de687d929bc23932de898fb9b9254fa90fc244a4981ab4625307b690f87f0ff07cd88d5f8c41b776f869ee897412addd6abbd8c895e6
+MISC metadata.xml 328 SHA256 f552c99d117a6809ea57c4cbae16b96cadee1aea4e9471185e731b21f0e85b0d SHA512 a7244b86047c6854bbec72296e625cc10aefa30a2e901dbc2f15083ab1532dc7b3e5fe91ae344fe8b4f0d1019b6f4c91def98cbeffb8fe4a044cc34cd9b03e38 WHIRLPOOL d0f74d1c10226c6968dc52d2ebf4fb8cfff12650be2bd84307ae0814f3d181cb5efb27e78ec05c6991c25998a53f5e2a81ff71c23c2d57e4976d008cfe5cd416
diff --git a/games-puzzle/twindistress/files/twindistress-1.1.0-ldflags.patch b/games-puzzle/twindistress/files/twindistress-1.1.0-ldflags.patch
new file mode 100644
index 000000000000..0ac589d88368
--- /dev/null
+++ b/games-puzzle/twindistress/files/twindistress-1.1.0-ldflags.patch
@@ -0,0 +1,11 @@
+--- Makefile.old 2010-10-19 09:06:48.000000000 +0200
++++ Makefile 2010-10-19 09:06:59.000000000 +0200
+@@ -50,7 +50,7 @@
+ make twind MIXER_LIB= AUDIOFLAG=NOAUDIO
+
+ twind: twind.o
+- $(CC) twind.o $(LIBS) $(SDL_LIBS) $(MIXER_LIB) -o twind
++ $(CC) $(LDFLAGS) twind.o $(LIBS) $(SDL_LIBS) $(MIXER_LIB) -o twind
+
+ twind.o: twind.c
+ $(CC) $(CFLAGS) $(SDL_CFLAGS) -c twind.c
diff --git a/games-puzzle/twindistress/files/twindistress-1.1.0-warnings.patch b/games-puzzle/twindistress/files/twindistress-1.1.0-warnings.patch
new file mode 100644
index 000000000000..67ee19149ec8
--- /dev/null
+++ b/games-puzzle/twindistress/files/twindistress-1.1.0-warnings.patch
@@ -0,0 +1,61 @@
+diff -ru twind-1.1.0.orig/twind.c twind-1.1.0/twind.c
+--- twind-1.1.0.orig/twind.c 2004-07-15 21:44:50.000000000 -0400
++++ twind-1.1.0/twind.c 2010-10-19 03:32:44.372280497 -0400
+@@ -674,10 +674,10 @@
+ if (event.button.x >= MENULX && event.button.x < MENURX && event.button.y >= starty && event.button.y < (starty + height)) {
+ current_menu_high = (event.button.y - starty) / game.font[font].height;
+ /* re-assign current_menu_high if blank option */
+- if (menu_items[game.menu][current_menu_high] == "")
++ if (*menu_items[game.menu][current_menu_high] == '\0')
+ current_menu_high = game.last_menu_high;
+ if (game.last_menu_high != current_menu_high) {
+- if (menu_items[game.menu][current_menu_high] != "") {
++ if (*menu_items[game.menu][current_menu_high] != '\0') {
+ #ifndef NOAUDIO
+ if (game.audio_enabled) Mix_PlayChannel(MENU_OPTION, game.sound[MENU_OPTION], 0);
+ #endif
+@@ -697,7 +697,7 @@
+ if (event.button.x >= MENULX && event.button.x < MENURX && event.button.y >= starty && event.button.y < (starty + height)) {
+ current_menu_high = (event.button.y - starty) / game.font[font].height;
+ /* make sure the option isn't blank */
+- if (menu_items[game.menu][current_menu_high] != "") {
++ if (*menu_items[game.menu][current_menu_high] != '\0') {
+ #ifndef NOAUDIO
+ if (game.audio_enabled) Mix_PlayChannel(OPTION_CHOICE, game.sound[OPTION_CHOICE], 0);
+ #endif
+@@ -917,7 +917,7 @@
+ #endif
+ current_menu_high--;
+ /* if option blank, go to previous */
+- while (menu_items[game.menu][current_menu_high] == "")
++ while (*menu_items[game.menu][current_menu_high] == '\0')
+ current_menu_high--;
+ /* wrap around to the bottom entry */
+ if (current_menu_high == -1)
+@@ -930,7 +930,7 @@
+ #endif
+ current_menu_high++;
+ /* if option blank, go to next */
+- while (menu_items[game.menu][current_menu_high] == "")
++ while (*menu_items[game.menu][current_menu_high] == '\0')
+ current_menu_high++;
+ /* wrap around to the top entry */
+ if (current_menu_high == game.menu_item_cnt)
+@@ -1536,7 +1536,7 @@
+ if (level_time && game.stop_timer + game.added_time < game.best_time)
+ game.best_time = game.stop_timer + game.added_time;
+ /* subtract a set amount of time after level 11 */
+- if (game.current_level > 11)
++ if (game.current_level >= 11)
+ game.level_time -= 10;
+ else
+ game.level_time = times[level_time];
+@@ -1546,7 +1546,7 @@
+ break;
+ }
+ /* increase time for next level */
+- if (level_time != 12)
++ if (level_time != 10)
+ level_time++;
+ }
+ if (game.exit_game != NEW_GAME) {
diff --git a/games-puzzle/twindistress/metadata.xml b/games-puzzle/twindistress/metadata.xml
new file mode 100644
index 000000000000..b3a48cd60dea
--- /dev/null
+++ b/games-puzzle/twindistress/metadata.xml
@@ -0,0 +1,11 @@
+<?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>
+ <upstream>
+ <remote-id type="sourceforge">twind</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-puzzle/twindistress/twindistress-1.1.0.ebuild b/games-puzzle/twindistress/twindistress-1.1.0.ebuild
new file mode 100644
index 000000000000..ef170aadb82c
--- /dev/null
+++ b/games-puzzle/twindistress/twindistress-1.1.0.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+MY_P="twind-${PV}"
+DESCRIPTION="Match and remove all of the blocks before time runs out"
+HOMEPAGE="http://twind.sourceforge.net/"
+SRC_URI="mirror://sourceforge/twind/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl[video]
+ media-libs/sdl-mixer
+ media-libs/sdl-image[png]"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ sed -i \
+ -e '/^CC/d' \
+ -e "/^CFLAGS/s:-g:${CFLAGS}:" \
+ -e "/^DATA_PREFIX/s:/.*$:${GAMES_DATADIR}/${PN}/:" \
+ -e "/^HIGH_SCORE_PREFIX/s:/.*$:${GAMES_STATEDIR}/${PN}/:" \
+ Makefile || die "sed failed"
+ epatch \
+ "${FILESDIR}"/${P}-ldflags.patch \
+ "${FILESDIR}"/${P}-warnings.patch
+}
+
+src_install() {
+ dogamesbin twind
+
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins -r graphics music sound
+
+ doicon graphics/twind.png
+ make_desktop_entry twind "Twin Distress"
+
+ dodoc AUTHORS ChangeLog CREDITS NEWS README TODO
+
+ dodir "${GAMES_STATEDIR}/${PN}"
+ touch "${D}/${GAMES_STATEDIR}/${PN}/twind.hscr"
+ fperms 660 "${GAMES_STATEDIR}/${PN}/twind.hscr"
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ if ! has_version "media-libs/sdl-mixer[vorbis]" ; then
+ ewarn "Music support will be disabled since sdl-mixer"
+ ewarn "wasn't built with USE=vorbis"
+ fi
+}