summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2008-08-29 06:25:33 +0000
committerAlfredo Tupone <tupone@gentoo.org>2008-08-29 06:25:33 +0000
commit1cd678d4a771f2e16c70ae986a77b7611a2a44fa (patch)
tree4fd4db8ecad762a37997aa1a92f377c03ffd9cf5 /games-roguelike
parentversion bump (diff)
downloadhistorical-1cd678d4a771f2e16c70ae986a77b7611a2a44fa.tar.gz
historical-1cd678d4a771f2e16c70ae986a77b7611a2a44fa.tar.bz2
historical-1cd678d4a771f2e16c70ae986a77b7611a2a44fa.zip
Version bump to 0.20. Bug #222667
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'games-roguelike')
-rw-r--r--games-roguelike/scourge/ChangeLog11
-rw-r--r--games-roguelike/scourge/Manifest16
-rw-r--r--games-roguelike/scourge/files/scourge-0.20-gcc43.patch150
-rw-r--r--games-roguelike/scourge/scourge-0.20.ebuild55
4 files changed, 229 insertions, 3 deletions
diff --git a/games-roguelike/scourge/ChangeLog b/games-roguelike/scourge/ChangeLog
index 6ee3c5d1acf5..9aae0017db7b 100644
--- a/games-roguelike/scourge/ChangeLog
+++ b/games-roguelike/scourge/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for games-roguelike/scourge
-# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-roguelike/scourge/ChangeLog,v 1.29 2007/10/07 21:27:26 mr_bones_ Exp $
+# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-roguelike/scourge/ChangeLog,v 1.30 2008/08/29 06:25:33 tupone Exp $
+
+*scourge-0.20 (29 Aug 2008)
+
+ 29 Aug 2008; <tupone@gentoo.org> +files/scourge-0.20-gcc43.patch,
+ +scourge-0.20.ebuild:
+ Version bump to 0.20. Bug #222667 by Rob Hillis
+ Editor removed as not working
07 Oct 2007; Michael Sterrett <mr_bones_@gentoo.org> scourge-0.19.ebuild:
add sdl-ttf to the deps for bug #195011
diff --git a/games-roguelike/scourge/Manifest b/games-roguelike/scourge/Manifest
index c67d036fa0dc..d5cd96f44043 100644
--- a/games-roguelike/scourge/Manifest
+++ b/games-roguelike/scourge/Manifest
@@ -1,5 +1,19 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX scourge-0.20-gcc43.patch 5717 RMD160 177aebfd4f875932373a5498d54d5833d9c50c77 SHA1 e68178a1f79ee0f853d9c4426a6d2b0db17827ac SHA256 26443f1b5695cc85528a7b47be30d704334c96d50e5a94636da558e7627955fb
DIST scourge-0.19.data.tar.gz 98348023 RMD160 f954aa5d441a58bffece9a3c335429f2b9bc1d4d SHA1 b38ade297311290a1921f9998ea58bfd4ae64cef SHA256 c65016a80c8ec3b79f54551edb96e2bf0cdba156577058d0c38ca923575ac548
DIST scourge-0.19.src.tar.gz 5049892 RMD160 a3711d8fabb290739cd219c49555a966ff439d0c SHA1 ae41a0f55797908546f9461249cbf5c58d144e51 SHA256 8820484f20d4c6edf524986e52628a7a3442ac9d1acdda3ae1b6819a3cbbd2df
+DIST scourge-0.20.data.tar.gz 131152941 RMD160 bfedf7abe7b6badf9adbe1b79a1439b4d7273ee9 SHA1 cd21e2d2cb856a647f597c7e079524de4a3494a6 SHA256 8507006d1a705ce2e3280ada1e7fff104f4b0b628d6f11e2d5c14e0e109047bf
+DIST scourge-0.20.src.tar.gz 7801393 RMD160 0c1653fdb74407d0d30218dc7d314592f770639d SHA1 3748c9c0fbe839f8f2d29b48d61533a6658297c6 SHA256 7514a5a1a33b101912379c93502e062fbcf65c11b621ed367eb3e3c7071811e5
EBUILD scourge-0.19.ebuild 1645 RMD160 89e89083280ff23025cb0704eeb327b7d0ac5634 SHA1 b3124cb57b2f10e897cda32adc9a8f24c393966d SHA256 4202311953b9d8238f2158624135e5e4c92f28255dad518137446c9a70c28deb
-MISC ChangeLog 3584 RMD160 421c04455b7d538ea00d0ec5eaab1f3a5909d1b9 SHA1 a1d062060615c2a09f0443bb5f543af1cbd475c2 SHA256 4e852bee63ea72d2f3d3d1c7eead4ad425242a2da92b2d3cce77e600ccb3c043
+EBUILD scourge-0.20.ebuild 1285 RMD160 37773e3d4e25d5e4b788c755f07cc21e085e7758 SHA1 3c49220e70b30bdb87495aaccdaa269102a03729 SHA256 89441da4992c0e3b04297d89a3e73c9a289c006b2b3d4950b6f2f48133868f36
+MISC ChangeLog 3785 RMD160 8d192ff34ed3f28f66529ef180e1b44348aeeeef SHA1 78ad9eb6d7e4b55976ac45eba3ad5641340a7dbf SHA256 f02f5b9609c46493175c34a37a9aa522d53e74a09b793a6381c7a69de997bd2b
MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.9 (GNU/Linux)
+
+iEYEARECAAYFAki3lnkACgkQVrx5UrvSjsdEnwCggr2UJ40Tb9T1pS/AXdz4wC/q
+Um8AnjBJlwEVPGmnh9ntmMmthmNXZcvy
+=MH8G
+-----END PGP SIGNATURE-----
diff --git a/games-roguelike/scourge/files/scourge-0.20-gcc43.patch b/games-roguelike/scourge/files/scourge-0.20-gcc43.patch
new file mode 100644
index 000000000000..ad2a7aafeddd
--- /dev/null
+++ b/games-roguelike/scourge/files/scourge-0.20-gcc43.patch
@@ -0,0 +1,150 @@
+--- src/userconfiguration.cpp.old 2008-08-27 20:11:29.000000000 +0200
++++ src/userconfiguration.cpp 2008-08-27 20:16:05.000000000 +0200
+@@ -1055,7 +1055,7 @@
+ }
+
+ void UserConfiguration::replaceSpaces(string& s) {
+- replace(s.begin(), s.end(), ' ', '_');
++ s.replace(s.begin(), s.end(), ' ', '_');
+ }
+
+ UserConfiguration::~UserConfiguration(){
+--- src/tools/dfbooks.cpp.old 2008-08-28 20:59:56.000000000 +0200
++++ src/tools/dfbooks.cpp 2008-08-28 21:00:27.000000000 +0200
+@@ -49,7 +49,7 @@
+ generalBooks.push_back(data[i]);
+ }
+
+- std::ofstream fout( GetDataPath("%s/world/booksTEST"), std::ios::binary);
++ std::ofstream fout( GetDataPath("%s/world/booksTEST").c_str(), std::ios::binary);
+
+ fout << "# Random texts found in books and notes.\n#\n# Key:\n# B: Book Name, rareness"
+ << "# M: Mission name (optional: from missions.txt)\n# T: multi-line text\n# \n\n"
+--- src/tools/dfcreatures.cpp.old 2008-08-28 21:01:14.000000000 +0200
++++ src/tools/dfcreatures.cpp 2008-08-28 21:01:36.000000000 +0200
+@@ -67,7 +67,7 @@
+
+ void DFCreatures::Save()
+ {
+- std::ofstream fout( GetDataPath("%s/world/creaturesTEST"), std::ios::binary );
++ std::ofstream fout( GetDataPath("%s/world/creaturesTEST").c_str(), std::ios::binary );
+
+ fout << "# Creatures\n"
+ << "# \n"
+--- src/tools/dfgui.cpp.old 2008-08-28 21:02:13.000000000 +0200
++++ src/tools/dfgui.cpp 2008-08-28 21:02:31.000000000 +0200
+@@ -167,7 +167,7 @@
+
+ void DFGui::Save()
+ {
+- std::ofstream fout( GetDataPath("%s/world/guiTEST"), std::ios::binary);
++ std::ofstream fout( GetDataPath("%s/world/guiTEST").c_str(), std::ios::binary);
+
+ fout << "# gui themes key:\n# (non-existing textures will appear as pure color)"
+ << "\n#\n# T:theme name\n# each row is either an \"element\" (like window background) or a \"color\" like a text color."
+--- src/tools/dfmissions.cpp.old 2008-08-28 21:03:00.000000000 +0200
++++ src/tools/dfmissions.cpp 2008-08-28 21:03:13.000000000 +0200
+@@ -124,7 +124,7 @@
+ else
+ generalMissions.push_back( *itr );
+ }
+- std::ofstream fout( GetDataPath("%s/world/missionsTEST"), std::ios::binary);
++ std::ofstream fout( GetDataPath("%s/world/missionsTEST").c_str(), std::ios::binary);
+
+ fout << "##########################################################\n"
+ << "# Templated missions\n# Key:\n# M:type,mission template name\n"
+--- src/tools/dfskills.cpp.old 2008-08-28 21:03:48.000000000 +0200
++++ src/tools/dfskills.cpp 2008-08-28 21:04:01.000000000 +0200
+@@ -44,7 +44,7 @@
+
+ void DFSkills::Save()
+ {
+- std::ofstream fout( GetDataPath("%s/world/skillsTEST"), std::ios::binary);
++ std::ofstream fout( GetDataPath("%s/world/skillsTEST").c_str(), std::ios::binary);
+
+ /**
+ * Possible improvement: set out skills in class sections as already done in skills.txt
+--- src/tools/dfspells.cpp.old 2008-08-28 21:04:28.000000000 +0200
++++ src/tools/dfspells.cpp 2008-08-28 21:04:40.000000000 +0200
+@@ -111,7 +111,7 @@
+
+ void DFSpells::Save()
+ {
+- std::ofstream fout( GetDataPath("%s/world/spellsTEST"), std::ios::binary );
++ std::ofstream fout( GetDataPath("%s/world/spellsTEST").c_str(), std::ios::binary );
+
+ fout << "#\n"
+ "# key: \n"
+--- src/tools/dflocations.cpp.old 2008-08-28 21:05:14.000000000 +0200
++++ src/tools/dflocations.cpp 2008-08-28 21:05:27.000000000 +0200
+@@ -28,7 +28,7 @@
+
+ void DFLocations::Save()
+ {
+- std::ofstream fout( GetDataPath("%s/world/locationsTEST"), std::ios::binary);
++ std::ofstream fout( GetDataPath("%s/world/locationsTEST").c_str(), std::ios::binary);
+
+ fout << "# Locations of relevant places on the scourge map.\n"
+ << "# Key:\n"
+--- src/tools/dfrpg.cpp.old 2008-08-28 21:05:53.000000000 +0200
++++ src/tools/dfrpg.cpp 2008-08-28 21:06:10.000000000 +0200
+@@ -150,7 +150,7 @@
+
+ void DFRpg::Save()
+ {
+- std::ofstream fout( GetDataPath("%s/world/rpgTEST"), std::ios::binary );
++ std::ofstream fout( GetDataPath("%s/world/rpgTEST").c_str(), std::ios::binary );
+
+ fout << "# Key:\n"
+ << "# G: group name, descriptive name\n"
+--- src/tools/Makefile.am.old 2008-08-28 21:08:30.000000000 +0200
++++ src/tools/Makefile.am 2008-08-28 21:08:56.000000000 +0200
+@@ -56,6 +56,8 @@
+ subpageitemtags.cpp\
+ subpageitemtags.h\
+ subpagenames.cpp\
+- subpagenames.h
++ subpagenames.h\
++ ../util.cpp\
++ ../util.h
+
+
+--- src/tools/main.cpp.old 2008-08-28 21:34:28.000000000 +0200
++++ src/tools/main.cpp 2008-08-28 21:35:03.000000000 +0200
+@@ -96,28 +96,28 @@
+ bool MyApp::OnInit()
+ {
+ DFBooks *dfBooks = new DFBooks;
+- dfBooks->Load( GetDataPath("%s/world/books.txt"), "B");
++ dfBooks->Load( GetDataPath("/world/books.txt"), "B");
+
+ DFMissions *dfMissions = new DFMissions;
+- dfMissions->Load( GetDataPath("%s/world/missions.txt"), "MT");
++ dfMissions->Load( GetDataPath("/world/missions.txt"), "MT");
+
+ DFGui *dfGui = new DFGui;
+- dfGui->Load( GetDataPath("%s/world/gui.txt"), "T");
++ dfGui->Load( GetDataPath("/world/gui.txt"), "T");
+
+ DFSkills *dfSkills = new DFSkills;
+- dfSkills->Load( GetDataPath("%s/world/skills.txt"), "S");
++ dfSkills->Load( GetDataPath("/world/skills.txt"), "S");
+
+ DFSpells *dfSpells = new DFSpells;
+- dfSpells->Load( GetDataPath("%s/world/spells.txt"), "S");
++ dfSpells->Load( GetDataPath("/world/spells.txt"), "S");
+
+ DFCreatures *dfCreatures = new DFCreatures;
+- dfCreatures->Load( GetDataPath("%s/world/creatures.txt"), "M");
++ dfCreatures->Load( GetDataPath("/world/creatures.txt"), "M");
+
+ DFLocations *dfLocations = new DFLocations;
+- dfLocations->Load( GetDataPath("%s/world/locations.txt"), "L");
++ dfLocations->Load( GetDataPath("/world/locations.txt"), "L");
+
+ DFRpg *dfRpg = new DFRpg;
+- dfRpg->Load( GetDataPath("%s/world/rpg.txt"), "GTF");
++ dfRpg->Load( GetDataPath("/world/rpg.txt"), "GTF");
+
+
+ g_DFList["Books"] = dfBooks;
diff --git a/games-roguelike/scourge/scourge-0.20.ebuild b/games-roguelike/scourge/scourge-0.20.ebuild
new file mode 100644
index 000000000000..4889a6fa9a5b
--- /dev/null
+++ b/games-roguelike/scourge/scourge-0.20.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-roguelike/scourge/scourge-0.20.ebuild,v 1.1 2008/08/29 06:25:33 tupone Exp $
+
+inherit autotools eutils wxwidgets games
+
+DESCRIPTION="A graphical rogue-like adventure game"
+HOMEPAGE="http://scourgeweb.org/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.src.tar.gz
+ mirror://sourceforge/${PN}/${P}.data.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND="virtual/glu
+ virtual/opengl
+ >=media-libs/freetype-2
+ media-libs/libsdl
+ media-libs/sdl-net
+ media-libs/sdl-mixer
+ media-libs/sdl-ttf
+ virtual/libintl
+ "
+DEPEND="${RDEPEND}
+ sys-devel/gettext"
+
+S=${WORKDIR}/${PN}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-gcc43.patch
+ eautoreconf
+}
+
+src_compile() {
+ egamesconf \
+ --disable-dependency-tracking \
+ --with-data-dir="${GAMES_DATADIR}"/${PN} \
+ --localedir=/usr/share/locale \
+ || die
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r ../scourge_data/* || die "doins failed"
+ doicon assets/scourge.png
+ make_desktop_entry scourge S.C.O.U.R.G.E.
+ dodoc AUTHORS README
+ prepgamesdirs
+}