Fixing bug #65141
authorPatrick Kursawe <phosphan@gentoo.org>
Thu, 7 Oct 2004 12:57:40 +0000 (12:57 +0000)
committerPatrick Kursawe <phosphan@gentoo.org>
Thu, 7 Oct 2004 12:57:40 +0000 (12:57 +0000)
app-sci/stellarium/ChangeLog
app-sci/stellarium/Manifest
app-sci/stellarium/files/0.6.0-gcc3.4.patch [new file with mode: 0644]
app-sci/stellarium/stellarium-0.6.0.ebuild

index cef5889d3f60565e24a950842846f5ae08f3a40c..470b49d329d46defd85d16f32f0511abd0083d3c 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for app-sci/stellarium
 # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-sci/stellarium/ChangeLog,v 1.10 2004/09/22 00:21:32 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-sci/stellarium/ChangeLog,v 1.11 2004/10/07 12:57:40 phosphan Exp $
+
+  07 Oct 2004; Patrick Kursawe <phosphan@gentoo.org>
+  +files/0.6.0-gcc3.4.patch, stellarium-0.6.0.ebuild:
+  Fixing for gcc 3.4 (bug #65141)
 
   21 Sep 2004; Michael Sterrett <mr_bones_@gentoo.org>
   stellarium-0.6.0.ebuild:
@@ -13,6 +17,8 @@
   stellarium-0.6.0.ebuild:
   tidy
 
+*stellarium-0.6.0 (28 Jul 2004)
+
   28 Jul 2004; Olivier Fisette <ribosome@gentoo.org>
   stellarium-0.6.0.ebuild:
   Version bump.
index 1f4cf77142c79c3f8ef726eeafb8a31189b581f8..4333b9deac5c086c00096ac83dc33a592bc582df 100644 (file)
@@ -1,6 +1,7 @@
-MD5 f461e8649b58b3bfbce1c5eb43bf6d6c ChangeLog 1383
-MD5 e4bdac528fd001633aa222d2b42fe048 metadata.xml 219
 MD5 6fb808ee71ebfb5139461cf677ef5e0e stellarium-0.5.2.ebuild 754
-MD5 8226f1fc1f623fe3c2e436e459613694 stellarium-0.6.0.ebuild 628
-MD5 66045214d764b4b038374273fd42f9ad files/digest-stellarium-0.6.0 69
+MD5 7eeab5bc61da2ad2ec794d10af0101fa stellarium-0.6.0.ebuild 722
+MD5 0c8b3c0a4765f25911b06ee61ac6f93e ChangeLog 1557
+MD5 e4bdac528fd001633aa222d2b42fe048 metadata.xml 219
 MD5 86f0c7ba8d19b134d3fc0ba76f7cb419 files/digest-stellarium-0.5.2 69
+MD5 66045214d764b4b038374273fd42f9ad files/digest-stellarium-0.6.0 69
+MD5 a4fae4fd9a24841590bae608376c0842 files/0.6.0-gcc3.4.patch 1601
diff --git a/app-sci/stellarium/files/0.6.0-gcc3.4.patch b/app-sci/stellarium/files/0.6.0-gcc3.4.patch
new file mode 100644 (file)
index 0000000..a6d9f78
--- /dev/null
@@ -0,0 +1,45 @@
+diff -ru src/callback_helpers.hpp src.new/callback_helpers.hpp
+--- src/callback_helpers.hpp   2003-08-21 15:51:58.000000000 +0200
++++ src.new/callback_helpers.hpp       2004-10-07 14:30:40.235729977 +0200
+@@ -204,7 +204,7 @@
+ template<bool Condition, class Then, class Else>
+ struct IF {
+    typedef typename Selector<Condition>::RET select;
+-   typedef typename select::Result<Then,Else>::RET RET;
++   typedef typename boost::details::Selector<Condition>::RET::template Result<Then,Else>::RET RET;
+ };
+ 
+ 
+diff -ru src/stel_atmosphere.cpp src.new/stel_atmosphere.cpp
+--- src/stel_atmosphere.cpp    2004-05-31 16:33:10.000000000 +0200
++++ src.new/stel_atmosphere.cpp        2004-10-07 14:31:25.347505081 +0200
+@@ -30,7 +30,7 @@
+ stel_atmosphere::stel_atmosphere() : sky_resolution(48), tab_sky(NULL)
+ {
+       // Create the vector array used to store the sky color on the full field of view
+-      tab_sky = new (Vec3f*)[sky_resolution+1];
++      tab_sky = new Vec3f*[sky_resolution+1];
+       for (int k=0; k<sky_resolution+1 ;k++)
+       {
+               tab_sky[k] = new Vec3f[sky_resolution+1];
+diff -ru src/vecmath.h src.new/vecmath.h
+--- src/vecmath.h      2003-08-08 14:33:28.000000000 +0200
++++ src.new/vecmath.h  2004-10-07 14:28:15.534702249 +0200
+@@ -758,7 +758,7 @@
+                                               0, 0, 1, 0,
+                                               a.v[0], a.v[1], a.v[2], 1);
+ }
+-
++/*
+ template<class T> Matrix4<T> Matrix4<T>::rotation(const Vector3<T>& a)
+ {
+     T c = (T) cos(angle);
+@@ -769,7 +769,7 @@
+                                               a.v[0]*a.v[2]*d+a.v[1]*s, a.v[1]*a.v[2]*d-a.v[0]*s, a.v[2]*a.v[2]*d+c, 0,
+                                               0,0,0,1 );
+ }
+-
++*/
+ template<class T> Matrix4<T> Matrix4<T>::xrotation(T angle)
+ {
+     T c = (T) cos(angle);
index b4ef1b8fddf6966578398d1a5883f17ac9273a07..d30b2c55680b5e41b74a7d372073fdd39b938086 100644 (file)
@@ -1,6 +1,8 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-sci/stellarium/stellarium-0.6.0.ebuild,v 1.4 2004/09/22 00:21:32 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-sci/stellarium/stellarium-0.6.0.ebuild,v 1.5 2004/10/07 12:57:40 phosphan Exp $
+
+inherit eutils
 
 DESCRIPTION="Stellarium renders 3D photo-realistic skies in real time."
 HOMEPAGE="http://stellarium.free.fr/"
@@ -15,6 +17,12 @@ DEPEND="virtual/x11
        virtual/opengl
        media-libs/libsdl"
 
+src_unpack() {
+       unpack ${A}
+       cd ${S}
+       epatch ${FILESDIR}/${PV}-gcc3.4.patch
+}
+
 src_install() {
        make DESTDIR="${D}" install || die "make install failed"
        dodoc AUTHORS ChangeLog INSTALL README TODO