summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2008-05-13 07:24:51 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2008-05-13 07:24:51 +0000
commitb3bbf24feb07380d6a4854a911e072c5ab3e3970 (patch)
treeb1e69590febc7ce099bda1658b8d24e5678f2ef0 /media-gfx/k3d
parentStable on ppc64; bug #221863 (diff)
downloadhistorical-b3bbf24feb07380d6a4854a911e072c5ab3e3970.tar.gz
historical-b3bbf24feb07380d6a4854a911e072c5ab3e3970.tar.bz2
historical-b3bbf24feb07380d6a4854a911e072c5ab3e3970.zip
Fix compability with libsigc++-2.2 wrt #218763 and building with GCC 4.3 wrt #218760, thanks to Peter Alfredsen.
Package-Manager: portage-2.1.5_rc10
Diffstat (limited to 'media-gfx/k3d')
-rw-r--r--media-gfx/k3d/ChangeLog10
-rw-r--r--media-gfx/k3d/Manifest5
-rw-r--r--media-gfx/k3d/files/k3d-0.6.7.0-gcc43.patch292
-rw-r--r--media-gfx/k3d/files/k3d-0.6.7.0-sigc2.patch21
-rw-r--r--media-gfx/k3d/k3d-0.6.7.0-r1.ebuild85
5 files changed, 411 insertions, 2 deletions
diff --git a/media-gfx/k3d/ChangeLog b/media-gfx/k3d/ChangeLog
index 7b9375ae0778..d2f3bff40a74 100644
--- a/media-gfx/k3d/ChangeLog
+++ b/media-gfx/k3d/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for media-gfx/k3d
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/k3d/ChangeLog,v 1.35 2008/01/15 00:28:58 maekke Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/k3d/ChangeLog,v 1.36 2008/05/13 07:24:50 drac Exp $
+
+*k3d-0.6.7.0-r1 (13 May 2008)
+
+ 13 May 2008; Samuli Suominen <drac@gentoo.org>
+ +files/k3d-0.6.7.0-gcc43.patch, +files/k3d-0.6.7.0-sigc2.patch,
+ +k3d-0.6.7.0-r1.ebuild:
+ Fix compability with libsigc++-2.2 wrt #218763 and building with GCC 4.3
+ wrt #218760, thanks to Peter Alfredsen.
15 Jan 2008; Markus Meier <maekke@gentoo.org>
-files/k3d-0.5.0.34-nls.patch, -files/k3d-0.5.0.37-nls.patch,
diff --git a/media-gfx/k3d/Manifest b/media-gfx/k3d/Manifest
index c269b5507586..b75f3a134ae4 100644
--- a/media-gfx/k3d/Manifest
+++ b/media-gfx/k3d/Manifest
@@ -1,4 +1,7 @@
+AUX k3d-0.6.7.0-gcc43.patch 8957 RMD160 930ae5504b03eba813af5c70c56347bbf3d04955 SHA1 433dc009e8bfddac54d2d9d52d435cf68f42b957 SHA256 3384663135b4d565a67c7b14306ff8727ca1bb49d6a30cf194e1c3453672dc7e
+AUX k3d-0.6.7.0-sigc2.patch 546 RMD160 c1494b7c60ef3fbabcb353b6ebc86dd04f6413bc SHA1 611a87069e6db77b5817e8c0226cf2b2dd990756 SHA256 632325bcb94133500af6eeb41824934b8c0199469923ca7be8a501a61d5db9e6
DIST k3d-0.6.7.0-src.tar.bz2 5003324 RMD160 cb3746a9a403e6ac7d334f96db8bc716c06dc55d SHA1 9bcbdb6d8aa274baa7200e3c267f303fb61a733a SHA256 0ee773767868cfe452f95daa03de541488f2ff81c629ba38385c87ff0ed55e9c
+EBUILD k3d-0.6.7.0-r1.ebuild 2043 RMD160 e8e217d00dc8b64e371c5819883100a2454f3c94 SHA1 f53f674819d2b2612a0f011b7c7ab2f579d12727 SHA256 9020b8c246916e3501a971f4412b6f7aaa68a23f03991cdda6926062d10c1497
EBUILD k3d-0.6.7.0.ebuild 1977 RMD160 3bf0f5b250cd1e9a712335accc07425d281b5ace SHA1 7c6253c45b9b486c9a1237c6e32b26e08b97ff70 SHA256 1fdbc2a5910cf8a5db46cb9f343e11c5beebd3e3b1daa013ac49fdd23f8c46fc
-MISC ChangeLog 5528 RMD160 7080606384b7662cda18f3d26c3781891390e4fe SHA1 42c6c9980122d6f6fa89283debf7ab0dfc3cb0a1 SHA256 a129891fd1a05a045ebe3301d1a084e1264192befc05be6a96ba64b8d7cf2d9b
+MISC ChangeLog 5816 RMD160 d2b7a9ad0cf1cfad480f1e38d275757340a04683 SHA1 e8e416d75b5503cd452a4de75d2c74da4d48755e SHA256 7344820cd7eced789482559fa837b8cf2fb64ebcf92295712b77774795cafc1e
MISC metadata.xml 161 RMD160 60f70b15d67f0e6aafc59833b2f0a30e30b51765 SHA1 1c35398222ef7ed670c31965e42cca77fe4b1da6 SHA256 e8daadc5e27e3ef1148993b5b48d96e93bc36d798a1f416693f7f8c84be427e1
diff --git a/media-gfx/k3d/files/k3d-0.6.7.0-gcc43.patch b/media-gfx/k3d/files/k3d-0.6.7.0-gcc43.patch
new file mode 100644
index 000000000000..1d148e4e2bb0
--- /dev/null
+++ b/media-gfx/k3d/files/k3d-0.6.7.0-gcc43.patch
@@ -0,0 +1,292 @@
+diff -NrU5 k3d-0.6.7.0.orig/hapy/src/Assert.cc k3d-0.6.7.0/hapy/src/Assert.cc
+--- k3d-0.6.7.0.orig/hapy/src/Assert.cc 2004-01-12 15:21:41.000000000 +0100
++++ k3d-0.6.7.0/hapy/src/Assert.cc 2008-04-21 18:49:36.000000000 +0200
+@@ -3,10 +3,11 @@
+
+ #include <Hapy/Assert.h>
+ #include <Hapy/IoStream.h>
+
+ #include <cstring>
++#include <cstdlib>
+ #include <errno.h>
+
+
+ void Hapy::Complain(const char *fname, int lineno) {
+ cerr << fname << ':' << lineno << ": " << strerror(errno) << endl;
+diff -NrU5 k3d-0.6.7.0.orig/hapy/src/RuleId.cc k3d-0.6.7.0/hapy/src/RuleId.cc
+--- k3d-0.6.7.0.orig/hapy/src/RuleId.cc 2004-02-12 11:04:59.000000000 +0100
++++ k3d-0.6.7.0/hapy/src/RuleId.cc 2008-04-21 18:49:36.000000000 +0200
+@@ -1,7 +1,9 @@
+ /* Hapy is a public domain software. See Hapy README file for the details. */
+
++#include <limits>
++
+ #include <Hapy/Assert.h>
+ #include <Hapy/RuleId.h>
+ #include <Hapy/NumericLimits.h>
+ #include <Hapy/IoStream.h>
+
+diff -NrU5 k3d-0.6.7.0.orig/k3dsdk/algebra.h k3d-0.6.7.0/k3dsdk/algebra.h
+--- k3d-0.6.7.0.orig/k3dsdk/algebra.h 2006-03-16 16:23:14.000000000 +0100
++++ k3d-0.6.7.0/k3dsdk/algebra.h 2008-04-21 18:49:36.000000000 +0200
+@@ -28,10 +28,11 @@
+ #include "basic_math.h"
+ #include "log.h"
+ #include "vectors.h"
+
+ #include <cfloat>
++#include <cstring>
+
+ /****************************************************************
+ *
+ * C++ Vector and Matrix Algebra routines
+ * Author: Jean-Francois DOUE
+diff -NrU5 k3d-0.6.7.0.orig/k3dsdk/bitmap.h k3d-0.6.7.0/k3dsdk/bitmap.h
+--- k3d-0.6.7.0.orig/k3dsdk/bitmap.h 2006-08-05 06:22:03.000000000 +0200
++++ k3d-0.6.7.0/k3dsdk/bitmap.h 2008-04-21 18:49:36.000000000 +0200
+@@ -29,11 +29,11 @@
+
+ #include <algorithm>
+ #include <cmath>
+ #include <functional>
+ #include <iostream>
+-#include <string>
++#include <cstring>
+
+ namespace k3d
+ {
+
+ /// Defines data measured in pixels
+diff -NrU5 k3d-0.6.7.0.orig/k3dsdk/explicit_snap_source.cpp k3d-0.6.7.0/k3dsdk/explicit_snap_source.cpp
+--- k3d-0.6.7.0.orig/k3dsdk/explicit_snap_source.cpp 2006-02-15 03:31:06.000000000 +0100
++++ k3d-0.6.7.0/k3dsdk/explicit_snap_source.cpp 2008-04-21 18:49:36.000000000 +0200
+@@ -23,10 +23,12 @@
+
+ #include "explicit_snap_source.h"
+ #include "result.h"
+ #include "vectors.h"
+
++#include <algorithm>
++
+ namespace k3d
+ {
+
+ ////////////////////////////////////////////////////////////////////////////////////
+ // explicit_snap_source
+diff -NrU5 k3d-0.6.7.0.orig/k3dsdk/explicit_snap_target.cpp k3d-0.6.7.0/k3dsdk/explicit_snap_target.cpp
+--- k3d-0.6.7.0.orig/k3dsdk/explicit_snap_target.cpp 2006-02-15 03:31:06.000000000 +0100
++++ k3d-0.6.7.0/k3dsdk/explicit_snap_target.cpp 2008-04-21 18:49:36.000000000 +0200
+@@ -23,10 +23,12 @@
+
+ #include "explicit_snap_target.h"
+ #include "result.h"
+ #include "vectors.h"
+
++#include <algorithm>
++
+ namespace k3d
+ {
+
+ ////////////////////////////////////////////////////////////////////////////////////
+ // explicit_snap_target
+diff -NrU5 k3d-0.6.7.0.orig/k3dsdk/gl_info.cpp k3d-0.6.7.0/k3dsdk/gl_info.cpp
+--- k3d-0.6.7.0.orig/k3dsdk/gl_info.cpp 2004-12-19 01:39:24.000000000 +0100
++++ k3d-0.6.7.0/k3dsdk/gl_info.cpp 2008-04-21 18:49:36.000000000 +0200
+@@ -38,10 +38,11 @@
+
+ #include <cassert>
+ #include <iostream>
+ #include <sstream>
+ #include <string>
++#include <cstring>
+
+ namespace k3d
+ {
+
+ namespace gl
+diff -NrU5 k3d-0.6.7.0.orig/k3dsdk/log_control.h k3d-0.6.7.0/k3dsdk/log_control.h
+--- k3d-0.6.7.0.orig/k3dsdk/log_control.h 2007-01-06 20:58:14.000000000 +0100
++++ k3d-0.6.7.0/k3dsdk/log_control.h 2008-04-21 18:49:36.000000000 +0200
+@@ -20,10 +20,12 @@
+ // License along with this program; if not, write to the Free Software
+ // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+ #include "signal_system.h"
+
++#include <cstdlib>
++
+ namespace k3d
+ {
+
+ /// Enumerates available log levels
+ typedef enum
+diff -NrU5 k3d-0.6.7.0.orig/k3dsdk/log.cpp k3d-0.6.7.0/k3dsdk/log.cpp
+--- k3d-0.6.7.0.orig/k3dsdk/log.cpp 2007-01-12 07:10:05.000000000 +0100
++++ k3d-0.6.7.0/k3dsdk/log.cpp 2008-04-21 18:49:36.000000000 +0200
+@@ -21,10 +21,11 @@
+ #include "result.h"
+
+ #include <iostream>
+ #include <sstream>
+ #include <vector>
++#include <cstdlib>
+
+ #ifdef K3D_PLATFORM_WIN32
+
+ #include <time.h>
+ #include <windows.h>
+diff -NrU5 k3d-0.6.7.0.orig/k3dsdk/socket.cpp k3d-0.6.7.0/k3dsdk/socket.cpp
+--- k3d-0.6.7.0.orig/k3dsdk/socket.cpp 2006-10-06 06:24:56.000000000 +0200
++++ k3d-0.6.7.0/k3dsdk/socket.cpp 2008-04-21 18:49:36.000000000 +0200
+@@ -22,10 +22,11 @@
+ */
+
+ #include "result.h"
+ #include "socket.h"
+ #include "string_cast.h"
++#include <cstring>
+
+ #ifdef K3D_PLATFORM_WIN32
+
+ #include "winsock2.h"
+
+diff -NrU5 k3d-0.6.7.0.orig/k3dsdk/xml.cpp k3d-0.6.7.0/k3dsdk/xml.cpp
+--- k3d-0.6.7.0.orig/k3dsdk/xml.cpp 2006-04-26 06:44:19.000000000 +0200
++++ k3d-0.6.7.0/k3dsdk/xml.cpp 2008-04-21 18:50:24.000000000 +0200
+@@ -28,10 +28,11 @@
+
+ #include <iostream>
+ #include <iterator>
+ #include <stack>
+ #include <stdexcept>
++#include <cstring>
+
+ #if defined K3D_HAVE_EXPAT
+
+ #include <expat.h>
+ #define BACKEND_PARSER expat_parser
+diff -NrU5 k3d-0.6.7.0.orig/modules/bitmap/bitmap_element.h k3d-0.6.7.0/modules/bitmap/bitmap_element.h
+--- k3d-0.6.7.0.orig/modules/bitmap/bitmap_element.h 2006-08-05 06:25:11.000000000 +0200
++++ k3d-0.6.7.0/modules/bitmap/bitmap_element.h 2008-04-21 18:49:36.000000000 +0200
+@@ -25,10 +25,12 @@
+ */
+
+ #include <k3dsdk/algebra.h>
+ #include <k3dsdk/bitmap.h>
+
++#include <memory>
++
+ namespace libk3dbitmap
+ {
+
+ /*
+ The relationship between 'pixel space' and (2d) 'world space'
+diff -NrU5 k3d-0.6.7.0.orig/ngui/angle_axis_control.h k3d-0.6.7.0/ngui/angle_axis_control.h
+--- k3d-0.6.7.0.orig/ngui/angle_axis_control.h 2006-06-17 21:05:47.000000000 +0200
++++ k3d-0.6.7.0/ngui/angle_axis_control.h 2008-04-21 18:49:36.000000000 +0200
+@@ -27,10 +27,11 @@
+ #include "ui_component.h"
+
+ #include <k3dsdk/algebra.h>
+ #include <k3dsdk/signal_system.h>
+
++#include <memory>
+ #include <gtkmm/table.h>
+
+ namespace Gtk { class Button; }
+ namespace k3d { class iproperty; }
+ namespace k3d { class istate_recorder; }
+diff -NrU5 k3d-0.6.7.0.orig/ngui/bitmap_preview.h k3d-0.6.7.0/ngui/bitmap_preview.h
+--- k3d-0.6.7.0.orig/ngui/bitmap_preview.h 2006-07-05 06:49:43.000000000 +0200
++++ k3d-0.6.7.0/ngui/bitmap_preview.h 2008-04-21 18:49:36.000000000 +0200
+@@ -29,10 +29,12 @@
+
+ #include <k3dsdk/bitmap.h>
+
+ #include <gtkmm/buttonbox.h>
+
++#include <memory>
++
+ namespace Gtk { class Image; }
+ namespace k3d { class idag; }
+ namespace k3d { class iproperty; }
+
+ namespace libk3dngui
+diff -NrU5 k3d-0.6.7.0.orig/ngui/bounding_box.h k3d-0.6.7.0/ngui/bounding_box.h
+--- k3d-0.6.7.0.orig/ngui/bounding_box.h 2006-06-17 21:05:47.000000000 +0200
++++ k3d-0.6.7.0/ngui/bounding_box.h 2008-04-21 18:49:36.000000000 +0200
+@@ -29,10 +29,12 @@
+ #include <k3dsdk/signal_system.h>
+ #include <k3dsdk/bounding_box.h>
+
+ #include <gtkmm/table.h>
+
++#include <memory>
++
+ // Forward declarations
+ namespace Gtk { class Button; }
+ namespace k3d { class iproperty; }
+ namespace k3d { class istate_recorder; }
+
+diff -NrU5 k3d-0.6.7.0.orig/ngui/entry.h k3d-0.6.7.0/ngui/entry.h
+--- k3d-0.6.7.0.orig/ngui/entry.h 2006-06-17 21:05:48.000000000 +0200
++++ k3d-0.6.7.0/ngui/entry.h 2008-04-21 18:49:36.000000000 +0200
+@@ -29,10 +29,12 @@
+ #include "ui_component.h"
+
+ #include <k3dsdk/iproperty.h>
+ #include <k3dsdk/iwritable_property.h>
+
++#include <memory>
++
+ namespace k3d { class istate_recorder; }
+
+ namespace libk3dngui
+ {
+
+diff -NrU5 k3d-0.6.7.0.orig/ngui/ui_component.h k3d-0.6.7.0/ngui/ui_component.h
+--- k3d-0.6.7.0.orig/ngui/ui_component.h 2006-06-17 21:05:51.000000000 +0200
++++ k3d-0.6.7.0/ngui/ui_component.h 2008-04-21 18:49:36.000000000 +0200
+@@ -20,10 +20,12 @@
+ // License along with this program; if not, write to the Free Software
+ // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+ #include <k3dsdk/command_node.h>
+
++#include <memory>
++
+ namespace Glib { class ustring; }
+ namespace Gtk { class Tooltips; }
+
+ namespace libk3dngui
+ {
+diff -NrU5 k3d-0.6.7.0.orig/renderjob/main.cpp k3d-0.6.7.0/renderjob/main.cpp
+--- k3d-0.6.7.0.orig/renderjob/main.cpp 2007-01-23 05:06:33.000000000 +0100
++++ k3d-0.6.7.0/renderjob/main.cpp 2008-04-21 18:49:36.000000000 +0200
+@@ -29,10 +29,11 @@
+ #include <k3dsdk/utility.h>
+ #include <k3dsdk/version.h>
+
+ #include <iostream>
+ #include <vector>
++#include <algorithm>
+
+ namespace
+ {
+
+ typedef std::vector<std::string> string_array;
+diff -NrU5 k3d-0.6.7.0.orig/surface_polygonizer/jules_bloomenthal.cpp k3d-0.6.7.0/surface_polygonizer/jules_bloomenthal.cpp
+--- k3d-0.6.7.0.orig/surface_polygonizer/jules_bloomenthal.cpp 2005-11-24 21:19:23.000000000 +0100
++++ k3d-0.6.7.0/surface_polygonizer/jules_bloomenthal.cpp 2008-04-21 18:49:36.000000000 +0200
+@@ -23,10 +23,11 @@
+ #include <k3dsdk/result.h>
+
+ #include "jules_bloomenthal.h"
+
+ #include <iostream>
++#include <algorithm>
+
+ // Number of iterations (convergence)
+ const int RES = 10;
+
+ // Directions
diff --git a/media-gfx/k3d/files/k3d-0.6.7.0-sigc2.patch b/media-gfx/k3d/files/k3d-0.6.7.0-sigc2.patch
new file mode 100644
index 000000000000..be0b8f13e873
--- /dev/null
+++ b/media-gfx/k3d/files/k3d-0.6.7.0-sigc2.patch
@@ -0,0 +1,21 @@
+--- k3d-0.6.7.0/k3dsdk/node.cpp~ 2006-05-31 22:27:27.000000000 +0200
++++ k3d-0.6.7.0/k3dsdk/node.cpp 2008-04-01 11:32:56.000000000 +0200
+@@ -26,6 +26,7 @@
+ #include "iplugin_factory.h"
+ #include "node.h"
+
++#include <sigc++/sigc++.h>
+ #include <algorithm>
+ #include <iostream>
+
+--- k3d-0.6.7.0/k3dsdk/mesh_modifier.h~ 2006-02-19 06:43:39.000000000 +0100
++++ k3d-0.6.7.0/k3dsdk/mesh_modifier.h 2008-04-01 11:32:52.000000000 +0200
+@@ -27,6 +27,8 @@
+ #include "imesh_source.h"
+ #include "mesh.h"
+
++#include <sigc++/sigc++.h>
++
+ namespace k3d
+ {
+
diff --git a/media-gfx/k3d/k3d-0.6.7.0-r1.ebuild b/media-gfx/k3d/k3d-0.6.7.0-r1.ebuild
new file mode 100644
index 000000000000..2d8e04cf044e
--- /dev/null
+++ b/media-gfx/k3d/k3d-0.6.7.0-r1.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/k3d/k3d-0.6.7.0-r1.ebuild,v 1.1 2008/05/13 07:24:50 drac Exp $
+
+inherit eutils
+
+DESCRIPTION="A free 3D modeling, animation, and rendering system"
+HOMEPAGE="http://www.k-3d.org/"
+SRC_URI="mirror://sourceforge/k3d/${P}-src.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="expat gnome graphviz imagemagick jpeg nls openexr plib png python svg tiff truetype xml"
+
+RDEPEND="virtual/opengl
+ virtual/glu
+ dev-libs/boost
+ expat? ( dev-libs/expat )
+ xml? ( dev-libs/libxml2 )
+ !xml? ( dev-libs/expat )
+ truetype? ( >=media-libs/freetype-2 )
+ gnome? ( gnome-base/libgnome )
+ graphviz? ( media-gfx/graphviz )
+ imagemagick? ( media-gfx/imagemagick )
+ jpeg? ( media-libs/jpeg )
+ >=dev-cpp/glibmm-2.6
+ >=dev-cpp/gtkmm-2.6
+ >=x11-libs/gtkglext-1.0.6-r3
+ openexr? ( media-libs/openexr )
+ plib? ( media-libs/plib )
+ png? ( media-libs/libpng )
+ python? ( >=dev-lang/python-2.3 )
+ tiff? ( media-libs/tiff )
+ >=dev-libs/libsigc++-2.2
+ gnome-base/librsvg
+ x11-libs/libXmu
+ x11-libs/libXt
+ x11-libs/libICE
+ x11-libs/libSM
+ media-libs/mesa"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-gcc43.patch \
+ "${FILESDIR}"/${P}-sigc2.patch
+}
+
+src_compile() {
+ local myconf="--with-ngui"
+ if use expat || ! use xml ; then
+ myconf="--without-libxml2"
+ else
+ myconf="--with-libxml2"
+ fi
+
+ econf \
+ $(use_enable nls) \
+ --with-external-boost \
+ $(use_with truetype freetype2) \
+ $(use_with gnome) \
+ $(use_with graphviz) \
+ $(use_with imagemagick) \
+ $(use_with jpeg) \
+ $(use_with openexr) \
+ $(use_with plib) \
+ $(use_with png) \
+ $(use_with python) \
+ $(use_with svg svg-icons) \
+ $(use_with tiff) \
+ ${myconf} \
+ || die
+ emake || die
+}
+
+src_install() {
+ make install DESTDIR="${D}" || die
+ dodoc AUTHORS NEWS README TODO
+ #missing dir
+ dodir /usr/share/k3d/shaders/layered
+ keepdir /usr/share/k3d/shaders/layered
+}