diff options
author | Igor Ulyanov (Displacer) <disinbox@gmail.com> | 2007-03-21 15:25:02 +0000 |
---|---|---|
committer | Igor Ulyanov (Displacer) <disinbox@gmail.com> | 2007-03-21 15:25:02 +0000 |
commit | b9ca54da926fdfa0d814d688becded6b1960ec17 (patch) | |
tree | 3842ede4ccff5694cacc698ead905d209b1de1a1 /games-strategy | |
parent | Some enhancements to the ebuild (diff) | |
download | sunrise-reviewed-b9ca54da926fdfa0d814d688becded6b1960ec17.tar.gz sunrise-reviewed-b9ca54da926fdfa0d814d688becded6b1960ec17.tar.bz2 sunrise-reviewed-b9ca54da926fdfa0d814d688becded6b1960ec17.zip |
games-strategy/hedgewars: rev -r2 added with a patch for creating debug0.txt in current dir bugfix
svn path=/sunrise/; revision=3262
Diffstat (limited to 'games-strategy')
-rw-r--r-- | games-strategy/hedgewars/ChangeLog | 4 | ||||
-rw-r--r-- | games-strategy/hedgewars/Manifest | 8 | ||||
-rw-r--r-- | games-strategy/hedgewars/files/debug_file.patch | 96 | ||||
-rw-r--r-- | games-strategy/hedgewars/hedgewars-0.9.0-r2.ebuild | 46 |
4 files changed, 152 insertions, 2 deletions
diff --git a/games-strategy/hedgewars/ChangeLog b/games-strategy/hedgewars/ChangeLog index 1a5ee283e..09bbe524e 100644 --- a/games-strategy/hedgewars/ChangeLog +++ b/games-strategy/hedgewars/ChangeLog @@ -2,6 +2,10 @@ # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 21 Mar 2007; Displacer <disinbox@gmail.com> +hedgewars-0.9.0-r2.ebuild, + +files/debug_file.patch: + rev -r2 added with a patch for creating debug0.txt in current dir bugfix + 15 Mar 2007; Displacer <disinbox@gmail.com> hedgewars-0.9.0-r1.ebuild, +files/cmake_req_version.patch: cmake minimum required ver increased to 2.4.4 due to lack of Qt SVG support diff --git a/games-strategy/hedgewars/Manifest b/games-strategy/hedgewars/Manifest index 8396372b5..df75aeab0 100644 --- a/games-strategy/hedgewars/Manifest +++ b/games-strategy/hedgewars/Manifest @@ -1,9 +1,13 @@ AUX cmake_req_version.patch 648 RMD160 36541c27c176fa3131fa41d089392a5fd00eeb98 SHA1 e701711267b9ec98da49dc30940f749c7be78e1d SHA256 b0fc52b3a04df52263fac26e69119c81c78b50ee7c582400249730ca45e9e8d5 +AUX debug_file.patch 3155 RMD160 db78dcb11de17ed868ce673f89316fc98fa6e98f SHA1 f0cb816d805d504e5ff9b11170ef7c384f126858 SHA256 beef4007fbbbfde2e9e5d079d4695c346e54caac7a9f57846f6e2d79a75747bf DIST hedgewars-0.9.0-r1.patch.bz2 4122 RMD160 4832dd842d1c9a91b56fae02166af1278d70d1bf SHA1 48b56bf61b31d1026f338c8ec706422e74484280 SHA256 0074e34f627bca3d00939eb73b3f6a59daf890f749f92cda1622d2beaf60bb64 +DIST hedgewars-0.9.0-r2.patch.bz2 4122 RMD160 4832dd842d1c9a91b56fae02166af1278d70d1bf SHA1 48b56bf61b31d1026f338c8ec706422e74484280 SHA256 0074e34f627bca3d00939eb73b3f6a59daf890f749f92cda1622d2beaf60bb64 DIST hedgewars-src-0.9.0.tar.bz2 4549192 RMD160 2e405c99aaabdb8a4fae153967d60d16c08f3bd8 SHA1 3832c0843f9a1b60fed6ed4cacc8693d5c9950b0 SHA256 6b05a76e1be016de10967ced5d3a4104840b3162055bccee7e0f28a1966989d5 EBUILD hedgewars-0.9.0-r1.ebuild 1028 RMD160 eea0cf134da356003a4a36ff32b3ecc7d2b06699 SHA1 ff8e41813ce63f86a4759dd2aed2380c1dc60d1a SHA256 52391abb61f63b131c4f29bf4b126c27f2f78661e925cac67db4bb86558b7954 +EBUILD hedgewars-0.9.0-r2.ebuild 1054 RMD160 df7ca312f60cee63fe6fa06b8589bb1ec61bad76 SHA1 b1fdc842328b9827bbdaf52f6cb6277570d980d2 SHA256 068652143f9d275bba52cb9fcb8124de3bdee2f345175da3e1248e394c43f2cd EBUILD hedgewars-0.9.0.ebuild 847 RMD160 f951d77e95f749bc76674149b449a5f77864dd60 SHA1 c32763dc7ddf3b27f606bbc4906c8035271b1e81 SHA256 25b904f0915beb7e1df2e627b9a43220d86786713ac1aee88abe1624d8f162b8 -MISC ChangeLog 605 RMD160 761d34571b887c7f0649eef37e8f90951c9c2eb2 SHA1 fbbb5570c0dc4f6d7a179bceeeff05ab370b6115 SHA256 497df654ae7d16013311f83bed50f603cc632cf310180bc8c4ba382191c143d2 +MISC ChangeLog 782 RMD160 25d3634fe14315da42ff359812d1f71c9f351c27 SHA1 8039cf72c1764759826b79bb209e9d0eb61120d4 SHA256 6f1c1d3d32dbde6322c70f125e44bf6b87b07d5d05f57f6abbe739e9d67b2098 MISC ChangeLog~ 275 RMD160 fe33238010d62aa0df4f262b87c5aa44ec556883 SHA1 71a4baf99af0707d7fa82709e140114d338ace4d SHA256 f2fa343f71050ced603b1906f0f8d4e633a6698f5f44895fc1215612a2780467 -MISC hedgewars-0.9.0-r1.ebuild~ 1028 RMD160 6df671bb4d599bcdb8aca6fde9c812912b6c5664 SHA1 c33f5ad5665025169d88b033a7ea92109cfa2ca2 SHA256 1adad5fd8c7af4041eaf300be6cfd1c2eaa6becc53aa6774cf86c8c2fc77f555 +MISC hedgewars-0.9.0-r1.ebuild~ 1028 RMD160 eea0cf134da356003a4a36ff32b3ecc7d2b06699 SHA1 ff8e41813ce63f86a4759dd2aed2380c1dc60d1a SHA256 52391abb61f63b131c4f29bf4b126c27f2f78661e925cac67db4bb86558b7954 +MISC hedgewars-0.9.0-r2.ebuild~ 1067 RMD160 1a80e39319449c73529315446c1b5514c0523120 SHA1 598868f10a02482fa679e04a230c8cf80a6526ae SHA256 e36f4953e646755fe28626989135e8d6c849c6e7ac2562305be43a2199a5cbfd MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 diff --git a/games-strategy/hedgewars/files/debug_file.patch b/games-strategy/hedgewars/files/debug_file.patch new file mode 100644 index 000000000..0bf26eb71 --- /dev/null +++ b/games-strategy/hedgewars/files/debug_file.patch @@ -0,0 +1,96 @@ +Index: QTfrontend/game.cpp +=================================================================== +--- QTfrontend/game.cpp (revision 510) ++++ QTfrontend/game.cpp (revision 512) +@@ -204,6 +204,7 @@ + QStringList HWGame::setArguments() + { + QStringList arguments; ++ arguments << cfgdir->absolutePath(); + arguments << resolutions[0][config->vid_Resolution()]; + arguments << resolutions[1][config->vid_Resolution()]; + arguments << "16"; // bpp +Index: QTfrontend/hwmap.cpp +=================================================================== +--- QTfrontend/hwmap.cpp (revision 510) ++++ QTfrontend/hwmap.cpp (revision 512) +@@ -15,6 +15,7 @@ + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ + ++#include "hwconsts.h" + #include "hwmap.h" + + HWMap::HWMap() : +@@ -35,6 +36,7 @@ + QStringList HWMap::setArguments() + { + QStringList arguments; ++ arguments << cfgdir->absolutePath(); + arguments << QString("%1").arg(ipc_port); + arguments << "landpreview"; + return arguments; +Index: hedgewars/hwengine.dpr +=================================================================== +--- hedgewars/hwengine.dpr (revision 510) ++++ hedgewars/hwengine.dpr (revision 512) +@@ -176,27 +176,27 @@ + {$ENDIF} + + case ParamCount of +-11: begin +- val(ParamStr(1), cScreenWidth, c); +- val(ParamStr(2), cScreenHeight, c); +- cBitsStr:= ParamStr(3); ++12: begin ++ val(ParamStr(2), cScreenWidth, c); ++ val(ParamStr(3), cScreenHeight, c); ++ cBitsStr:= ParamStr(4); + val(cBitsStr, cBits, c); +- val(ParamStr(4), ipcPort, c); +- cFullScreen:= ParamStr(5) = '1'; +- isSoundEnabled:= ParamStr(6) = '1'; +- cLocaleFName:= ParamStr(7); +- val(ParamStr(8), cInitVolume, c); +- val(ParamStr(9), cTimerInterval, c); +- PathPrefix:= ParamStr(10); +- cShowFPS:= ParamStr(11) = '1'; ++ val(ParamStr(5), ipcPort, c); ++ cFullScreen:= ParamStr(6) = '1'; ++ isSoundEnabled:= ParamStr(7) = '1'; ++ cLocaleFName:= ParamStr(8); ++ val(ParamStr(9), cInitVolume, c); ++ val(ParamStr(10), cTimerInterval, c); ++ PathPrefix:= ParamStr(11); ++ cShowFPS:= ParamStr(12) = '1'; + for p:= Succ(Low(TPathType)) to High(TPathType) do + if p <> ptMapCurrent then Pathz[p]:= PathPrefix + '/' + Pathz[p]; + AddClouds + end; +- 2: begin +- val(ParamStr(1), ipcPort, c); ++ 3: begin ++ val(ParamStr(2), ipcPort, c); + GameType:= gmtLandPreview; +- if ParamStr(2) <> 'landpreview' then OutError(errmsgShouldntRun, true); ++ if ParamStr(3) <> 'landpreview' then OutError(errmsgShouldntRun, true); + end + else + OutError(errmsgShouldntRun, true) +Index: hedgewars/uMisc.pas +=================================================================== +--- hedgewars/uMisc.pas (revision 510) ++++ hedgewars/uMisc.pas (revision 512) +@@ -253,9 +253,10 @@ + + {$IFDEF DEBUGFILE} + {$I-} +-for i:= 0 to 7 do ++if ParamCount > 0 then ++ for i:= 0 to 7 do + begin +- Assign(f, 'debug' + inttostr(i) + '.txt'); ++ Assign(f, ParamStr(1) + '/debug' + inttostr(i) + '.txt'); + rewrite(f); + if IOResult = 0 then break + end; diff --git a/games-strategy/hedgewars/hedgewars-0.9.0-r2.ebuild b/games-strategy/hedgewars/hedgewars-0.9.0-r2.ebuild new file mode 100644 index 000000000..5706f6263 --- /dev/null +++ b/games-strategy/hedgewars/hedgewars-0.9.0-r2.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit qt4 games + +DESCRIPTION="Free Worms-like turn based strategy game" +HOMEPAGE="http://hedgewars.org/" +SRC_URI="http://hedgewars.org/download/${PN}-src-${PV}.tar.bz2 + http://hedgewars.org/download/${PF}.patch.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=dev-util/cmake-2.4.4 + $(qt4_min_version 4.2) + >=dev-lang/fpc-1.9.4 + media-libs/libsdl + media-libs/sdl-ttf + media-libs/sdl-mixer + media-libs/sdl-image + media-libs/sdl-net" +RDEPEND="${DEPEND}" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${WORKDIR}/${PF}.patch" + epatch "${FILESDIR}"/cmake_req_version.patch + epatch "${FILESDIR}"/debug_file.patch +} + +src_compile() { + cmake -DCMAKE_CXX_FLAGS="${CXXFLAGS}" \ + -DCMAKE_INSTALL_PREFIX="${GAMES_PREFIX}" \ + -DDATA_INSTALL_DIR="${GAMES_DATADIR}" \ + . || die "cmake failed" + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + prepgamesdirs +} |