summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2011-01-20 19:01:26 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2011-01-20 19:01:26 +0000
commit53c84d487cbcbd62f4394b902afbd8173252fa72 (patch)
tree7781ebb4598dc73989c37fd60f54622f3e29543c /games-strategy/hedgewars
parent[sys-cluster/ceph] Version bump. Thanks to Alexys Jacob (diff)
downloadhistorical-53c84d487cbcbd62f4394b902afbd8173252fa72.tar.gz
historical-53c84d487cbcbd62f4394b902afbd8173252fa72.tar.bz2
historical-53c84d487cbcbd62f4394b902afbd8173252fa72.zip
version bump - bug #350244 with upstream patches rolled by bugs@m8y.org
Package-Manager: portage-2.1.9.25/cvs/Linux i686
Diffstat (limited to 'games-strategy/hedgewars')
-rw-r--r--games-strategy/hedgewars/ChangeLog11
-rw-r--r--games-strategy/hedgewars/Manifest6
-rw-r--r--games-strategy/hedgewars/files/hedgewars-0.9.15-fixes.patch105
-rw-r--r--games-strategy/hedgewars/files/hedgewars-0.9.15-lua.patch18
-rw-r--r--games-strategy/hedgewars/hedgewars-0.9.15.ebuild56
5 files changed, 193 insertions, 3 deletions
diff --git a/games-strategy/hedgewars/ChangeLog b/games-strategy/hedgewars/ChangeLog
index 5545d4ba84d1..cd432c74e098 100644
--- a/games-strategy/hedgewars/ChangeLog
+++ b/games-strategy/hedgewars/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for games-strategy/hedgewars
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/hedgewars/ChangeLog,v 1.26 2010/11/15 19:56:46 mr_bones_ Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/hedgewars/ChangeLog,v 1.27 2011/01/20 19:01:26 mr_bones_ Exp $
+
+*hedgewars-0.9.15 (20 Jan 2011)
+
+ 20 Jan 2011; Michael Sterrett <mr_bones_@gentoo.org>
+ +hedgewars-0.9.15.ebuild, +files/hedgewars-0.9.15-fixes.patch,
+ +files/hedgewars-0.9.15-lua.patch:
+ version bump - bug #350244 with upstream patches rolled by bugs@m8y.org
*hedgewars-0.9.14.1 (15 Nov 2010)
diff --git a/games-strategy/hedgewars/Manifest b/games-strategy/hedgewars/Manifest
index 260fdfd057e1..7c7d76a69412 100644
--- a/games-strategy/hedgewars/Manifest
+++ b/games-strategy/hedgewars/Manifest
@@ -1,6 +1,10 @@
+AUX hedgewars-0.9.15-fixes.patch 4946 RMD160 3a53d3780dd5ec1da03198365cbfdddf9c2be4a0 SHA1 b51ce7c941b491c7bcef89672c1ab559f8939c77 SHA256 35572d5fb257c51c9ae159ca339b4e1c8eb51fdbdd3e070f7bb69d80ff5af75d
+AUX hedgewars-0.9.15-lua.patch 906 RMD160 8e4de378a260a90b156884d9b7d509261e31ec3d SHA1 31af7b4fe89bf061d884740fb68b561765dccf68 SHA256 725630910194a4c0e1f9803503a792aaf2c2a8d7f0427b1e35fa3a27c0de8376
DIST hedgewars-src-0.9.11.tar.bz2 67130617 RMD160 064f952bd756f4ba7c6ab22a6ec53a98ac585949 SHA1 4df31f0fa7453b63294a9d8b4883e5b3b9016358 SHA256 baae038d6186b6c767452eac4b17afb87b8d056558d289fd123847380760896e
DIST hedgewars-src-0.9.14.1.tar.bz2 123050804 RMD160 dc068d131aa558999a5c30d127c575462ab9a50a SHA1 b957bf231e767a2dc0805f261a93680c72589ab2 SHA256 6fcfbe5f78fb280ae180eea9f15198b8faf677e0ca6e66c0951f60c75f5d0fac
+DIST hedgewars-src-0.9.15.tar.bz2 133509451 RMD160 10d86a0f78eae0dd117da7d8c3e84c215eccd3b6 SHA1 c6e8fb136ff450a7f36ad2dca3b0963373dd003b SHA256 b9ebb2e7a55c6d9c9c16f65165d3646262a2e48d1e5c2673fc45eb75fe2fb942
EBUILD hedgewars-0.9.11.ebuild 1361 RMD160 8ec7805af0691be5fed866b800834143f8a897ad SHA1 02886c7b314467fe453fed6966c4255676387979 SHA256 33d12ae86517c86b2e8d39baa8e5b131417802c1ce37dfd875e319d0bd55f7c8
EBUILD hedgewars-0.9.14.1.ebuild 1393 RMD160 d7458d9e6edbbf79ddaa787a94922188051ada05 SHA1 3bd812eb7f3dc89da0ec2683b65d13b26d29c22a SHA256 de2f8c55eb13093b9d3ecb2b0df05bd52ee6f782b1ae496361ab5d8b31fe56a0
-MISC ChangeLog 3775 RMD160 8809ff8ba6dfd4c1f769275ed7659c1c44da1825 SHA1 37df6ed4198736f557a78d9847e5683fc7dc25e4 SHA256 47caae5fb94dd6385a984ee5d44b96d49ebef39f182615d61ae424d033dcde7d
+EBUILD hedgewars-0.9.15.ebuild 1477 RMD160 d48237751baa7e06b9491aa2902802eb41532261 SHA1 c5ead29dd88812d3e39ca762976889432763e350 SHA256 bc668d313b21e005ad82a125050dfc2ef956677651baa000769bae879cc1fa0d
+MISC ChangeLog 4040 RMD160 baf057f08495397952c216f320c1cf8d3f33852c SHA1 307d70622eb4c2de5111ac98e9b6d0a6cc4a1146 SHA256 6a77577737e07a78b4563b6e0ab80f01c8695afc0ab0f4576e35696326050299
MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3
diff --git a/games-strategy/hedgewars/files/hedgewars-0.9.15-fixes.patch b/games-strategy/hedgewars/files/hedgewars-0.9.15-fixes.patch
new file mode 100644
index 000000000000..39ae7294fbb0
--- /dev/null
+++ b/games-strategy/hedgewars/files/hedgewars-0.9.15-fixes.patch
@@ -0,0 +1,105 @@
+diff -r bd74fd83929a hedgewars/uGears.pas
+--- a/hedgewars/uGears.pas Tue Dec 28 10:31:48 2010 +0100
++++ b/hedgewars/uGears.pas Thu Jan 06 10:11:34 2011 -0500
+@@ -1830,7 +1830,7 @@
+ if (x < 4) and (TeamsArray[t] <> nil) then
+ begin
+ // if team matches current hedgehog team, default to current hedgehog
+- if (i = 0) and (CurrentHedgehog^.Team = TeamsArray[t]) then hh:= CurrentHedgehog
++ if (i = 0) and (CurrentHedgehog <> nil) and (CurrentHedgehog^.Team = TeamsArray[t]) then hh:= CurrentHedgehog
+ else
+ begin
+ // otherwise use the first living hog or the hog amongs the remaining ones indicated by i
+@@ -1847,12 +1847,15 @@
+ inc(j)
+ end
+ end;
+- if hh <> nil then Gear:= AddVisualGear(0, 0, vgtSpeechBubble);
+- if Gear <> nil then
++ if hh <> nil then
+ begin
+- Gear^.Hedgehog:= hh;
+- Gear^.Text:= text;
+- Gear^.FrameTicks:= x
++ Gear:= AddVisualGear(0, 0, vgtSpeechBubble);
++ if Gear <> nil then
++ begin
++ Gear^.Hedgehog:= hh;
++ Gear^.Text:= text;
++ Gear^.FrameTicks:= x
++ end
+ end
+ //else ParseCommand('say ' + text, true)
+ end
+diff -r bd74fd83929a hedgewars/uGearsRender.pas
+--- a/hedgewars/uGearsRender.pas Tue Dec 28 10:31:48 2010 +0100
++++ b/hedgewars/uGearsRender.pas Thu Jan 06 10:11:34 2011 -0500
+@@ -186,7 +186,7 @@
+ if (Gear^.State and gstHHDeath) <> 0 then
+ begin
+ DrawSprite(sprHHDeath, ox - 16, oy - 26, Gear^.Pos);
+- Tint(HH^.Team^.Clan^.Color);
++ Tint(HH^.Team^.Clan^.Color shl 8 or $FF);
+ DrawSprite(sprHHDeath, ox - 16, oy - 26, Gear^.Pos + 8);
+ Tint($FF, $FF, $FF, $FF);
+ exit
+@@ -353,7 +353,7 @@
+ i*DxDy2Angle(CurAmmoGear^.dY, CurAmmoGear^.dX) + hAngle);
+ if HatTex^.w > 64 then
+ begin
+- Tint(HH^.Team^.Clan^.Color);
++ Tint(HH^.Team^.Clan^.Color shl 8 or $FF);
+ DrawRotatedTextureF(HatTex, 1.0, -1.0, -6.0, ox, oy, 32, i, 32, 32,
+ i*DxDy2Angle(CurAmmoGear^.dY, CurAmmoGear^.dX) + hAngle);
+ Tint($FF, $FF, $FF, $FF)
+@@ -383,7 +383,7 @@
+ 32);
+ if HatTex^.w > 64 then
+ begin
+- Tint(HH^.Team^.Clan^.Color);
++ Tint(HH^.Team^.Clan^.Color shl 8 or $FF);
+ DrawTextureF(HatTex,
+ 1,
+ sx,
+@@ -705,7 +705,7 @@
+ 32);
+ if HatTex^.w > 64 then
+ begin
+- Tint(HH^.Team^.Clan^.Color);
++ Tint(HH^.Team^.Clan^.Color shl 8 or $FF);
+ DrawTextureF(HatTex,
+ HatVisibility,
+ sx,
+@@ -729,7 +729,7 @@
+ 32);
+ if HatTex^.w > 64 then
+ begin
+- Tint(HH^.Team^.Clan^.Color);
++ Tint(HH^.Team^.Clan^.Color shl 8 or $FF);
+ DrawTextureF(HatTex,
+ HatVisibility,
+ sx,
+diff -r bd74fd83929a hedgewars/uStore.pas
+--- a/hedgewars/uStore.pas Tue Dec 28 10:31:48 2010 +0100
++++ b/hedgewars/uStore.pas Thu Jan 06 10:11:34 2011 -0500
+@@ -274,7 +274,7 @@
+ for ii:= Low(TSprite) to High(TSprite) do
+ with SpritesData[ii] do
+ // FIXME - add a sprite attribute
+- if ((cReducedQuality and rqNoBackground) = 0) or (not (ii in [sprSky, sprSkyL, sprSkyR, sprHorizont, sprHorizontL, sprHorizontR, sprFlake, sprSplash, sprDroplet])) then // FIXME: hack
++ if ((cReducedQuality and rqNoBackground) = 0) or (not (ii in [sprSky, sprSkyL, sprSkyR, sprHorizont, sprHorizontL, sprHorizontR, sprFlake, sprSplash, sprDroplet]) or (((Theme = 'Snow') or (Theme = 'Christmas')) and (ii = sprFlake))) then // FIXME: hack
+ begin
+ if AltPath = ptNone then
+ if ii in [sprHorizontL, sprHorizontR, sprSkyL, sprSkyR] then // FIXME: hack
+diff -r bd74fd83929a hedgewars/uWorld.pas
+--- a/hedgewars/uWorld.pas Tue Dec 28 10:31:48 2010 +0100
++++ b/hedgewars/uWorld.pas Thu Jan 06 10:11:34 2011 -0500
+@@ -742,7 +742,7 @@
+ highlight:= bShowFinger and (CurrentTeam = TeamsArray[t]) and ((RealTicks mod 1000) < 500);
+
+ if highlight then
+- Tint(Clan^.Color);
++ Tint(Clan^.Color shl 8 or $FF);
+
+ // draw name
+ DrawTexture(-NameTagTex^.w - 16, cScreenHeight + DrawHealthY, NameTagTex);
diff --git a/games-strategy/hedgewars/files/hedgewars-0.9.15-lua.patch b/games-strategy/hedgewars/files/hedgewars-0.9.15-lua.patch
new file mode 100644
index 000000000000..9451c2b12168
--- /dev/null
+++ b/games-strategy/hedgewars/files/hedgewars-0.9.15-lua.patch
@@ -0,0 +1,18 @@
+diff -r bd74fd83929a share/hedgewars/Data/Maps/CTF_Blizzard/map.lua
+--- a/share/hedgewars/Data/Maps/CTF_Blizzard/map.lua Tue Dec 28 10:31:48 2010 +0100
++++ b/share/hedgewars/Data/Maps/CTF_Blizzard/map.lua Thu Jan 06 10:49:46 2011 -0500
+@@ -153,9 +153,11 @@
+ -- steam and smoke and DUST look good, smokering looks trippy
+ -- smoketrace and eviltrace are not effected by wind?
+ -- chunk is a LR falling gear
+- tempE = AddVisualGear(eX, eY, vgtDust, 0, false)
+- g1, g2, g3, g4, g5, g6, g7, g8, g9, g10 = GetVisualGearValues(tempE)
+- SetVisualGearValues(tempE, eX, eY, g3, g4, g5, g6, g7, g8, g9, fCol[i])
++ tempE = AddVisualGear(eX, eY, vgtDust, 0, false)
++ if tempE ~= 0 then
++ g1, g2, g3, g4, g5, g6, g7, g8, g9, g10 = GetVisualGearValues(tempE)
++ SetVisualGearValues(tempE, eX, eY, g3, g4, g5, g6, g7, g8, g9, fCol[i])
++ end
+ end
+ end
+ end
diff --git a/games-strategy/hedgewars/hedgewars-0.9.15.ebuild b/games-strategy/hedgewars/hedgewars-0.9.15.ebuild
new file mode 100644
index 000000000000..041acd03fd49
--- /dev/null
+++ b/games-strategy/hedgewars/hedgewars-0.9.15.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/hedgewars/hedgewars-0.9.15.ebuild,v 1.1 2011/01/20 19:01:26 mr_bones_ Exp $
+
+EAPI=2
+inherit cmake-utils eutils games
+
+MY_P=${PN}-src-${PV}
+DESCRIPTION="Free Worms-like turn based strategy game"
+HOMEPAGE="http://hedgewars.org/"
+SRC_URI="http://hedgewars.org/download/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2 Apache-2.0 FDL-1.3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="x11-libs/qt-gui:4
+ media-libs/libsdl[audio,opengl,video]
+ media-libs/sdl-ttf
+ media-libs/sdl-mixer[vorbis]
+ media-libs/sdl-image[png]
+ media-libs/sdl-net
+ dev-lang/lua"
+DEPEND="${RDEPEND}
+ >=dev-lang/fpc-2.4"
+RDEPEND="${RDEPEND}
+ >=media-fonts/dejavu-2.28"
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=( "${FILESDIR}"/${P}-fixes.patch
+ "${FILESDIR}"/${P}-lua.patch )
+
+src_configure() {
+ mycmakeargs=(
+ -DCMAKE_INSTALL_PREFIX="${GAMES_PREFIX}"
+ -DDATA_INSTALL_DIR="${GAMES_DATADIR}"
+ -DCMAKE_VERBOSE_MAKEFILE=TRUE )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ DOCS="ChangeLog.txt README" cmake-utils_src_install
+ rm -f "${D}"/usr/share/games/hedgewars/Data/Fonts/DejaVuSans-Bold.ttf
+ dosym /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf \
+ "${GAMES_DATADIR}"/hedgewars/Data/Fonts/DejaVuSans-Bold.ttf
+ newicon QTfrontend/res/hh25x25.png ${PN}.png
+ make_desktop_entry ${PN} Hedgewars
+ doman man/${PN}.6
+ prepgamesdirs
+}