summaryrefslogtreecommitdiff
path: root/games-rpg/gwiz
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-rpg/gwiz
reinit the tree, so we can have metadata
Diffstat (limited to 'games-rpg/gwiz')
-rw-r--r--games-rpg/gwiz/Manifest7
-rw-r--r--games-rpg/gwiz/files/gwiz-0.8-buffer.patch23
-rw-r--r--games-rpg/gwiz/gwiz-0.8-r1.ebuild36
-rw-r--r--games-rpg/gwiz/gwiz-0.8.ebuild31
-rw-r--r--games-rpg/gwiz/metadata.xml8
5 files changed, 105 insertions, 0 deletions
diff --git a/games-rpg/gwiz/Manifest b/games-rpg/gwiz/Manifest
new file mode 100644
index 000000000000..f524ba9b13cf
--- /dev/null
+++ b/games-rpg/gwiz/Manifest
@@ -0,0 +1,7 @@
+AUX gwiz-0.8-buffer.patch 653 SHA256 988047124e5b9b090879514b2316f89203c57574a576c271673657867c9e3d04 SHA512 127bf8b442f437fa1ad373f203aaa388f28e59f570257a6ea44906997ed069c379f7b96879c95a198e420a86653331e73a0d2f54fbb55731383f22f274d5b4ba WHIRLPOOL fec294bd4d2425aee9016180969fa14d803467792c2c0fd9a1df9e16ad2ea4fd2149844f426ece8c373a239c0a378bb31e4e9a5f035559f942fb3b8c7b93028b
+DIST gwiz-0.8.tar.bz2 1141667 SHA256 8b19a5523460068a0e3ed4d9b7ec51de0dfb28418d75ccb00afcd4e13eae4f08 SHA512 3c18cc7e905dd87eab7dbf332b985600bbcc8c2992fbc79d992fb0f00c3095c502f416166f0e3320f18b9e011c26675c42e79375f44225b61aba415509837f20 WHIRLPOOL 2831b664a7b2083a477e80873f31fc6b3d07c60f6a9b1ec27068b32774c69fac03c0e5bcaf2bbf02bd03e8fcfa1c401d5036bbc43309dd4d7c8e454c57af66dd
+EBUILD gwiz-0.8-r1.ebuild 774 SHA256 642a09e0da918e9bb61ea4cedc09783ddc0d39fd175e1ea27b5e0471c7d15ff2 SHA512 9e305c35a0d2efa22c409ffc4898859624644cd4a34a897ba8dcadd640653e5160fd0c4ae95f6efe6c42fe2e890bd9b56e9f4514d39e0fc4f96c98de21b67626 WHIRLPOOL 2d61f17c9f72f82c643affc3538452fc51ba9844e5abd1b6c17d7801695b2d6c474c659c93c36f477ce78b5ccd0cbe043682d942d070579b6513a1ceaa84384a
+EBUILD gwiz-0.8.ebuild 762 SHA256 0eb3884e02a0a53ffc9ef7e95b92e922a40fa860663b824c5e9a267636810472 SHA512 4262f0c0157795f382b3bce93849469b30ac5b5ac38f4fe06500fa15a9871b9761e9803e44b58aa3ee482c789bb88a59635c0497ecbe96e145aa1892ab041aca WHIRLPOOL ce2d0c709dd1f014ce66d5d7fedc143d9d6235cd9e1ebd9a8d615581ea74c6c7d210b79081ca848dc753b4637970859793ed9abe786f4cc7a3dfe02efd77dc6e
+MISC ChangeLog 2858 SHA256 35f9334364d8fb23bf92f464f8b243c90b3097b8d62edaa14179c3b06a9869b5 SHA512 034b0352f11f8a3d470f7e8de14b752fc69ca6fc7b4c072920cf2ea56d73386add0796e5c9d38b86f5dea9f1e444334e5128cfca1e4c15bb9665ab92684340cd WHIRLPOOL b1c9211c05616df16a6d4056aca4a92ec8efaec1f858ffe9f4828c3c47e5d1c06453c0a220ebdedaf1352f9268011675d053a6460ff9f7927b350c84caea93ba
+MISC ChangeLog-2015 1740 SHA256 7caf503d421ed6685c829e28aa9ee37c4345b15622ba03b7a3dd20a7ce6e8512 SHA512 65dc05c105d13b0f7ddfc622ec4bc108ba8468063b0fc67a5106d9ebe2d03d22f0a138fff36cc3e397f43723362757f2286c09bc40b38f255f040e3070af128c WHIRLPOOL c8c335c492aa8bb307086ac27288aa6a003f4f329e02d2bac3fc0771e977d693fab73aaff5e69387ff1d3a02745fd9ec0ea92a52c03c4abce63d7ac9b5d576fa
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-rpg/gwiz/files/gwiz-0.8-buffer.patch b/games-rpg/gwiz/files/gwiz-0.8-buffer.patch
new file mode 100644
index 000000000000..44ee9aec15fb
--- /dev/null
+++ b/games-rpg/gwiz/files/gwiz-0.8-buffer.patch
@@ -0,0 +1,23 @@
+--- a/src/equip.c
++++ b/src/equip.c
+@@ -120,7 +120,7 @@
+ return (i);
+
+ /* if we get this far, there are no equippable items before the current */
+- for (i = 8; i > offset; i--)
++ for (i = 7; i > offset; i--)
+ if (pawn->item[i].usage & USAGE_EQUIPPABLE)
+ return (i);
+ return (-1);
+--- a/src/shop.c
++++ b/src/shop.c
+@@ -290,8 +290,7 @@
+
+ SDL_BlitSurface (name, NULL, area, &dest);
+
+- snprintf (price, sizeof(char)*8, "%d", pawn->item[i].sellfor);
+- price[9] = '\0';
++ snprintf (price, sizeof(price), "%d", pawn->item[i].sellfor);
+ profit = GwizRenderText (price);
+ dest.x = area->w - profit->w;
+ dest.w = profit->w;
diff --git a/games-rpg/gwiz/gwiz-0.8-r1.ebuild b/games-rpg/gwiz/gwiz-0.8-r1.ebuild
new file mode 100644
index 000000000000..f7a462a9a302
--- /dev/null
+++ b/games-rpg/gwiz/gwiz-0.8-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils flag-o-matic
+
+DESCRIPTION="clone of old-school Wizardry(tm) games by SirTech"
+HOMEPAGE="http://icculus.org/gwiz/"
+SRC_URI="http://icculus.org/gwiz/${P}.tar.bz2"
+
+KEYWORDS="~alpha ~amd64 ~x86"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE=""
+
+DEPEND=">=media-libs/libsdl-1.2.3[joystick,video]
+ >=media-libs/sdl-image-1.2.1-r1[png]
+ >=media-libs/sdl-ttf-2.0.4"
+RDEPEND=${DEPEND}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-buffer.patch
+)
+
+src_prepare() {
+ default
+
+ append-cflags -std=gnu89 # build with gcc5 (bug #572532)
+}
+
+src_install() {
+ DOCS="AUTHORS ChangeLog README doc/HOWTO-PLAY" \
+ default
+ newicon pixmaps/gwiz_icon.xpm ${PN}.xpm
+ make_desktop_entry gwiz Gwiz
+}
diff --git a/games-rpg/gwiz/gwiz-0.8.ebuild b/games-rpg/gwiz/gwiz-0.8.ebuild
new file mode 100644
index 000000000000..ddd60d95f866
--- /dev/null
+++ b/games-rpg/gwiz/gwiz-0.8.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils flag-o-matic games
+
+DESCRIPTION="clone of old-school Wizardry(tm) games by SirTech"
+HOMEPAGE="http://icculus.org/gwiz/"
+SRC_URI="http://icculus.org/gwiz/${P}.tar.bz2"
+
+KEYWORDS="~alpha amd64 x86"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE=""
+
+DEPEND=">=media-libs/libsdl-1.2.3[joystick,video]
+ >=media-libs/sdl-image-1.2.1-r1[png]
+ >=media-libs/sdl-ttf-2.0.4"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-buffer.patch
+ append-cflags -std=gnu89 # build with gcc5 (bug #572532)
+}
+
+src_install() {
+ DOCS="AUTHORS ChangeLog README doc/HOWTO-PLAY" \
+ default
+ newicon pixmaps/gwiz_icon.xpm ${PN}.xpm
+ make_desktop_entry gwiz Gwiz
+}
diff --git a/games-rpg/gwiz/metadata.xml b/games-rpg/gwiz/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-rpg/gwiz/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>