summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <nyhm@gentoo.org>2007-07-30 11:20:21 +0000
committerTristan Heaven <nyhm@gentoo.org>2007-07-30 11:20:21 +0000
commit120d3e944800cb87d915c6ed9d2f58a326523c98 (patch)
tree51e805cc27093f0c74739cc74d57e5fa8bc4245c /games-strategy
parentStable on ppc64; bug #186958 (diff)
downloadgentoo-2-120d3e944800cb87d915c6ed9d2f58a326523c98.tar.gz
gentoo-2-120d3e944800cb87d915c6ed9d2f58a326523c98.tar.bz2
gentoo-2-120d3e944800cb87d915c6ed9d2f58a326523c98.zip
Initial commit, ebuild by Igor Ulyanov, bug #155872
(Portage version: 2.1.3_rc9)
Diffstat (limited to 'games-strategy')
-rw-r--r--games-strategy/hedgewars/ChangeLog11
-rw-r--r--games-strategy/hedgewars/Manifest21
-rw-r--r--games-strategy/hedgewars/files/digest-hedgewars-0.9.06
-rw-r--r--games-strategy/hedgewars/files/hedgewars-0.9.0-debug-file.patch96
-rw-r--r--games-strategy/hedgewars/hedgewars-0.9.0.ebuild50
-rw-r--r--games-strategy/hedgewars/metadata.xml5
6 files changed, 189 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..a650c9a19a2b
--- /dev/null
+++ b/games-strategy/hedgewars/Manifest
@@ -0,0 +1,21 @@
+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 1118 RMD160 30d74b79eba381ba873a6e41ea682a1ffeca2811 SHA1 1264ab0ac62094bd96ca55a772adbcf09b15fabc SHA256 e010ef267cd7c7d319eaa1d9b616da3a90382d56398aad0484d3b17daf977fa2
+MD5 6e9ef38d66804d2b61bc29e5a37d4f19 hedgewars-0.9.0.ebuild 1118
+RMD160 30d74b79eba381ba873a6e41ea682a1ffeca2811 hedgewars-0.9.0.ebuild 1118
+SHA256 e010ef267cd7c7d319eaa1d9b616da3a90382d56398aad0484d3b17daf977fa2 hedgewars-0.9.0.ebuild 1118
+MISC ChangeLog 345 RMD160 7218106d789906343882dd667aee8c8b6a3d0fbf SHA1 cb6804c1b9843b43839001571ce309ce21b69339 SHA256 3e042e06fcc91b6587b074522af7e4dd7dfb2978b7c9121cc0a366f6a5c9042f
+MD5 67f82b636259efe0af9838de92ca2ba2 ChangeLog 345
+RMD160 7218106d789906343882dd667aee8c8b6a3d0fbf ChangeLog 345
+SHA256 3e042e06fcc91b6587b074522af7e4dd7dfb2978b7c9121cc0a366f6a5c9042f ChangeLog 345
+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
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>