diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2009-04-25 23:59:18 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2009-04-25 23:59:18 +0000 |
commit | a2034f2a16a63eb31647621c6e6034e2ed7b0651 (patch) | |
tree | 7ccd2ea3efc290fed167d343fff8274db62956d3 /games-strategy | |
parent | Bump to 0.1.12, fixes #236974 (diff) | |
download | historical-a2034f2a16a63eb31647621c6e6034e2ed7b0651.tar.gz historical-a2034f2a16a63eb31647621c6e6034e2ed7b0651.tar.bz2 historical-a2034f2a16a63eb31647621c6e6034e2ed7b0651.zip |
gcc43 patch from Petr Behan (bug #267204); tidy
Package-Manager: portage-2.1.6.7/cvs/Linux i686
Diffstat (limited to 'games-strategy')
-rw-r--r-- | games-strategy/freelords/ChangeLog | 6 | ||||
-rw-r--r-- | games-strategy/freelords/Manifest | 5 | ||||
-rw-r--r-- | games-strategy/freelords/files/freelords-0.3.8-gcc43.patch | 87 | ||||
-rw-r--r-- | games-strategy/freelords/freelords-0.3.8.ebuild | 15 |
4 files changed, 101 insertions, 12 deletions
diff --git a/games-strategy/freelords/ChangeLog b/games-strategy/freelords/ChangeLog index 5802b5b180d7..71b6e8853b69 100644 --- a/games-strategy/freelords/ChangeLog +++ b/games-strategy/freelords/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for games-strategy/freelords # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/freelords/ChangeLog,v 1.31 2009/01/17 14:34:45 nixnut Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-strategy/freelords/ChangeLog,v 1.32 2009/04/25 23:59:18 mr_bones_ Exp $ + + 25 Apr 2009; Michael Sterrett <mr_bones_@gentoo.org> + +files/freelords-0.3.8-gcc43.patch, freelords-0.3.8.ebuild: + gcc43 patch from Petr Behan (bug #267204); tidy 17 Jan 2009; nixnut <nixnut@gentoo.org> freelords-0.3.8.ebuild: ppc stable #253621 diff --git a/games-strategy/freelords/Manifest b/games-strategy/freelords/Manifest index 28d093307626..8a90ab8611b9 100644 --- a/games-strategy/freelords/Manifest +++ b/games-strategy/freelords/Manifest @@ -1,5 +1,6 @@ +AUX freelords-0.3.8-gcc43.patch 3477 RMD160 b4a0bddc39df4d6ebe223139bda5d254255e68ea SHA1 fac61f2b4a1b965997cc9f55bcb3da187045f846 SHA256 67fdbb2ca90f5d9551023cb862560cefbaa8020c5f94e4044723570b13bc572c AUX freelordsrc 147 RMD160 280bd37b0f3513d369d23a6333f0fb29482f64a6 SHA1 4333410f0f00e25a0a45e25ac381e99354e6741f SHA256 08849f74f79358cbf2ff6fce51c5c7580f8d720694c97ece881ff9d9c1816cda DIST freelords-0.3.8.tar.bz2 12822319 RMD160 8ed4da9726765a1fdc8f5e41df816e5b57e582d3 SHA1 45ac6dd272559be848d5a2bb684ace09279ae432 SHA256 5d7ad55a86accb8c30ac324729cbf8d752e445d896faa920f3c33f3cb4055a26 -EBUILD freelords-0.3.8.ebuild 1556 RMD160 f57df081c819e22334177835a6fdf3d570ce76f1 SHA1 2db8377752aa1b863d1f2ce7a1ad40677d82d0b0 SHA256 44ef7f3d90c7545eb1fd0aa83b0ffa543fc0be9bf235f1c810707999454fb10a -MISC ChangeLog 4233 RMD160 cf9771a95c61bce70e9aecb369096279e8cfd2b4 SHA1 1bcc03d264d1a3b5c01175a5c2859077031041a9 SHA256 b104914ee3dba0c91a7036a41a79491801b3fb3f8a128ffcddecaafb2d5b323f +EBUILD freelords-0.3.8.ebuild 1535 RMD160 2161342c608b60a5e5a3dbe91d23c3ef104c1753 SHA1 9facc83b9df784f7d301ec86da97e216d6491d0e SHA256 c2b3afdba0c70678670bda5364eca2c07c66b8f9559600651e810c2eb191aea8 +MISC ChangeLog 4404 RMD160 40d8cfa9b0436f611a8abc8272848abca1a1f9ba SHA1 b06356aae982bdd532cefcff4bb4c9d851a36c2f SHA256 00af04569eafcac4e086bd5a18d8a067a2fe99d9c6ed0c05e43903c3d9c5270d MISC metadata.xml 237 RMD160 d6d19ead6ec203eb1f689a6472dc41c37269c8d4 SHA1 e63f2403b525a0753f788d989661edc20fb1fb46 SHA256 b693aefed4fb7df9c2d008c32d9658fe7f2c94596795077d762b8e2a71e7933f diff --git a/games-strategy/freelords/files/freelords-0.3.8-gcc43.patch b/games-strategy/freelords/files/freelords-0.3.8-gcc43.patch new file mode 100644 index 000000000000..23af78ac496b --- /dev/null +++ b/games-strategy/freelords/files/freelords-0.3.8-gcc43.patch @@ -0,0 +1,87 @@ +diff -ur freelords-0.3.8/work/freelords-0.3.8/src/ArmyInfo.h xlords/src/ArmyInfo.h +--- freelords-0.3.8/work/freelords-0.3.8/src/ArmyInfo.h 2007-05-02 23:40:55.000000000 +0200 ++++ xlords/src/ArmyInfo.h 2009-04-23 14:16:51.000000000 +0200 +@@ -55,6 +55,8 @@ + */ + static void setPressable(ArmyInfo* armyinfo, bool pressable = true) + {armyinfo->d_pressable = pressable;} ++ static void enablePressable(ArmyInfo* armyinfo) ++ {setPressable(armyinfo, true);} + + private: + // EVENT HANDLER +diff -ur freelords-0.3.8/work/freelords-0.3.8/src/Threatlist.cpp xlords/src/Threatlist.cpp +--- freelords-0.3.8/work/freelords-0.3.8/src/Threatlist.cpp 2007-05-02 23:40:55.000000000 +0200 ++++ xlords/src/Threatlist.cpp 2009-04-23 14:07:04.000000000 +0200 +@@ -12,6 +12,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 <algorithm> + #include <iostream> + + #include "Threatlist.h" +@@ -226,7 +227,7 @@ + + bool Threatlist::flRemove(Threat* object) + { +- iterator threatit = find(begin(), end(), object); ++ iterator threatit = std::find(begin(), end(), object); + if (threatit != end()) + { + delete object; +diff -ur freelords-0.3.8/work/freelords-0.3.8/src/stackinfo.cpp xlords/src/stackinfo.cpp +--- freelords-0.3.8/work/freelords-0.3.8/src/stackinfo.cpp 2007-05-02 23:40:56.000000000 +0200 ++++ xlords/src/stackinfo.cpp 2009-04-23 14:16:53.000000000 +0200 +@@ -71,7 +71,7 @@ + if (selected == 1) ArmyInfo::setPressable(d_armyinfovector[last_selected_army], false); + else + { +- for_each(d_armyinfovector.begin(), d_armyinfovector.end(), ArmyInfo::setPressable); ++ std::for_each(d_armyinfovector.begin(), d_armyinfovector.end(), ArmyInfo::enablePressable); + } + } + +diff -ur freelords-0.3.8/work/freelords-0.3.8/src/stacklist.cpp xlords/src/stacklist.cpp +--- freelords-0.3.8/work/freelords-0.3.8/src/stacklist.cpp 2007-05-02 23:40:56.000000000 +0200 ++++ xlords/src/stacklist.cpp 2009-04-23 14:06:30.000000000 +0200 +@@ -12,6 +12,8 @@ + // along with this program; if not, write to the Free Software + // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + ++#include <algorithm> ++ + #include "stacklist.h" + #include "stack.h" + #include "path.h" +@@ -333,7 +335,7 @@ + bool Stacklist::flRemove(Stack* object) + { + debug("removing stack with id " << object->getId() << endl); +- iterator stackit = find(begin(), end(), object); ++ iterator stackit = std::find(begin(), end(), object); + if (stackit != end()) + { + if (d_activestack == object) +diff -ur freelords-0.3.8/work/freelords-0.3.8/src/stacklist.h xlords/src/stacklist.h +--- freelords-0.3.8/work/freelords-0.3.8/src/stacklist.h 2007-05-02 23:40:56.000000000 +0200 ++++ xlords/src/stacklist.h 2009-04-23 14:05:44.000000000 +0200 +@@ -15,6 +15,7 @@ + #ifndef STACKLIST_H + #define STACKLIST_H + ++#include <string> + #include <list> + #include <pgmessageobject.h> + #include <sigc++/object_slot.h> +diff -ur freelords-0.3.8/work/freelords-0.3.8/src/utils/extractv.cpp xlords/src/utils/extractv.cpp +--- freelords-0.3.8/work/freelords-0.3.8/src/utils/extractv.cpp 2007-05-02 23:41:02.000000000 +0200 ++++ xlords/src/utils/extractv.cpp 2009-04-23 14:18:26.000000000 +0200 +@@ -15,6 +15,7 @@ + // Andrea Paternesi 17/02/2005
+
+ #include <stdio.h>
++#include <string.h>
+ #include <string>
+ #include <vector>
+ #include <iostream>
diff --git a/games-strategy/freelords/freelords-0.3.8.ebuild b/games-strategy/freelords/freelords-0.3.8.ebuild index b7e87f228be1..fd401661c652 100644 --- a/games-strategy/freelords/freelords-0.3.8.ebuild +++ b/games-strategy/freelords/freelords-0.3.8.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/freelords/freelords-0.3.8.ebuild,v 1.6 2009/01/17 14:34:45 nixnut Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-strategy/freelords/freelords-0.3.8.ebuild,v 1.7 2009/04/25 23:59:18 mr_bones_ Exp $ EAPI=2 inherit eutils games @@ -20,15 +20,13 @@ RDEPEND="dev-libs/expat media-libs/sdl-image >=media-libs/freetype-2 >=media-libs/paragui-1.1.8 - =dev-libs/libsigc++-1.2* + dev-libs/libsigc++:1.2 nls? ( virtual/libintl )" DEPEND="${RDEPEND} nls? ( sys-devel/gettext ) dev-util/pkgconfig" -src_unpack() { - unpack ${A} - cd "${S}" +src_prepare() { sed -i \ -e '/locale/s:$(datadir):/usr/share:' \ -e '/locale/s:$(prefix):/usr:' \ @@ -36,16 +34,15 @@ src_unpack() { -e '/freelords.desktop/d' \ $(find -name 'Makefile.in*') \ || die "sed failed" + epatch "${FILESDIR}"/${P}-gcc43.patch } -src_compile() { +src_configure() { egamesconf \ --disable-dependency-tracking \ --disable-paraguitest \ $(use_enable editor) \ - $(use_enable nls) \ - || die - emake || die "emake failed" + $(use_enable nls) } src_install() { |