diff options
-rw-r--r-- | games-strategy/hedgewars/ChangeLog | 11 | ||||
-rw-r--r-- | games-strategy/hedgewars/Manifest | 31 | ||||
-rw-r--r-- | games-strategy/hedgewars/files/digest-hedgewars-0.9.0 | 6 | ||||
-rw-r--r-- | games-strategy/hedgewars/files/hedgewars-0.9.0-debug-file.patch | 96 | ||||
-rw-r--r-- | games-strategy/hedgewars/hedgewars-0.9.0.ebuild | 50 | ||||
-rw-r--r-- | games-strategy/hedgewars/metadata.xml | 5 |
6 files changed, 199 insertions, 0 deletions
diff --git a/games-strategy/hedgewars/ChangeLog b/games-strategy/hedgewars/ChangeLog new file mode 100644 index 000000000000..474e17bf719e --- /dev/null +++ b/games-strategy/hedgewars/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for games-strategy/hedgewars +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/hedgewars/ChangeLog,v 1.1 2007/07/30 11:20:21 nyhm Exp $ + +*hedgewars-0.9.0 (30 Jul 2007) + + 30 Jul 2007; Tristan Heaven <nyhm@gentoo.org> + +files/hedgewars-0.9.0-debug-file.patch, +metadata.xml, + +hedgewars-0.9.0.ebuild: + Initial commit, ebuild by Igor Ulyanov, bug #155872 + diff --git a/games-strategy/hedgewars/Manifest b/games-strategy/hedgewars/Manifest new file mode 100644 index 000000000000..82eee4325a2e --- /dev/null +++ b/games-strategy/hedgewars/Manifest @@ -0,0 +1,31 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX hedgewars-0.9.0-debug-file.patch 3155 RMD160 db78dcb11de17ed868ce673f89316fc98fa6e98f SHA1 f0cb816d805d504e5ff9b11170ef7c384f126858 SHA256 beef4007fbbbfde2e9e5d079d4695c346e54caac7a9f57846f6e2d79a75747bf +MD5 7fbe1a1f89abee5fac0328296a911fe8 files/hedgewars-0.9.0-debug-file.patch 3155 +RMD160 db78dcb11de17ed868ce673f89316fc98fa6e98f files/hedgewars-0.9.0-debug-file.patch 3155 +SHA256 beef4007fbbbfde2e9e5d079d4695c346e54caac7a9f57846f6e2d79a75747bf files/hedgewars-0.9.0-debug-file.patch 3155 +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.ebuild 1225 RMD160 917c42f72e323f02f821764fcdd5b9795121d3a1 SHA1 09324b08bcecca40cbaeaff31b004a9cf23c4f95 SHA256 1d4ebe64f2296837e7f5f0aec1d201fd019d16f513f6da3475d6c4a1b4344167 +MD5 6695f7a93f4accee46940d4f9dd83fa6 hedgewars-0.9.0.ebuild 1225 +RMD160 917c42f72e323f02f821764fcdd5b9795121d3a1 hedgewars-0.9.0.ebuild 1225 +SHA256 1d4ebe64f2296837e7f5f0aec1d201fd019d16f513f6da3475d6c4a1b4344167 hedgewars-0.9.0.ebuild 1225 +MISC ChangeLog 439 RMD160 c13be252ef801a806fed70ffe862e59d5732e74b SHA1 3582ac0347cd73485957d765e72a1e9a28eaef46 SHA256 f51ac93d3f9e6867aab786b23c5c9e826fab70e60a5473a403f7a083fc5f7d25 +MD5 3e042586c97c302da2395f674621e288 ChangeLog 439 +RMD160 c13be252ef801a806fed70ffe862e59d5732e74b ChangeLog 439 +SHA256 f51ac93d3f9e6867aab786b23c5c9e826fab70e60a5473a403f7a083fc5f7d25 ChangeLog 439 +MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 +MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158 +RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea metadata.xml 158 +SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 metadata.xml 158 +MD5 0e93fb192b68d335d0f1010969a68770 files/digest-hedgewars-0.9.0 524 +RMD160 42ae70e6a1d2e90e45bb25466ca7e7f94b8572d0 files/digest-hedgewars-0.9.0 524 +SHA256 bfaee996055d19a7d5a653104db65549661357a4695b3739075ec89fbaff0190 files/digest-hedgewars-0.9.0 524 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.5 (GNU/Linux) + +iD8DBQFGrcl7dz7hIScOURERAgvGAKDox21AAN89SeUQatTPG9JgidfFPwCfbNjN +ZMYS+40+Ck3IFhEX8u4wtWs= +=tHYj +-----END PGP SIGNATURE----- diff --git a/games-strategy/hedgewars/files/digest-hedgewars-0.9.0 b/games-strategy/hedgewars/files/digest-hedgewars-0.9.0 new file mode 100644 index 000000000000..bc6848b94b61 --- /dev/null +++ b/games-strategy/hedgewars/files/digest-hedgewars-0.9.0 @@ -0,0 +1,6 @@ +MD5 8c77b6fabf3c053ab8e2458f14673fcb hedgewars-0.9.0-r2.patch.bz2 4122 +RMD160 4832dd842d1c9a91b56fae02166af1278d70d1bf hedgewars-0.9.0-r2.patch.bz2 4122 +SHA256 0074e34f627bca3d00939eb73b3f6a59daf890f749f92cda1622d2beaf60bb64 hedgewars-0.9.0-r2.patch.bz2 4122 +MD5 5e1bd87ac9c7db761ff3427acdae6f89 hedgewars-src-0.9.0.tar.bz2 4549192 +RMD160 2e405c99aaabdb8a4fae153967d60d16c08f3bd8 hedgewars-src-0.9.0.tar.bz2 4549192 +SHA256 6b05a76e1be016de10967ced5d3a4104840b3162055bccee7e0f28a1966989d5 hedgewars-src-0.9.0.tar.bz2 4549192 diff --git a/games-strategy/hedgewars/files/hedgewars-0.9.0-debug-file.patch b/games-strategy/hedgewars/files/hedgewars-0.9.0-debug-file.patch new file mode 100644 index 000000000000..0bf26eb716db --- /dev/null +++ b/games-strategy/hedgewars/files/hedgewars-0.9.0-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.ebuild b/games-strategy/hedgewars/hedgewars-0.9.0.ebuild new file mode 100644 index 000000000000..967b05318f7d --- /dev/null +++ b/games-strategy/hedgewars/hedgewars-0.9.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/hedgewars/hedgewars-0.9.0.ebuild,v 1.1 2007/07/30 11:20:21 nyhm Exp $ + +inherit eutils 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/${P}-r2.patch.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +RDEPEND="$(qt4_min_version 4.2) + media-libs/libsdl + media-libs/sdl-ttf + media-libs/sdl-mixer + media-libs/sdl-image + media-libs/sdl-net" +DEPEND="${RDEPEND} + >=dev-util/cmake-2.4.4 + >=dev-lang/fpc-1.9.4" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch \ + "${WORKDIR}"/${P}-r2.patch \ + "${FILESDIR}"/${P}-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" + newicon QTfrontend/res/hh25x25.png ${PN}.png + make_desktop_entry ${PN} Hedgewars + dodoc README + prepgamesdirs +} diff --git a/games-strategy/hedgewars/metadata.xml b/games-strategy/hedgewars/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-strategy/hedgewars/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> |