summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <tristan@gentoo.org>2008-05-01 13:11:33 +0000
committerTristan Heaven <tristan@gentoo.org>2008-05-01 13:11:33 +0000
commitd4a908153f685873bbf1731d683ef59dd1b442c9 (patch)
tree71f5b7e6525aa4994bece1f629f6e033a0658af0 /games-puzzle/construo
parentAdd nightly beta 2008-05-01; remove comment about svn ver from 7.0 (diff)
downloadhistorical-d4a908153f685873bbf1731d683ef59dd1b442c9.tar.gz
historical-d4a908153f685873bbf1731d683ef59dd1b442c9.tar.bz2
historical-d4a908153f685873bbf1731d683ef59dd1b442c9.zip
Fix building with gcc-4.3
Package-Manager: portage-2.1.5_rc6
Diffstat (limited to 'games-puzzle/construo')
-rw-r--r--games-puzzle/construo/ChangeLog8
-rw-r--r--games-puzzle/construo/Manifest15
-rw-r--r--games-puzzle/construo/construo-0.2.2.ebuild20
-rw-r--r--games-puzzle/construo/files/construo-0.2.2-gcc43.patch82
4 files changed, 109 insertions, 16 deletions
diff --git a/games-puzzle/construo/ChangeLog b/games-puzzle/construo/ChangeLog
index 83fa9222c0d0..10b220ec2750 100644
--- a/games-puzzle/construo/ChangeLog
+++ b/games-puzzle/construo/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for games-puzzle/construo
-# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-puzzle/construo/ChangeLog,v 1.12 2007/12/26 10:17:11 drac Exp $
+# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/construo/ChangeLog,v 1.13 2008/05/01 13:11:32 nyhm Exp $
+
+ 01 May 2008; Tristan Heaven <nyhm@gentoo.org>
+ +files/construo-0.2.2-gcc43.patch, construo-0.2.2.ebuild:
+ Fix building with gcc-4.3
26 Dec 2007; Samuli Suominen <drac@gentoo.org> construo-0.2.2.ebuild:
amd64 stable wrt #201403
diff --git a/games-puzzle/construo/Manifest b/games-puzzle/construo/Manifest
index 912572b98728..47773c98b09c 100644
--- a/games-puzzle/construo/Manifest
+++ b/games-puzzle/construo/Manifest
@@ -1,4 +1,15 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX construo-0.2.2-gcc43.patch 1785 RMD160 019a88e54cbd79114a7403f836fc35dfb4bfaf9b SHA1 5adb7a7b02c0754ce9e18e958b6a899eab49d274 SHA256 9c3c660ed4cbf2c5acaacd6d63f48aa08eeac025fc31b41118aef8fd1e9f1c65
DIST construo-0.2.2.tar.gz 442626 RMD160 7e87090e557d41cf13bf0a364fec20c115c35107 SHA1 b0a3c1ae2a25530a70d7a405a1c48bd386a1999a SHA256 93b1dc5c26aab42d886f102e501189982c28d390f8b573f8f4a42bad640ec630
-EBUILD construo-0.2.2.ebuild 1010 RMD160 4b69d8424dd9dc6e976d8b38d5b806eb42530105 SHA1 fa2281022b0eb27096557db25bef38bb3062a955 SHA256 01139974fa8e54f7bda3197dcadd55c83d2145ea20a44f0e486dd391a0a13c8e
-MISC ChangeLog 1285 RMD160 140c5c105febc610c9ff32d92971ee8b1ea8b0d2 SHA1 238d03172c9d8929af8cf69c7962b6b1a1473cf1 SHA256 30d22ae5a41245fd3575648f7be414b76f71d60df73bf3c81949661495b95baf
+EBUILD construo-0.2.2.ebuild 969 RMD160 9647e0676588f6fd573b4c031cc8d5497672ee5b SHA1 5ce641d16edb9f47172069fd16f7ac97dd6c723b SHA256 748ee92eba00d84c93c0a304f46618a911279d17fc87e2dfbcba35f5a267ef64
+MISC ChangeLog 1422 RMD160 ac0725beb39e051acc8bf4ac5dd6cf79dad248a8 SHA1 8c738c116d65002aa22fcca9444a0f296cefa26a SHA256 bac8e22bd43ceb18122e74444f6e64e88c4fcc068857365004fdfe9996fe3f57
MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.9 (GNU/Linux)
+
+iEYEARECAAYFAkgZwYoACgkQdz7hIScOUREUywCgpo4DglFJACAd4aYiApsi3mTL
+5oAAn0FP242aI6j3Vf9AoTlSliA+pCQt
+=nFbX
+-----END PGP SIGNATURE-----
diff --git a/games-puzzle/construo/construo-0.2.2.ebuild b/games-puzzle/construo/construo-0.2.2.ebuild
index cd10e0fe2c70..6df7cd0f6736 100644
--- a/games-puzzle/construo/construo-0.2.2.ebuild
+++ b/games-puzzle/construo/construo-0.2.2.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-puzzle/construo/construo-0.2.2.ebuild,v 1.13 2007/12/26 10:17:11 drac Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/construo/construo-0.2.2.ebuild,v 1.14 2008/05/01 13:11:32 nyhm Exp $
-inherit games
+inherit eutils games
DESCRIPTION="2d construction toy with objects that react on physical forces"
HOMEPAGE="http://www.nongnu.org/construo/"
@@ -15,18 +15,14 @@ IUSE=""
RDEPEND="x11-libs/libSM
x11-libs/libXxf86vm
- sys-libs/zlib"
-DEPEND="${RDEPEND}
- x11-proto/xf86vidmodeproto
x11-libs/libXt"
+DEPEND="${RDEPEND}
+ x11-proto/xf86vidmodeproto"
src_unpack() {
unpack ${A}
cd "${S}"
- sed -i \
- -e 's:<math.h>:<cmath>:g' vector.cxx \
- || die "sed failed"
-
+ epatch "${FILESDIR}"/${P}-gcc43.patch
}
src_compile() {
@@ -35,10 +31,10 @@ src_compile() {
}
src_install() {
- make \
+ emake \
DESTDIR="${D}" \
bindir="${GAMES_BINDIR}" install \
- || die "make install failed"
+ || die "emake install failed"
dodoc AUTHORS NEWS README TODO
prepgamesdirs
}
diff --git a/games-puzzle/construo/files/construo-0.2.2-gcc43.patch b/games-puzzle/construo/files/construo-0.2.2-gcc43.patch
new file mode 100644
index 000000000000..cc946b043bae
--- /dev/null
+++ b/games-puzzle/construo/files/construo-0.2.2-gcc43.patch
@@ -0,0 +1,82 @@
+--- command_line.cxx
++++ command_line.cxx
+@@ -19,7 +19,9 @@
+
+ #include <config.h>
+ #include <iostream>
+-#include <stdio.h>
++#include <cstdio>
++#include <cstdlib>
++#include <cstring>
+ #include "settings.hxx"
+ #include "command_line.hxx"
+
+--- config.hxx
++++ config.hxx
+@@ -21,6 +21,7 @@
+ #define CONFIG_HH
+
+ #include <string>
++#include <cstdlib>
+
+ class Config
+ {
+--- lisp_reader.cxx
++++ lisp_reader.cxx
+@@ -17,6 +17,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 <cstring>
+ #include "construo_error.hxx"
+ #include "lisp_reader.hxx"
+
+--- unix_system.cxx
++++ unix_system.cxx
+@@ -17,8 +17,9 @@
+ // along with this program; if not, write to the Free Software
+ // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+-#include <stdio.h>
+-#include <assert.h>
++#include <cstdio>
++#include <cassert>
++#include <cstring>
+ #include <unistd.h>
+ #include <sys/time.h>
+ #include <time.h>
+--- vector.cxx
++++ vector.cxx
+@@ -16,8 +16,8 @@
+ totally replaced old CL_Vector with this code
+ */
+
+-#include <assert.h>
+-#include <math.h>
++#include <cassert>
++#include <cmath>
+ #include "vector.hxx"
+
+ CL_Vector::CL_Vector(float x, float y, float z, float w)
+--- world.cxx
++++ world.cxx
+@@ -17,7 +17,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 <assert.h>
++#include <cassert>
++#include <cstring>
+ #include <algorithm>
+ #include "config.h"
+
+--- x11_display.cxx
++++ x11_display.cxx
+@@ -19,6 +19,7 @@
+
+ #include <config.h>
+ #include <iostream>
++#include <cstring>
+ #include <X11/Xutil.h>
+ #include <X11/cursorfont.h>
+ #include <X11/keysym.h>