summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2013-02-13 21:08:37 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2013-02-13 21:08:37 +0000
commit3e4a2eb658be96becb7cd8f3de90e5a83db9322a (patch)
treef757b1699fc3828f087083ce8d919aaa5c0b322e /games-rpg/gwiz
parentRemove workaround and depend on fix in qt-core (diff)
downloadhistorical-3e4a2eb658be96becb7cd8f3de90e5a83db9322a.tar.gz
historical-3e4a2eb658be96becb7cd8f3de90e5a83db9322a.tar.bz2
historical-3e4a2eb658be96becb7cd8f3de90e5a83db9322a.zip
EAPI=5; compile warning patch
Package-Manager: portage-2.1.11.50/cvs/Linux x86_64
Diffstat (limited to 'games-rpg/gwiz')
-rw-r--r--games-rpg/gwiz/ChangeLog8
-rw-r--r--games-rpg/gwiz/Manifest19
-rw-r--r--games-rpg/gwiz/files/gwiz-0.8-buffer.patch23
-rw-r--r--games-rpg/gwiz/gwiz-0.8.ebuild23
4 files changed, 45 insertions, 28 deletions
diff --git a/games-rpg/gwiz/ChangeLog b/games-rpg/gwiz/ChangeLog
index 52a4478891c3..9be4e9299c47 100644
--- a/games-rpg/gwiz/ChangeLog
+++ b/games-rpg/gwiz/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for games-rpg/gwiz
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-rpg/gwiz/ChangeLog,v 1.9 2011/07/27 17:56:13 pacho Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/gwiz/ChangeLog,v 1.10 2013/02/13 21:08:32 mr_bones_ Exp $
+
+ 13 Feb 2013; Michael Sterrett <mr_bones_@gentoo.org>
+ +files/gwiz-0.8-buffer.patch, gwiz-0.8.ebuild:
+ EAPI=5; compile warning patch
27 Jul 2011; Pacho Ramos <pacho@gentoo.org> gwiz-0.8.ebuild:
Install a menu entry, bug #160221.
diff --git a/games-rpg/gwiz/Manifest b/games-rpg/gwiz/Manifest
index 662a4b1a0a16..a182680cd821 100644
--- a/games-rpg/gwiz/Manifest
+++ b/games-rpg/gwiz/Manifest
@@ -1,14 +1,5 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-DIST gwiz-0.8.tar.bz2 1141667 RMD160 d7ef2122e0d52283a49e0c16000e7a6376e03aae SHA1 facfecb76b75ed6e52fb1158d8f513e50fedf583 SHA256 8b19a5523460068a0e3ed4d9b7ec51de0dfb28418d75ccb00afcd4e13eae4f08
-EBUILD gwiz-0.8.ebuild 743 RMD160 aa513bdcdc2bbf54143d459841590503fa698c09 SHA1 5a8a71a76c44716523a386de54ac727c1a9bbdab SHA256 b0c273f61d31bafed1323b9f41ecb19c4deee7d914b02cf32b34e64c9a34f6ad
-MISC ChangeLog 1322 RMD160 287ffd3182aca6caa14b642ae2213a9bac8a8956 SHA1 9cd1aaa7b892a0d75559afda6656309a7d636623 SHA256 c93fae7a4c3c9b3a3a54795c72bf63a4653245591cd25efa5353288944e7ac47
-MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.17 (GNU/Linux)
-
-iEYEARECAAYFAk4wUUIACgkQCaWpQKGI+9QI6ACfaALb2BfC69OEXHJtx7dO5st5
-39sAoIc/JdlKUwu6b5xRDGui4i+AvbFc
-=R29u
------END PGP SIGNATURE-----
+AUX gwiz-0.8-buffer.patch 655 SHA256 0690f87834e1252ec7f36752abd66ec5811f7b05e34d11d42592a233cec5410d SHA512 5582b22d51fab09f26ff588750d96886db367a0cbe93fe4eb09966f6e17174106708f9f9e0b95dabb45869855a9e0e72f0186c5f106c3bbe9350efe8237fae15 WHIRLPOOL e475b312bcd19e757241afc7c78f2786d77143c7e0da1e93af97c0d92ad7811816a25f8278f9ccfcab62079f9d7f93fc2b139f7f627353bd6e6144a31a80f3ed
+DIST gwiz-0.8.tar.bz2 1141667 SHA256 8b19a5523460068a0e3ed4d9b7ec51de0dfb28418d75ccb00afcd4e13eae4f08 SHA512 3c18cc7e905dd87eab7dbf332b985600bbcc8c2992fbc79d992fb0f00c3095c502f416166f0e3320f18b9e011c26675c42e79375f44225b61aba415509837f20 WHIRLPOOL 2831b664a7b2083a477e80873f31fc6b3d07c60f6a9b1ec27068b32774c69fac03c0e5bcaf2bbf02bd03e8fcfa1c401d5036bbc43309dd4d7c8e454c57af66dd
+EBUILD gwiz-0.8.ebuild 788 SHA256 19ba0ca92d8e5d84cd4d316e99fa8677c0e4a591c878df7bb229aef226f907b7 SHA512 8416f6e7b3d1ebb4c9687910913c7c2b1b42cfd6b44f164cb2f857897e2343cc28bd99f8e9338cc531e1f4db202783fe3ce6ee5a6a4f90a14413f3cb37dafab5 WHIRLPOOL f11cff2828035e5f724670384b4a1a6c29fd45c081d7438afac68ee91f97bd843f5fe48af30bd28656016ecd9057aeea30a81c0698c9a07ca2e139191264776c
+MISC ChangeLog 1464 SHA256 5d157f6b501f9fa0dbffcc63264ed3d7ad309d4161520c0a899cb8ffcd024e25 SHA512 21686b46240a5410355b05f7a9a38e3b560f80f7911025a6af94539b2ebd221f4d44b037867ea3569c95ce5e9b15206fd59e7247a1adede3a0f0a4edee3a6dc0 WHIRLPOOL 4859cc1cdf32a8da06c9031b2fe374fb97376225c2868bcf7f940cd689bbf5eab5da6c99a4a9b54324b485f90bf39120cf7e44e7fe303c7a198b0d5ce1ad9504
+MISC metadata.xml 158 SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 SHA512 d954564236b67b6ab97846b73f74e715e8f1bec2dba6595e9a5046c2e8c3b93f4879c293f9d1d02d99a533bee56156dae3f31a485697128c51af14cdbfdada8a WHIRLPOOL d03e7293d09d794d61c095a423f945b3644355a247f270a73ca8d30b4dfe9c98244297536bfd1a4bd6c14794aa1152eca20fd83bfdf3e1e74d4f676152d35ada
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..7c9eb02cf503
--- /dev/null
+++ b/games-rpg/gwiz/files/gwiz-0.8-buffer.patch
@@ -0,0 +1,23 @@
+--- src/equip.c.orig
++++ 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);
+--- src/shop.c.orig
++++ 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.ebuild b/games-rpg/gwiz/gwiz-0.8.ebuild
index a1ce1962db70..33b2cf59e593 100644
--- a/games-rpg/gwiz/gwiz-0.8.ebuild
+++ b/games-rpg/gwiz/gwiz-0.8.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-rpg/gwiz/gwiz-0.8.ebuild,v 1.10 2011/07/27 17:56:13 pacho Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/gwiz/gwiz-0.8.ebuild,v 1.11 2013/02/13 21:08:32 mr_bones_ Exp $
-inherit eutils
+EAPI=5
+inherit eutils games
DESCRIPTION="clone of old-school Wizardry(tm) games by SirTech"
HOMEPAGE="http://icculus.org/gwiz/"
@@ -13,18 +14,16 @@ SLOT="0"
LICENSE="GPL-2"
IUSE=""
-DEPEND=">=media-libs/libsdl-1.2.3
- >=media-libs/sdl-image-1.2.1-r1
+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_compile() {
- econf || die
- emake || die
-}
+PATCHES=( "${FILESDIR}"/${P}-buffer.patch )
src_install() {
- einstall || die
- doicon pixmaps/gwiz_icon.xpm
- make_desktop_entry gwiz Gwiz gwiz_icon.xpm
+ default
dodoc AUTHORS ChangeLog README doc/HOWTO-PLAY
+ newicon pixmaps/gwiz_icon.xpm ${PN}.xpm
+ make_desktop_entry gwiz Gwiz
}