diff --git a/0001-update-to-new-libwpg.patch b/0001-update-to-new-libwpg.patch deleted file mode 100644 index c745143..0000000 --- a/0001-update-to-new-libwpg.patch +++ /dev/null @@ -1,112 +0,0 @@ -From 127777fe3298bcdfe45d74b36f77b8238ebb6937 Mon Sep 17 00:00:00 2001 -From: David Tardon -Date: Tue, 27 May 2014 16:47:39 +0200 -Subject: [PATCH] switch to librevenge-based import libs - ---- - configure.ac | 19 ++--------------- - src/extension/internal/wpg-input.cpp | 41 ++++++++++++------------------------ - 2 files changed, 15 insertions(+), 45 deletions(-) - -diff --git a/configure.ac b/configure.ac -index fcff879..4bce58c 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -676,23 +676,8 @@ dnl ****************************** - - with_libwpg=no - --PKG_CHECK_MODULES(LIBWPG01, libwpg-0.1 libwpg-stream-0.1, with_libwpg01=yes, with_libwpg01=no) --if test "x$with_libwpg01" = "xyes"; then -- AC_DEFINE(WITH_LIBWPG01,1,[Build in libwpg 0.1.x]) -- with_libwpg=yes -- AC_SUBST(LIBWPG_LIBS, $LIBWPG01_LIBS) -- AC_SUBST(LIBWPG_CFLAGS, $LIBWPG01_CFLAGS) --fi --AM_CONDITIONAL(WITH_LIBWPG01, test "x$with_libwpg01" = "xyes") -- --PKG_CHECK_MODULES(LIBWPG02, libwpg-0.2 libwpd-0.9 libwpd-stream-0.9, with_libwpg02=yes, with_libwpg02=no) --if test "x$with_libwpg02" = "xyes"; then -- AC_DEFINE(WITH_LIBWPG02,1,[Build in libwpg 0.2.x]) -- with_libwpg=yes -- AC_SUBST(LIBWPG_LIBS, $LIBWPG02_LIBS) -- AC_SUBST(LIBWPG_CFLAGS, $LIBWPG02_CFLAGS) --fi --AM_CONDITIONAL(WITH_LIBWPG02, test "x$with_libwpg02" = "xyes") -+PKG_CHECK_MODULES(LIBWPG, libwpg-0.3 librevenge-0.0 librevenge-stream-0.0, with_libwpg=yes, with_libwpg=no) -+AM_CONDITIONAL(WITH_LIBWPG01, test "x$with_libwpg" = "xyes") - - if test "x$with_libwpg" = "xyes"; then - AC_DEFINE(WITH_LIBWPG,1,[Build in libwpg]) -diff --git a/src/extension/internal/wpg-input.cpp b/src/extension/internal/wpg-input.cpp -index 5c5cb65..71c7b44 100644 ---- a/src/extension/internal/wpg-input.cpp -+++ b/src/extension/internal/wpg-input.cpp -@@ -48,17 +48,8 @@ - #include "extension/input.h" - #include "document.h" - --// Take a guess and fallback to 0.1.x if no configure has run --#if !defined(WITH_LIBWPG01) && !defined(WITH_LIBWPG02) --#define WITH_LIBWPG01 1 --#endif -- - #include "libwpg/libwpg.h" --#if WITH_LIBWPG01 --#include "libwpg/WPGStreamImplementation.h" --#elif WITH_LIBWPG02 --#include "libwpd-stream/libwpd-stream.h" --#endif -+#include "librevenge-stream/librevenge-stream.h" - - using namespace libwpg; - -@@ -69,17 +60,9 @@ namespace Internal { - - SPDocument * - WpgInput::open(Inkscape::Extension::Input * mod, const gchar * uri) { --#if WITH_LIBWPG01 -- WPXInputStream* input = new libwpg::WPGFileStream(uri); --#elif WITH_LIBWPG02 -- WPXInputStream* input = new WPXFileStream(uri); --#endif -- if (input->isOLEStream()) { --#if WITH_LIBWPG01 -- WPXInputStream* olestream = input->getDocumentOLEStream(); --#elif WITH_LIBWPG02 -- WPXInputStream* olestream = input->getDocumentOLEStream("PerfectOffice_MAIN"); --#endif -+ librevenge::RVNGInputStream* input = new librevenge::RVNGFileStream(uri); -+ if (input->isStructured()) { -+ librevenge::RVNGInputStream* olestream = input->getSubStreamByName("PerfectOffice_MAIN"); - if (olestream) { - delete input; - input = olestream; -@@ -94,15 +77,17 @@ WpgInput::open(Inkscape::Extension::Input * mod, const gchar * uri) { - return NULL; - } - --#if WITH_LIBWPG01 -- libwpg::WPGString output; --#elif WITH_LIBWPG02 -- WPXString output; --#endif -- if (!libwpg::WPGraphics::generateSVG(input, output)) { -+ librevenge::RVNGStringVector vec; -+ librevenge::RVNGSVGDrawingGenerator generator(vec, ""); -+ -+ if (!libwpg::WPGraphics::parse(input, &generator) || vec.empty() || vec[0].empty()) -+ { - delete input; - return NULL; -- } -+ } -+ -+ librevenge::RVNGString output("\n\n"); -+ output.append(vec[0]); - - //printf("I've got a doc: \n%s", painter.document.c_str()); - --- -1.9.3 - diff --git a/inkscape-0.48.2-gcc47.patch b/inkscape-0.48.2-gcc47.patch deleted file mode 100644 index cca69c6..0000000 --- a/inkscape-0.48.2-gcc47.patch +++ /dev/null @@ -1,22 +0,0 @@ -http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/10398 - -=== modified file 'src/graphlayout.cpp' ---- src/graphlayout.cpp 2010-12-12 08:40:34 +0000 -+++ src/graphlayout.cpp 2011-07-02 12:08:37 +0000 -@@ -156,11 +156,12 @@ - ++i) - { - SPItem *iu=*i; -- map::iterator i=nodelookup.find(iu->getId()); -- if(i==nodelookup.end()) { -+ map::iterator i_iter=nodelookup.find(iu->getId()); -+ map::iterator i_iter_end=nodelookup.end(); -+ if(i_iter==i_iter_end) { - continue; - } -- unsigned u=i->second; -+ unsigned u=i_iter->second; - GSList *nlist=iu->avoidRef->getAttachedConnectors(Avoid::runningFrom); - list connectors; - - diff --git a/inkscape-0.48.2-glib.patch b/inkscape-0.48.2-glib.patch deleted file mode 100644 index 88e9f61..0000000 --- a/inkscape-0.48.2-glib.patch +++ /dev/null @@ -1,2445 +0,0 @@ -Adjust for new glib.h include rules. - -diff --git a/src/application/application.h b/src/application/application.h -index fce6bd4..749790a 100644 ---- a/src/application/application.h -+++ b/src/application/application.h -@@ -13,7 +13,7 @@ - #ifndef INKSCAPE_APPLICATION_APPLICATION_H - #define INKSCAPE_APPLICATION_APPLICATION_H - --#include -+#include - - namespace Gtk { - class Main; -diff --git a/src/application/editor.h b/src/application/editor.h -index 4545022..6a11ec9 100644 ---- a/src/application/editor.h -+++ b/src/application/editor.h -@@ -16,7 +16,7 @@ - #define INKSCAPE_APPLICATION_EDITOR_H - - #include --#include -+#include - #include - #include - #include "app-prototype.h" -diff --git a/src/attributes-test.h b/src/attributes-test.h -index 6677294..2621f93 100644 ---- a/src/attributes-test.h -+++ b/src/attributes-test.h -@@ -6,7 +6,6 @@ - - #include - #include --#include - #include "attributes.h" - #include "streq.h" - -diff --git a/src/attributes.cpp b/src/attributes.cpp -index 5d3a008..97b23c6 100644 ---- a/src/attributes.cpp -+++ b/src/attributes.cpp -@@ -17,8 +17,7 @@ - # include "config.h" - #endif - --#include // g_assert() --#include -+#include - #include "attributes.h" - - typedef struct { -diff --git a/src/attributes.h b/src/attributes.h -index 82ac962..4cd3459 100644 ---- a/src/attributes.h -+++ b/src/attributes.h -@@ -13,8 +13,7 @@ - * - * Released under GNU GPL, read the file 'COPYING' for more information - */ --#include --#include -+#include - - unsigned int sp_attribute_lookup(gchar const *key); - unsigned char const *sp_attribute_name(unsigned int id); -diff --git a/src/bind/javabind.cpp b/src/bind/javabind.cpp -index 6dc8c9a..36d55f6 100644 ---- a/src/bind/javabind.cpp -+++ b/src/bind/javabind.cpp -@@ -52,7 +52,7 @@ - #include "javabind-private.h" - #include - #include --#include -+#include - - //For repr and document - #include -diff --git a/src/color-profile-fns.h b/src/color-profile-fns.h -index c8c51b5..41d8fc6 100644 ---- a/src/color-profile-fns.h -+++ b/src/color-profile-fns.h -@@ -6,7 +6,7 @@ - */ - - #include --#include -+#include - #if ENABLE_LCMS - #include - #include -diff --git a/src/color-profile.h b/src/color-profile.h -index fa8f353..029b232 100644 ---- a/src/color-profile.h -+++ b/src/color-profile.h -@@ -5,7 +5,7 @@ - * SPColorProfile: SVG implementation - */ - --#include -+#include - #include - #include - #if ENABLE_LCMS -diff --git a/src/color-rgba.h b/src/color-rgba.h -index fc52b19..39b2975 100644 ---- a/src/color-rgba.h -+++ b/src/color-rgba.h -@@ -12,8 +12,7 @@ - #ifndef SEEN_COLOR_RGBA_H - #define SEEN_COLOR_RGBA_H - --#include // g_assert() --#include -+#include - #include "libnr/nr-pixops.h" - #include "decimal-round.h" - -diff --git a/src/conn-avoid-ref.h b/src/conn-avoid-ref.h -index 653b1d7..f276634 100644 ---- a/src/conn-avoid-ref.h -+++ b/src/conn-avoid-ref.h -@@ -13,7 +13,7 @@ - * Released under GNU GPL, read the file 'COPYING' for more information - */ - --#include -+#include - #include - #include - -diff --git a/src/debug/logger.cpp b/src/debug/logger.cpp -index f28d275..27c6d19 100644 ---- a/src/debug/logger.cpp -+++ b/src/debug/logger.cpp -@@ -11,7 +11,7 @@ - - #include - #include --#include -+#include - #include "inkscape-version.h" - #include "debug/logger.h" - #include "debug/simple-event.h" -diff --git a/src/debug/simple-event.h b/src/debug/simple-event.h -index 74301a6..ea28cf5 100644 ---- a/src/debug/simple-event.h -+++ b/src/debug/simple-event.h -@@ -14,9 +14,7 @@ - - #include - #include --#include // g_assert() --#include --#include -+#include - - #include "gc-alloc.h" - #include "debug/event.h" -diff --git a/src/debug/timestamp.cpp b/src/debug/timestamp.cpp -index 8814f37..26a9ce0 100644 ---- a/src/debug/timestamp.cpp -+++ b/src/debug/timestamp.cpp -@@ -10,8 +10,7 @@ - */ - - --#include --#include -+#include - #include - #include "debug/simple-event.h" - -diff --git a/src/desktop-style.h b/src/desktop-style.h -index e1ca5b3..95b3bf9 100644 ---- a/src/desktop-style.h -+++ b/src/desktop-style.h -@@ -13,7 +13,7 @@ - * Released under GNU GPL, read the file 'COPYING' for more information - */ - --#include -+#include - - class ColorRGBA; - struct SPCSSAttr; -diff --git a/src/dialogs/clonetiler.cpp b/src/dialogs/clonetiler.cpp -index 55884fe..b846f48 100644 ---- a/src/dialogs/clonetiler.cpp -+++ b/src/dialogs/clonetiler.cpp -@@ -12,7 +12,7 @@ - #ifdef HAVE_CONFIG_H - # include "config.h" - #endif --#include -+#include - #include - #include - -diff --git a/src/dir-util.cpp b/src/dir-util.cpp -index 67db036..8fe1315 100644 ---- a/src/dir-util.cpp -+++ b/src/dir-util.cpp -@@ -7,11 +7,7 @@ - #include - #include - #include --#include --#include --#include --#include --#include -+#include - - /** Returns a form of \a path relative to \a base if that is easy to construct (e.g. if \a path - appears to be in the directory specified by \a base), otherwise returns \a path. -diff --git a/src/dir-util.h b/src/dir-util.h -index 9bdfafa..6b16fcc 100644 ---- a/src/dir-util.h -+++ b/src/dir-util.h -@@ -10,7 +10,7 @@ - */ - - #include --#include -+#include - - char const *sp_relative_path_from_path(char const *path, char const *base); - char const *sp_extension_from_path(char const *path); -diff --git a/src/display/canvas-bpath.h b/src/display/canvas-bpath.h -index b97bbcc..6db6fa3 100644 ---- a/src/display/canvas-bpath.h -+++ b/src/display/canvas-bpath.h -@@ -13,7 +13,7 @@ - * - */ - --#include -+#include - - #include - -diff --git a/src/display/curve.cpp b/src/display/curve.cpp -index 73b8dc3..b17ef51 100644 ---- a/src/display/curve.cpp -+++ b/src/display/curve.cpp -@@ -19,7 +19,7 @@ - - #include "display/curve.h" - --#include -+#include - #include <2geom/pathvector.h> - #include <2geom/sbasis-geometric.h> - #include <2geom/sbasis-to-bezier.h> -diff --git a/src/display/curve.h b/src/display/curve.h -index fe07201..64731c4 100644 ---- a/src/display/curve.h -+++ b/src/display/curve.h -@@ -15,8 +15,7 @@ - * Released under GNU GPL - */ - --#include --#include -+#include - - #include <2geom/forward.h> - -diff --git a/src/display/gnome-canvas-acetate.h b/src/display/gnome-canvas-acetate.h -index 40574e1..2f84931 100644 ---- a/src/display/gnome-canvas-acetate.h -+++ b/src/display/gnome-canvas-acetate.h -@@ -15,7 +15,7 @@ - * Released under GNU GPL, read the file 'COPYING' for more information - */ - --#include -+#include - #include "display/sp-canvas.h" - - -diff --git a/src/display/nr-3dutils.cpp b/src/display/nr-3dutils.cpp -index 89c2194..db8800f 100644 ---- a/src/display/nr-3dutils.cpp -+++ b/src/display/nr-3dutils.cpp -@@ -9,7 +9,7 @@ - * Released under GNU GPL, read the file 'COPYING' for more information - */ - --#include -+#include - - #include "libnr/nr-pixblock.h" - #include "display/nr-3dutils.h" -diff --git a/src/display/nr-arena.h b/src/display/nr-arena.h -index 76b071e..1d23511 100644 ---- a/src/display/nr-arena.h -+++ b/src/display/nr-arena.h -@@ -13,7 +13,7 @@ - * Released under GNU GPL, read the file 'COPYING' for more information - */ - --#include -+#include - - #include "display/rendermode.h" - -diff --git a/src/display/nr-filter-diffuselighting.cpp b/src/display/nr-filter-diffuselighting.cpp -index 0fe4c59..1e08e11 100644 ---- a/src/display/nr-filter-diffuselighting.cpp -+++ b/src/display/nr-filter-diffuselighting.cpp -@@ -10,7 +10,7 @@ - * Released under GNU GPL, read the file 'COPYING' for more information - */ - --#include -+#include - - #include "display/nr-3dutils.h" - #include "display/nr-arena-item.h" -diff --git a/src/display/nr-filter-specularlighting.cpp b/src/display/nr-filter-specularlighting.cpp -index 6a6ce38..dbe6764 100644 ---- a/src/display/nr-filter-specularlighting.cpp -+++ b/src/display/nr-filter-specularlighting.cpp -@@ -10,7 +10,7 @@ - * Released under GNU GPL, read the file 'COPYING' for more information - */ - --#include -+#include - #include - - #include "display/nr-3dutils.h" -diff --git a/src/display/nr-plain-stuff.cpp b/src/display/nr-plain-stuff.cpp -index 62a6110..e37ad96 100644 ---- a/src/display/nr-plain-stuff.cpp -+++ b/src/display/nr-plain-stuff.cpp -@@ -11,7 +11,7 @@ - * Released under GNU GPL - */ - --#include -+#include - #include - #include "nr-plain-stuff.h" - -diff --git a/src/display/nr-plain-stuff.h b/src/display/nr-plain-stuff.h -index c568f38..99176a3 100644 ---- a/src/display/nr-plain-stuff.h -+++ b/src/display/nr-plain-stuff.h -@@ -12,7 +12,7 @@ - * Released under GNU GPL - */ - --#include -+#include - - void nr_render_checkerboard_rgb (guchar *px, gint w, gint h, gint rs, gint xoff, gint yoff); - void nr_render_checkerboard_rgb_custom (guchar *px, gint w, gint h, gint rs, gint xoff, gint yoff, guint32 c0, guint32 c1, gint sizep2); -diff --git a/src/display/sodipodi-ctrlrect.h b/src/display/sodipodi-ctrlrect.h -index 7e5f515..7e00565 100644 ---- a/src/display/sodipodi-ctrlrect.h -+++ b/src/display/sodipodi-ctrlrect.h -@@ -16,7 +16,7 @@ - * - */ - --#include -+#include - #include "sp-canvas.h" - - #define SP_TYPE_CTRLRECT (sp_ctrlrect_get_type ()) -diff --git a/src/display/sp-canvas.h b/src/display/sp-canvas.h -index 3d23bf0..14c1410 100644 ---- a/src/display/sp-canvas.h -+++ b/src/display/sp-canvas.h -@@ -27,7 +27,7 @@ - # endif - #endif - --#include -+#include - #include - #include - -diff --git a/src/document-subset.cpp b/src/document-subset.cpp -index 1988865..020e6af 100644 ---- a/src/document-subset.cpp -+++ b/src/document-subset.cpp -@@ -12,7 +12,7 @@ - #include "document.h" - #include "sp-object.h" - --#include -+#include - - #include - #include -diff --git a/src/draw-anchor.h b/src/draw-anchor.h -index 0277616..af281d3 100644 ---- a/src/draw-anchor.h -+++ b/src/draw-anchor.h -@@ -5,7 +5,7 @@ - * Drawing anchors. - */ - --#include -+#include - #include <2geom/point.h> - - struct SPDrawContext; -diff --git a/src/dyna-draw-context.cpp b/src/dyna-draw-context.cpp -index bb8e690..7a61a88 100644 ---- a/src/dyna-draw-context.cpp -+++ b/src/dyna-draw-context.cpp -@@ -38,7 +38,7 @@ - #include <2geom/pathvector.h> - #include <2geom/bezier-utils.h> - #include "display/curve.h" --#include -+#include - #include "macros.h" - #include "document.h" - #include "selection.h" -diff --git a/src/eraser-context.cpp b/src/eraser-context.cpp -index c198d93..c0bdec6 100644 ---- a/src/eraser-context.cpp -+++ b/src/eraser-context.cpp -@@ -36,7 +36,7 @@ - #include "display/canvas-bpath.h" - #include <2geom/bezier-utils.h> - --#include -+#include - #include "macros.h" - #include "document.h" - #include "selection.h" -diff --git a/src/extension/internal/bitmap/imagemagick.cpp b/src/extension/internal/bitmap/imagemagick.cpp -index e907612..9a5a506 100644 ---- a/src/extension/internal/bitmap/imagemagick.cpp -+++ b/src/extension/internal/bitmap/imagemagick.cpp -@@ -15,6 +15,7 @@ - #include - #include - -+#include - #include - - #include "desktop.h" -diff --git a/src/extension/internal/cairo-render-context.cpp b/src/extension/internal/cairo-render-context.cpp -index 596f1fe..d65722b 100644 ---- a/src/extension/internal/cairo-render-context.cpp -+++ b/src/extension/internal/cairo-render-context.cpp -@@ -29,7 +29,7 @@ - #include - #include <2geom/pathvector.h> - --#include -+#include - - #include - #include "display/nr-arena.h" -diff --git a/src/extension/internal/cairo-renderer.cpp b/src/extension/internal/cairo-renderer.cpp -index 7060251..489af18 100644 ---- a/src/extension/internal/cairo-renderer.cpp -+++ b/src/extension/internal/cairo-renderer.cpp -@@ -33,7 +33,7 @@ - #include <2geom/transforms.h> - #include <2geom/pathvector.h> - --#include -+#include - - #include - #include "display/nr-arena.h" -diff --git a/src/extension/internal/gdkpixbuf-input.cpp b/src/extension/internal/gdkpixbuf-input.cpp -index df7f348..a999c43 100644 ---- a/src/extension/internal/gdkpixbuf-input.cpp -+++ b/src/extension/internal/gdkpixbuf-input.cpp -@@ -1,7 +1,7 @@ - #ifdef HAVE_CONFIG_H - # include - #endif --#include -+#include - #include - #include "document-private.h" - #include -diff --git a/src/extension/internal/pdfinput/svg-builder.h b/src/extension/internal/pdfinput/svg-builder.h -index f0062bb..7f19151 100644 ---- a/src/extension/internal/pdfinput/svg-builder.h -+++ b/src/extension/internal/pdfinput/svg-builder.h -@@ -49,7 +49,7 @@ class XRef; - class SPCSSAttr; - - #include --#include -+#include - - namespace Inkscape { - namespace Extension { -diff --git a/src/extension/internal/win32.cpp b/src/extension/internal/win32.cpp -index 21f2788..18855b2 100644 ---- a/src/extension/internal/win32.cpp -+++ b/src/extension/internal/win32.cpp -@@ -13,7 +13,7 @@ - # include "config.h" - #endif - --#include -+#include - #include - #include <2geom/transforms.h> - -diff --git a/src/extract-uri.h b/src/extract-uri.h -index 1975d9b..884b43a 100644 ---- a/src/extract-uri.h -+++ b/src/extract-uri.h -@@ -1,7 +1,7 @@ - #ifndef SEEN_EXTRACT_URI_H - #define SEEN_EXTRACT_URI_H - --#include -+#include - - gchar *extract_uri(gchar const *s, gchar const** endptr = 0); - -diff --git a/src/file.cpp b/src/file.cpp -index 1128a5a..3714560 100644 ---- a/src/file.cpp -+++ b/src/file.cpp -@@ -27,7 +27,7 @@ - #endif - - #include --#include -+#include - #include - #include - -diff --git a/src/file.h b/src/file.h -index dec7e3f..88d0fa0 100644 ---- a/src/file.h -+++ b/src/file.h -@@ -16,7 +16,7 @@ - */ - - #include --#include -+#include - #include - - #include "extension/extension-forward.h" -diff --git a/src/filters/blend-fns.h b/src/filters/blend-fns.h -index f08ed9d..39bf2b4 100644 ---- a/src/filters/blend-fns.h -+++ b/src/filters/blend-fns.h -@@ -6,7 +6,7 @@ - */ - - #include --#include -+#include - - namespace Inkscape { - namespace XML { -diff --git a/src/filters/colormatrix-fns.h b/src/filters/colormatrix-fns.h -index 3a4a8d3..e023d4d 100644 ---- a/src/filters/colormatrix-fns.h -+++ b/src/filters/colormatrix-fns.h -@@ -6,7 +6,7 @@ - */ - - #include --#include -+#include - - namespace Inkscape { - namespace XML { -diff --git a/src/filters/componenttransfer-fns.h b/src/filters/componenttransfer-fns.h -index 4998377..06248d6 100644 ---- a/src/filters/componenttransfer-fns.h -+++ b/src/filters/componenttransfer-fns.h -@@ -6,7 +6,7 @@ - */ - - #include --#include -+#include - - namespace Inkscape { - namespace XML { -diff --git a/src/filters/composite-fns.h b/src/filters/composite-fns.h -index c79cb17..51610fd 100644 ---- a/src/filters/composite-fns.h -+++ b/src/filters/composite-fns.h -@@ -6,7 +6,7 @@ - */ - - #include --#include -+#include - - namespace Inkscape { - namespace XML { -diff --git a/src/filters/convolvematrix-fns.h b/src/filters/convolvematrix-fns.h -index 76baf7f..931ad94 100644 ---- a/src/filters/convolvematrix-fns.h -+++ b/src/filters/convolvematrix-fns.h -@@ -6,7 +6,7 @@ - */ - - #include --#include -+#include - - namespace Inkscape { - namespace XML { -diff --git a/src/filters/diffuselighting-fns.h b/src/filters/diffuselighting-fns.h -index b91ed80..18a9375 100644 ---- a/src/filters/diffuselighting-fns.h -+++ b/src/filters/diffuselighting-fns.h -@@ -6,7 +6,7 @@ - */ - - #include --#include -+#include - - namespace Inkscape { - namespace XML { -diff --git a/src/filters/displacementmap-fns.h b/src/filters/displacementmap-fns.h -index 6d92c6b..4b8ed74 100644 ---- a/src/filters/displacementmap-fns.h -+++ b/src/filters/displacementmap-fns.h -@@ -6,7 +6,7 @@ - */ - - #include --#include -+#include - - namespace Inkscape { - namespace XML { -diff --git a/src/filters/flood-fns.h b/src/filters/flood-fns.h -index 8cc5072..0cd4bd3 100644 ---- a/src/filters/flood-fns.h -+++ b/src/filters/flood-fns.h -@@ -6,7 +6,7 @@ - */ - - #include --#include -+#include - - namespace Inkscape { - namespace XML { -diff --git a/src/filters/image-fns.h b/src/filters/image-fns.h -index 0a8b453..5748486 100644 ---- a/src/filters/image-fns.h -+++ b/src/filters/image-fns.h -@@ -6,7 +6,7 @@ - */ - - #include --#include -+#include - - namespace Inkscape { - namespace XML { -diff --git a/src/filters/merge-fns.h b/src/filters/merge-fns.h -index 24bda1a..9787d59 100644 ---- a/src/filters/merge-fns.h -+++ b/src/filters/merge-fns.h -@@ -6,7 +6,7 @@ - */ - - #include --#include -+#include - - namespace Inkscape { - namespace XML { -diff --git a/src/filters/morphology-fns.h b/src/filters/morphology-fns.h -index a055040..a6f1b58 100644 ---- a/src/filters/morphology-fns.h -+++ b/src/filters/morphology-fns.h -@@ -6,7 +6,7 @@ - */ - - #include --#include -+#include - - namespace Inkscape { - namespace XML { -diff --git a/src/filters/offset-fns.h b/src/filters/offset-fns.h -index 38561c1..32fbda7 100644 ---- a/src/filters/offset-fns.h -+++ b/src/filters/offset-fns.h -@@ -6,7 +6,7 @@ - */ - - #include --#include -+#include - - namespace Inkscape { - namespace XML { -diff --git a/src/filters/specularlighting-fns.h b/src/filters/specularlighting-fns.h -index bd48ba6..70cd5d4 100644 ---- a/src/filters/specularlighting-fns.h -+++ b/src/filters/specularlighting-fns.h -@@ -6,7 +6,7 @@ - */ - - #include --#include -+#include - - namespace Inkscape { - namespace XML { -diff --git a/src/filters/tile-fns.h b/src/filters/tile-fns.h -index b7c4c5f..4a99a51 100644 ---- a/src/filters/tile-fns.h -+++ b/src/filters/tile-fns.h -@@ -6,7 +6,7 @@ - */ - - #include --#include -+#include - - namespace Inkscape { - namespace XML { -diff --git a/src/filters/turbulence-fns.h b/src/filters/turbulence-fns.h -index 43b4450..de9f228 100644 ---- a/src/filters/turbulence-fns.h -+++ b/src/filters/turbulence-fns.h -@@ -6,7 +6,7 @@ - */ - - #include --#include -+#include - - namespace Inkscape { - namespace XML { -diff --git a/src/gc-anchored.h b/src/gc-anchored.h -index 917930a..119b86a 100644 ---- a/src/gc-anchored.h -+++ b/src/gc-anchored.h -@@ -11,7 +11,7 @@ - #ifndef SEEN_INKSCAPE_GC_ANCHORED_H - #define SEEN_INKSCAPE_GC_ANCHORED_H - --#include -+#include - #include "gc-managed.h" - - namespace Inkscape { -diff --git a/src/gc-core.h b/src/gc-core.h -index af327dc..b99e1c5 100644 ---- a/src/gc-core.h -+++ b/src/gc-core.h -@@ -24,7 +24,7 @@ - #else - # include - #endif --#include -+#include - - namespace Inkscape { - namespace GC { -diff --git a/src/gc.cpp b/src/gc.cpp -index 8622059..5a636e7 100644 ---- a/src/gc.cpp -+++ b/src/gc.cpp -@@ -13,7 +13,7 @@ - #include - #include - #include --#include -+#include - #include - #include - #include -diff --git a/src/gradient-drag.h b/src/gradient-drag.h -index 40ab065..4fa471b 100644 ---- a/src/gradient-drag.h -+++ b/src/gradient-drag.h -@@ -14,7 +14,7 @@ - * Released under GNU GPL, read the file 'COPYING' for more information - */ - --#include -+#include - #include - #include - #include -diff --git a/src/help.h b/src/help.h -index ef5d703..7241c82 100644 ---- a/src/help.h -+++ b/src/help.h -@@ -13,7 +13,7 @@ - * Released under GNU GPL, read the file 'COPYING' for more information - */ - --#include -+#include - #include - - void sp_help_about(void); -diff --git a/src/helper/gnome-utils.h b/src/helper/gnome-utils.h -index 0a28c95..62676c7 100644 ---- a/src/helper/gnome-utils.h -+++ b/src/helper/gnome-utils.h -@@ -15,8 +15,7 @@ - #ifndef __GNOME_UTILS_H__ - #define __GNOME_UTILS_H__ - --#include --#include -+#include - - GList *gnome_uri_list_extract_uris(gchar const *uri_list); - -diff --git a/src/helper/pixbuf-ops.cpp b/src/helper/pixbuf-ops.cpp -index 3be63aa..d7d2e57 100644 ---- a/src/helper/pixbuf-ops.cpp -+++ b/src/helper/pixbuf-ops.cpp -@@ -18,7 +18,6 @@ - #include - #include - #include --#include - #include - #include "png-write.h" - #include -diff --git a/src/helper/pixbuf-ops.h b/src/helper/pixbuf-ops.h -index a985be2..af57327 100644 ---- a/src/helper/pixbuf-ops.h -+++ b/src/helper/pixbuf-ops.h -@@ -12,7 +12,7 @@ - * Released under GNU GPL, read the file 'COPYING' for more information - */ - --#include -+#include - - struct SPDocument; - -diff --git a/src/helper/png-write.cpp b/src/helper/png-write.cpp -index b1c135d..5cb37d9 100644 ---- a/src/helper/png-write.cpp -+++ b/src/helper/png-write.cpp -@@ -20,7 +20,7 @@ - #include - #include - #include <2geom/rect.h> --#include -+#include - #include - #include "png-write.h" - #include "io/sys.h" -diff --git a/src/helper/png-write.h b/src/helper/png-write.h -index 83321aa..f8ba4bb 100644 ---- a/src/helper/png-write.h -+++ b/src/helper/png-write.h -@@ -12,7 +12,7 @@ - * Released under GNU GPL, read the file 'COPYING' for more information - */ - --#include -+#include - #include <2geom/forward.h> - struct SPDocument; - -diff --git a/src/helper/stlport.h b/src/helper/stlport.h -index c9389e8..c7b00eb 100644 ---- a/src/helper/stlport.h -+++ b/src/helper/stlport.h -@@ -3,8 +3,7 @@ - - - #include --#include --#include -+#include - - template - class StlConv { -diff --git a/src/helper/stock-items.h b/src/helper/stock-items.h -index ddad554..4576d51 100644 ---- a/src/helper/stock-items.h -+++ b/src/helper/stock-items.h -@@ -12,7 +12,7 @@ - * - */ - --#include -+#include - - #include - -diff --git a/src/helper/unit-menu.h b/src/helper/unit-menu.h -index cdaa826..fc8a600 100644 ---- a/src/helper/unit-menu.h -+++ b/src/helper/unit-menu.h -@@ -10,7 +10,7 @@ - * - */ - --#include -+#include - #include - - #include -diff --git a/src/helper/units.h b/src/helper/units.h -index 8dc62fe..93bd706 100644 ---- a/src/helper/units.h -+++ b/src/helper/units.h -@@ -15,9 +15,7 @@ - * - */ - --#include --#include --#include -+#include - #include "sp-metric.h" - - -diff --git a/src/inkscape.h b/src/inkscape.h -index ca28942..5538d4f 100644 ---- a/src/inkscape.h -+++ b/src/inkscape.h -@@ -13,7 +13,7 @@ - */ - - #include --#include -+#include - - struct SPDesktop; - struct SPDocument; -diff --git a/src/inkview.cpp b/src/inkview.cpp -index 6fe989e..9d76378 100644 ---- a/src/inkview.cpp -+++ b/src/inkview.cpp -@@ -39,7 +39,7 @@ - #include - #include - --#include -+#include - #include - - // #include -diff --git a/src/io/inkjar.h b/src/io/inkjar.h -index 0fe088b..ea4b0ee 100644 ---- a/src/io/inkjar.h -+++ b/src/io/inkjar.h -@@ -26,8 +26,7 @@ - # endif - #endif - --#include --#include -+#include - - namespace Inkjar { - -diff --git a/src/io/resource.cpp b/src/io/resource.cpp -index 1f6f845..14b8beb 100644 ---- a/src/io/resource.cpp -+++ b/src/io/resource.cpp -@@ -16,10 +16,7 @@ - #include "config.h" - #endif - --#include // g_assert() --#include --#include --#include -+#include - #include "path-prefix.h" - #include "inkscape.h" - #include "io/resource.h" -diff --git a/src/io/sys.cpp b/src/io/sys.cpp -index 143108a..529f7ce 100644 ---- a/src/io/sys.cpp -+++ b/src/io/sys.cpp -@@ -16,8 +16,6 @@ - #endif - - #include --#include --#include - #include - #if GLIB_CHECK_VERSION(2,6,0) - #include -diff --git a/src/io/sys.h b/src/io/sys.h -index 8623f6b..83ffdb4 100644 ---- a/src/io/sys.h -+++ b/src/io/sys.h -@@ -15,9 +15,7 @@ - #include - #include - #include --#include --#include --#include -+#include - #include - #include - -diff --git a/src/knot-holder-entity.h b/src/knot-holder-entity.h -index c8fd29d..84afaa4 100644 ---- a/src/knot-holder-entity.h -+++ b/src/knot-holder-entity.h -@@ -17,7 +17,7 @@ - * Released under GNU GPL - */ - --#include -+#include - #include "knot.h" - #include <2geom/forward.h> - #include "snapper.h" -diff --git a/src/knotholder.h b/src/knotholder.h -index 0b37d21..7feb1c7 100644 ---- a/src/knotholder.h -+++ b/src/knotholder.h -@@ -17,7 +17,7 @@ - * - */ - --#include -+#include - #include "knot-enums.h" - #include "forward.h" - #include "libnr/nr-forward.h" -diff --git a/src/libcroco/cr-libxml-node-iface.h b/src/libcroco/cr-libxml-node-iface.h -index 5da0d9a..b4a6212 100644 ---- a/src/libcroco/cr-libxml-node-iface.h -+++ b/src/libcroco/cr-libxml-node-iface.h -@@ -1,7 +1,7 @@ - #ifndef __CR_LIBXML_NODE_IFACE_H__ - #define __CR_LIBXML_NODE_IFACE_H__ - --#include -+#include - #include "cr-node-iface.h" - - G_BEGIN_DECLS -diff --git a/src/libcroco/cr-node-iface.h b/src/libcroco/cr-node-iface.h -index 9c2d30e..01898d6 100644 ---- a/src/libcroco/cr-node-iface.h -+++ b/src/libcroco/cr-node-iface.h -@@ -1,8 +1,7 @@ - #ifndef __CR_NODE_IFACE_H__ - #define __CR_NODE_IFACE_H__ - --#include --#include -+#include - - G_BEGIN_DECLS - -diff --git a/src/libgdl/gdl-stock.h b/src/libgdl/gdl-stock.h -index cb6f7ab..459d00c 100644 ---- a/src/libgdl/gdl-stock.h -+++ b/src/libgdl/gdl-stock.h -@@ -22,7 +22,7 @@ - #ifndef __GDL_STOCK_H__ - #define __GDL_STOCK_H__ - --#include // G_BEGIN_DECLS -+#include // G_BEGIN_DECLS - - G_BEGIN_DECLS - -diff --git a/src/libnr/in-svg-plane-test.h b/src/libnr/in-svg-plane-test.h -index 304182f..1d51125 100644 ---- a/src/libnr/in-svg-plane-test.h -+++ b/src/libnr/in-svg-plane-test.h -@@ -1,6 +1,6 @@ - #include - --#include -+#include - #include - - #include "libnr/in-svg-plane.h" -diff --git a/src/libnr/nr-gradient.cpp b/src/libnr/nr-gradient.cpp -index e6eb9b7..32dac7d 100644 ---- a/src/libnr/nr-gradient.cpp -+++ b/src/libnr/nr-gradient.cpp -@@ -26,7 +26,7 @@ - #include - #include - #include --#include -+#include - #include - - /* Common */ -diff --git a/src/libnr/nr-i-coord.h b/src/libnr/nr-i-coord.h -index f87dea3..c9e6b3f 100644 ---- a/src/libnr/nr-i-coord.h -+++ b/src/libnr/nr-i-coord.h -@@ -1,7 +1,7 @@ - #ifndef SEEN_NR_I_COORD_H - #define SEEN_NR_I_COORD_H - --#include -+#include - - namespace NR { - -diff --git a/src/libnr/nr-matrix.h b/src/libnr/nr-matrix.h -index b1f9d58..471381c 100644 ---- a/src/libnr/nr-matrix.h -+++ b/src/libnr/nr-matrix.h -@@ -17,8 +17,7 @@ - * This code is in public domain. - */ - --#include // g_assert() --#include -+#include - - #include "libnr/nr-coord.h" - #include "libnr/nr-values.h" -diff --git a/src/libnr/nr-object.cpp b/src/libnr/nr-object.cpp -index d92052d..e4268f1 100644 ---- a/src/libnr/nr-object.cpp -+++ b/src/libnr/nr-object.cpp -@@ -15,7 +15,7 @@ - - #include - --#include -+#include - #include - - #include "nr-object.h" -diff --git a/src/libnr/nr-object.h b/src/libnr/nr-object.h -index 2691302..da89385 100644 ---- a/src/libnr/nr-object.h -+++ b/src/libnr/nr-object.h -@@ -15,7 +15,7 @@ - #include "config.h" - #endif - --#include -+#include - #include "gc-managed.h" - #include "gc-finalized.h" - #include "gc-anchored.h" -diff --git a/src/libnr/nr-pixblock-pattern.cpp b/src/libnr/nr-pixblock-pattern.cpp -index aa32462..a09c957 100644 ---- a/src/libnr/nr-pixblock-pattern.cpp -+++ b/src/libnr/nr-pixblock-pattern.cpp -@@ -10,7 +10,7 @@ - */ - - --#include -+#include - #include "nr-pixops.h" - #include "nr-pixblock-pattern.h" - -diff --git a/src/libnr/nr-pixblock.cpp b/src/libnr/nr-pixblock.cpp -index 6b2b12b..a881a37 100644 ---- a/src/libnr/nr-pixblock.cpp -+++ b/src/libnr/nr-pixblock.cpp -@@ -13,7 +13,7 @@ - #include - #include - #include --#include -+#include - #include "nr-pixblock.h" - - /// Size of buffer that needs no allocation (default 4). -diff --git a/src/libnr/nr-point-fns-test.h b/src/libnr/nr-point-fns-test.h -index 7d28c9c..eeb28f4 100644 ---- a/src/libnr/nr-point-fns-test.h -+++ b/src/libnr/nr-point-fns-test.h -@@ -3,7 +3,7 @@ - - #include - #include --#include -+#include - #include - - #include "libnr/nr-point-fns.h" -diff --git a/src/libnr/nr-rotate-fns-test.h b/src/libnr/nr-rotate-fns-test.h -index e3bfe30..d1c01cd 100644 ---- a/src/libnr/nr-rotate-fns-test.h -+++ b/src/libnr/nr-rotate-fns-test.h -@@ -1,7 +1,7 @@ - #include - - #include --#include -+#include - - #include - -diff --git a/src/libnrtype/FontFactory.cpp b/src/libnrtype/FontFactory.cpp -index 067254b..4130bfc 100644 ---- a/src/libnrtype/FontFactory.cpp -+++ b/src/libnrtype/FontFactory.cpp -@@ -15,7 +15,7 @@ - #endif - - #include --#include -+#include - #include // _() - #include - #include "libnrtype/FontFactory.h" -diff --git a/src/libnrtype/Layout-TNG-Output.cpp b/src/libnrtype/Layout-TNG-Output.cpp -index f34b93d..ab03b16 100644 ---- a/src/libnrtype/Layout-TNG-Output.cpp -+++ b/src/libnrtype/Layout-TNG-Output.cpp -@@ -8,7 +8,7 @@ - * - * Released under GNU GPL, read the file 'COPYING' for more information - */ --#include -+#include - #include "Layout-TNG.h" - #include "display/nr-arena-glyphs.h" - #include "style.h" -diff --git a/src/libnrtype/nr-type-primitives.cpp b/src/libnrtype/nr-type-primitives.cpp -index 34b1e43..698f3f8 100644 ---- a/src/libnrtype/nr-type-primitives.cpp -+++ b/src/libnrtype/nr-type-primitives.cpp -@@ -14,7 +14,7 @@ - - #include - #include --#include -+#include - #include - #include "nr-type-primitives.h" - -diff --git a/src/libnrtype/nr-type-primitives.h b/src/libnrtype/nr-type-primitives.h -index 92b94e9..9bb181c 100644 ---- a/src/libnrtype/nr-type-primitives.h -+++ b/src/libnrtype/nr-type-primitives.h -@@ -11,7 +11,7 @@ - * This code is in public domain - */ - --#include -+#include - - struct NRNameList; - struct NRStyleList; -diff --git a/src/livarot/AlphaLigne.cpp b/src/livarot/AlphaLigne.cpp -index f878c1b..5b8321b 100644 ---- a/src/livarot/AlphaLigne.cpp -+++ b/src/livarot/AlphaLigne.cpp -@@ -12,7 +12,7 @@ - #include - #include - #include --#include -+#include - - AlphaLigne::AlphaLigne(int iMin,int iMax) - { -diff --git a/src/livarot/BitLigne.cpp b/src/livarot/BitLigne.cpp -index c4c1346..d7cce26 100644 ---- a/src/livarot/BitLigne.cpp -+++ b/src/livarot/BitLigne.cpp -@@ -15,7 +15,7 @@ - #include - #include - #include --#include -+#include - - BitLigne::BitLigne(int ist,int ien,float iScale) - { -diff --git a/src/livarot/PathSimplify.cpp b/src/livarot/PathSimplify.cpp -index 0f440de..efcdfd4 100644 ---- a/src/livarot/PathSimplify.cpp -+++ b/src/livarot/PathSimplify.cpp -@@ -6,7 +6,7 @@ - * - */ - --#include -+#include - #include - #include "livarot/Path.h" - #include "livarot/path-description.h" -diff --git a/src/livarot/Shape.cpp b/src/livarot/Shape.cpp -index 9107844..e260e97 100644 ---- a/src/livarot/Shape.cpp -+++ b/src/livarot/Shape.cpp -@@ -8,7 +8,7 @@ - - #include - #include --#include -+#include - #include "Shape.h" - #include "livarot/sweep-event-queue.h" - #include "livarot/sweep-tree-list.h" -diff --git a/src/livarot/ShapeSweep.cpp b/src/livarot/ShapeSweep.cpp -index 00a0dd9..d3d5ef1 100644 ---- a/src/livarot/ShapeSweep.cpp -+++ b/src/livarot/ShapeSweep.cpp -@@ -9,7 +9,7 @@ - #include - #include - #include --#include -+#include - #include "Shape.h" - #include "livarot/sweep-event-queue.h" - #include "livarot/sweep-tree-list.h" -diff --git a/src/livarot/int-line.cpp b/src/livarot/int-line.cpp -index c1e388f..d03d62c 100644 ---- a/src/livarot/int-line.cpp -+++ b/src/livarot/int-line.cpp -@@ -9,7 +9,7 @@ - * - */ - --#include -+#include - #include - #include - #include -diff --git a/src/livarot/sweep-event.cpp b/src/livarot/sweep-event.cpp -index 88d895e..28fead2 100644 ---- a/src/livarot/sweep-event.cpp -+++ b/src/livarot/sweep-event.cpp -@@ -1,4 +1,4 @@ --#include -+#include - #include "livarot/sweep-event-queue.h" - #include "livarot/sweep-tree.h" - #include "livarot/sweep-event.h" -diff --git a/src/livarot/sweep-tree-list.cpp b/src/livarot/sweep-tree-list.cpp -index 1d2dcec..5d3f69e 100644 ---- a/src/livarot/sweep-tree-list.cpp -+++ b/src/livarot/sweep-tree-list.cpp -@@ -1,4 +1,4 @@ --#include -+#include - #include "livarot/sweep-tree.h" - #include "livarot/sweep-tree-list.h" - -diff --git a/src/live_effects/parameter/array.h b/src/live_effects/parameter/array.h -index e5f2301..ca22a07 100644 ---- a/src/live_effects/parameter/array.h -+++ b/src/live_effects/parameter/array.h -@@ -11,7 +11,7 @@ - - #include - --#include -+#include - - #include - -diff --git a/src/live_effects/parameter/bool.h b/src/live_effects/parameter/bool.h -index 8f5196d..851476f 100644 ---- a/src/live_effects/parameter/bool.h -+++ b/src/live_effects/parameter/bool.h -@@ -9,7 +9,7 @@ - * Released under GNU GPL, read the file 'COPYING' for more information - */ - --#include -+#include - - #include "live_effects/parameter/parameter.h" - -diff --git a/src/live_effects/parameter/enum.h b/src/live_effects/parameter/enum.h -index 05f3bdd..2d2268e 100644 ---- a/src/live_effects/parameter/enum.h -+++ b/src/live_effects/parameter/enum.h -@@ -9,7 +9,7 @@ - * Released under GNU GPL, read the file 'COPYING' for more information - */ - --#include -+#include - - #include "ui/widget/registered-enums.h" - #include -diff --git a/src/live_effects/parameter/path.h b/src/live_effects/parameter/path.h -index 8fe9382..792c98a 100644 ---- a/src/live_effects/parameter/path.h -+++ b/src/live_effects/parameter/path.h -@@ -9,7 +9,7 @@ - * Released under GNU GPL, read the file 'COPYING' for more information - */ - --#include -+#include - #include <2geom/path.h> - - #include -diff --git a/src/live_effects/parameter/point.h b/src/live_effects/parameter/point.h -index ec61fcd..38fab1c 100644 ---- a/src/live_effects/parameter/point.h -+++ b/src/live_effects/parameter/point.h -@@ -9,7 +9,7 @@ - * Released under GNU GPL, read the file 'COPYING' for more information - */ - --#include -+#include - #include <2geom/point.h> - - #include -diff --git a/src/live_effects/parameter/text.h b/src/live_effects/parameter/text.h -index 8539a80..8265430 100644 ---- a/src/live_effects/parameter/text.h -+++ b/src/live_effects/parameter/text.h -@@ -13,7 +13,7 @@ - * Released under GNU GPL, read the file 'COPYING' for more information - */ - --#include -+#include - - #include "display/canvas-bpath.h" - #include "live_effects/parameter/parameter.h" -diff --git a/src/live_effects/parameter/vector.h b/src/live_effects/parameter/vector.h -index a4c29d3..09581d2 100644 ---- a/src/live_effects/parameter/vector.h -+++ b/src/live_effects/parameter/vector.h -@@ -9,7 +9,7 @@ - * Released under GNU GPL, read the file 'COPYING' for more information - */ - --#include -+#include - #include <2geom/point.h> - - #include -diff --git a/src/main-cmdlineact.h b/src/main-cmdlineact.h -index aca039f..03f0eb0 100644 ---- a/src/main-cmdlineact.h -+++ b/src/main-cmdlineact.h -@@ -15,7 +15,7 @@ - * Released under GNU GPL v2.x, read the file 'COPYING' for more information - */ - --#include -+#include - - namespace Inkscape { - -diff --git a/src/main.cpp b/src/main.cpp -index d4b8271..5852d36 100644 ---- a/src/main.cpp -+++ b/src/main.cpp -@@ -48,7 +48,6 @@ - - #include - #include --#include - #include - #include - -diff --git a/src/message-context.cpp b/src/message-context.cpp -index 5055f41..6182c2c 100644 ---- a/src/message-context.cpp -+++ b/src/message-context.cpp -@@ -9,7 +9,7 @@ - * Released under GNU GPL, read the file 'COPYING' for more information - */ - --#include -+#include - #include "message-context.h" - #include "message-stack.h" - -diff --git a/src/message-stack.cpp b/src/message-stack.cpp -index 05aec87..1c407e3 100644 ---- a/src/message-stack.cpp -+++ b/src/message-stack.cpp -@@ -10,7 +10,7 @@ - */ - - #include --#include -+#include - #include - #include - #include "message-stack.h" -diff --git a/src/modifier-fns.h b/src/modifier-fns.h -index 02d3e8f..368791b 100644 ---- a/src/modifier-fns.h -+++ b/src/modifier-fns.h -@@ -12,7 +12,7 @@ - */ - - #include --#include -+#include - - inline bool - mod_shift(guint const state) -diff --git a/src/number-opt-number.h b/src/number-opt-number.h -index 0025f2d..6a0e72f 100644 ---- a/src/number-opt-number.h -+++ b/src/number-opt-number.h -@@ -18,7 +18,6 @@ - #endif - - #include --#include - //todo: use glib instead of stdlib - #include - #include "svg/stringstream.h" -diff --git a/src/object-hierarchy.h b/src/object-hierarchy.h -index c127a48..fa23219 100644 ---- a/src/object-hierarchy.h -+++ b/src/object-hierarchy.h -@@ -17,7 +17,7 @@ - #include - #include - #include --#include -+#include - - class SPObject; - -diff --git a/src/path-chemistry.cpp b/src/path-chemistry.cpp -index c44ab5b..c97b7c7 100644 ---- a/src/path-chemistry.cpp -+++ b/src/path-chemistry.cpp -@@ -22,7 +22,7 @@ - #include "xml/repr.h" - #include "svg/svg.h" - #include "display/curve.h" --#include -+#include - #include - #include "sp-path.h" - #include "sp-text.h" -diff --git a/src/removeoverlap.h b/src/removeoverlap.h -index 5b16e70..1ba4157 100644 ---- a/src/removeoverlap.h -+++ b/src/removeoverlap.h -@@ -13,7 +13,7 @@ - #ifndef SEEN_REMOVEOVERLAP_H - #define SEEN_REMOVEOVERLAP_H - --#include -+#include - - void removeoverlap(GSList const *items, double xGap, double yGap); - -diff --git a/src/sp-conn-end-pair.h b/src/sp-conn-end-pair.h -index bc5fa12..7ba42e9 100644 ---- a/src/sp-conn-end-pair.h -+++ b/src/sp-conn-end-pair.h -@@ -11,7 +11,7 @@ - * - * Released under GNU GPL, read the file 'COPYING' for more information - */ --#include -+#include - - #include "forward.h" - #include "libnr/nr-point.h" -diff --git a/src/sp-conn-end.h b/src/sp-conn-end.h -index 052e8dd..032f12e 100644 ---- a/src/sp-conn-end.h -+++ b/src/sp-conn-end.h -@@ -1,7 +1,7 @@ - #ifndef SEEN_SP_CONN_END - #define SEEN_SP_CONN_END - --#include -+#include - #include - #include - -diff --git a/src/sp-filter-fns.h b/src/sp-filter-fns.h -index 4e1b012..a1e2075 100644 ---- a/src/sp-filter-fns.h -+++ b/src/sp-filter-fns.h -@@ -5,7 +5,7 @@ - * Macros and fn declarations related to filters. - */ - --#include -+#include - #include - #include "libnr/nr-forward.h" - #include "sp-filter-units.h" -diff --git a/src/sp-gaussian-blur-fns.h b/src/sp-gaussian-blur-fns.h -index 0307392..fe696dc 100644 ---- a/src/sp-gaussian-blur-fns.h -+++ b/src/sp-gaussian-blur-fns.h -@@ -6,7 +6,7 @@ - */ - - #include --#include -+#include - - namespace Inkscape { - namespace XML { -diff --git a/src/sp-gradient-fns.h b/src/sp-gradient-fns.h -index aabc3ed..e09717b 100644 ---- a/src/sp-gradient-fns.h -+++ b/src/sp-gradient-fns.h -@@ -5,7 +5,7 @@ - * Macros and fn declarations related to gradients. - */ - --#include -+#include - #include - #include <2geom/forward.h> - #include "sp-gradient-spread.h" -diff --git a/src/sp-gradient-vector.h b/src/sp-gradient-vector.h -index 7bdfb51..d341daa 100644 ---- a/src/sp-gradient-vector.h -+++ b/src/sp-gradient-vector.h -@@ -1,7 +1,7 @@ - #ifndef SEEN_SP_GRADIENT_VECTOR_H - #define SEEN_SP_GRADIENT_VECTOR_H - --#include -+#include - #include - #include "color.h" - -diff --git a/src/sp-image.cpp b/src/sp-image.cpp -index 322e2d1..0c7f9ba 100644 ---- a/src/sp-image.cpp -+++ b/src/sp-image.cpp -@@ -30,6 +30,7 @@ - //#include - #include "display/nr-arena-image.h" - #include -+#include - #include - - //Added for preserveAspectRatio support -- EAF -diff --git a/src/sp-linear-gradient-fns.h b/src/sp-linear-gradient-fns.h -index 0962bae..636cc1c 100644 ---- a/src/sp-linear-gradient-fns.h -+++ b/src/sp-linear-gradient-fns.h -@@ -6,7 +6,7 @@ - */ - - #include --#include -+#include - - namespace Inkscape { - namespace XML { -diff --git a/src/sp-metrics.h b/src/sp-metrics.h -index 23c1b6c..c2f9687 100644 ---- a/src/sp-metrics.h -+++ b/src/sp-metrics.h -@@ -1,8 +1,7 @@ - #ifndef SP_METRICS_H - #define SP_METRICS_H - --#include --#include -+#include - #include "sp-metric.h" - - gdouble sp_absolute_metric_to_metric (gdouble length_src, const SPMetric metric_src, const SPMetric metric_dst); -diff --git a/src/sp-radial-gradient.h b/src/sp-radial-gradient.h -index bec6cbe..528b527 100644 ---- a/src/sp-radial-gradient.h -+++ b/src/sp-radial-gradient.h -@@ -5,7 +5,7 @@ - * SPRadialGradient: SVG implementtion. - */ - --#include -+#include - #include "sp-gradient.h" - #include "svg/svg-length.h" - #include "sp-radial-gradient-fns.h" -diff --git a/src/sp-stop.h b/src/sp-stop.h -index 2cf8ad6..96922eb 100644 ---- a/src/sp-stop.h -+++ b/src/sp-stop.h -@@ -8,7 +8,7 @@ - * Authors? - */ - --#include -+#include - #include - #include "sp-object.h" - #include "color.h" -diff --git a/src/sp-text.h b/src/sp-text.h -index b90fe37..5db61ff 100644 ---- a/src/sp-text.h -+++ b/src/sp-text.h -@@ -13,7 +13,7 @@ - * Released under GNU GPL, read the file 'COPYING' for more information - */ - --#include -+#include - #include - #include - #include "sp-item.h" -diff --git a/src/sp-textpath.h b/src/sp-textpath.h -index 1931966..18b42ec 100644 ---- a/src/sp-textpath.h -+++ b/src/sp-textpath.h -@@ -1,7 +1,7 @@ - #ifndef INKSCAPE_SP_TEXTPATH_H - #define INKSCAPE_SP_TEXTPATH_H - --#include -+#include - #include "svg/svg-length.h" - #include "sp-item.h" - #include "sp-text.h" -diff --git a/src/sp-tspan.h b/src/sp-tspan.h -index def8051..6c40d86 100644 ---- a/src/sp-tspan.h -+++ b/src/sp-tspan.h -@@ -5,7 +5,7 @@ - * tspan and textpath, based on the flowtext routines - */ - --#include -+#include - #include "sp-item.h" - #include "text-tag-attributes.h" - -diff --git a/src/splivarot.cpp b/src/splivarot.cpp -index 128fa23..89360d8 100644 ---- a/src/splivarot.cpp -+++ b/src/splivarot.cpp -@@ -20,7 +20,7 @@ - #include - #include - #include --#include -+#include - #include "xml/repr.h" - #include "svg/svg.h" - #include "sp-path.h" -diff --git a/src/spray-context.cpp b/src/spray-context.cpp -index 2bdac19..7d57168 100644 ---- a/src/spray-context.cpp -+++ b/src/spray-context.cpp -@@ -29,7 +29,7 @@ - #include "svg/svg.h" - #include "display/canvas-bpath.h" - --#include -+#include - #include "macros.h" - #include "document.h" - #include "selection.h" -diff --git a/src/svg/css-ostringstream.cpp b/src/svg/css-ostringstream.cpp -index a6eb278..865f6ae 100644 ---- a/src/svg/css-ostringstream.cpp -+++ b/src/svg/css-ostringstream.cpp -@@ -1,8 +1,7 @@ - #include "svg/css-ostringstream.h" - #include "svg/strip-trailing-zeros.h" - #include "preferences.h" --#include --#include -+#include - - Inkscape::CSSOStringStream::CSSOStringStream() - { -diff --git a/src/svg/css-ostringstream.h b/src/svg/css-ostringstream.h -index 48ecf29..93bf32d 100644 ---- a/src/svg/css-ostringstream.h -+++ b/src/svg/css-ostringstream.h -@@ -1,7 +1,7 @@ - #ifndef SVG_CSS_OSTRINGSTREAM_H_INKSCAPE - #define SVG_CSS_OSTRINGSTREAM_H_INKSCAPE - --#include -+#include - #include - - namespace Inkscape { -diff --git a/src/svg/stringstream.h b/src/svg/stringstream.h -index 60ed74e..4623cbc 100644 ---- a/src/svg/stringstream.h -+++ b/src/svg/stringstream.h -@@ -1,7 +1,7 @@ - #ifndef INKSCAPE_STRINGSTREAM_H - #define INKSCAPE_STRINGSTREAM_H - --#include -+#include - #include - #include - -diff --git a/src/svg/strip-trailing-zeros.cpp b/src/svg/strip-trailing-zeros.cpp -index 769834d..daad8b9 100644 ---- a/src/svg/strip-trailing-zeros.cpp -+++ b/src/svg/strip-trailing-zeros.cpp -@@ -1,7 +1,7 @@ - - #include - #include --#include -+#include - - #include "svg/strip-trailing-zeros.h" - -diff --git a/src/svg/svg-affine.cpp b/src/svg/svg-affine.cpp -index 91a9fa7..658991a 100644 ---- a/src/svg/svg-affine.cpp -+++ b/src/svg/svg-affine.cpp -@@ -19,7 +19,7 @@ - #include - #include - #include --#include -+#include - #include - #include - #include <2geom/transforms.h> -diff --git a/src/svg/svg-color.cpp b/src/svg/svg-color.cpp -index 04f3877..4d727c3 100644 ---- a/src/svg/svg-color.cpp -+++ b/src/svg/svg-color.cpp -@@ -23,12 +23,7 @@ - #include - #include - #include --#include --#include // g_assert --#include --#include --#include --#include -+#include - #include - - #include "strneq.h" -diff --git a/src/svg/svg-color.h b/src/svg/svg-color.h -index a3868c1..d1c7bee 100644 ---- a/src/svg/svg-color.h -+++ b/src/svg/svg-color.h -@@ -1,7 +1,7 @@ - #ifndef SVG_SVG_COLOR_H_SEEN - #define SVG_SVG_COLOR_H_SEEN - --#include -+#include - - class SVGICCColor; - -diff --git a/src/svg/svg-length.cpp b/src/svg/svg-length.cpp -index 94f1cf3..ae5f758 100644 ---- a/src/svg/svg-length.cpp -+++ b/src/svg/svg-length.cpp -@@ -19,7 +19,7 @@ - #include - #include - #include --#include -+#include - - #include "svg.h" - #include "stringstream.h" -diff --git a/src/svg/svg-length.h b/src/svg/svg-length.h -index 1f4be81..f5631b1 100644 ---- a/src/svg/svg-length.h -+++ b/src/svg/svg-length.h -@@ -16,7 +16,7 @@ - * Released under GNU GPL, read the file 'COPYING' for more information - */ - --#include -+#include - - class SVGLength - { -diff --git a/src/svg/svg-path-geom-test.h b/src/svg/svg-path-geom-test.h -index 1a084d5..a1bd4d7 100644 ---- a/src/svg/svg-path-geom-test.h -+++ b/src/svg/svg-path-geom-test.h -@@ -8,7 +8,7 @@ - #include - #include - #include --#include -+#include - - class SvgPathGeomTest : public CxxTest::TestSuite - { -diff --git a/src/svg/svg-path.cpp b/src/svg/svg-path.cpp -index bbf1589..b58ec40 100644 ---- a/src/svg/svg-path.cpp -+++ b/src/svg/svg-path.cpp -@@ -31,10 +31,7 @@ - #include - #include - #include --#include --#include --#include --#include // g_assert() -+#include - - #include "svg/svg.h" - #include "svg/path-string.h" -diff --git a/src/svg/svg.h b/src/svg/svg.h -index 0b2c3ae..7ff8ecc 100644 ---- a/src/svg/svg.h -+++ b/src/svg/svg.h -@@ -11,7 +11,7 @@ - * - * Released under GNU GPL, read the file 'COPYING' for more information - */ --#include -+#include - #include - #include - #include -diff --git a/src/text-editing.h b/src/text-editing.h -index 038458f..9777c67 100644 ---- a/src/text-editing.h -+++ b/src/text-editing.h -@@ -13,7 +13,7 @@ - * Released under GNU GPL, read the file 'COPYING' for more information - */ - --#include -+#include - #include // std::pair - #include "libnrtype/Layout-TNG.h" - #include -diff --git a/src/text-tag-attributes.h b/src/text-tag-attributes.h -index 197bfb7..1c73869 100644 ---- a/src/text-tag-attributes.h -+++ b/src/text-tag-attributes.h -@@ -2,7 +2,7 @@ - #define INKSCAPE_TEXT_TAG_ATTRIBUTES_H - - #include --#include -+#include - #include "libnrtype/Layout-TNG.h" - #include "svg/svg-length.h" - -diff --git a/src/trace/potrace/potracelib.cpp b/src/trace/potrace/potracelib.cpp -index 136f7a9..9505aa0 100644 ---- a/src/trace/potrace/potracelib.cpp -+++ b/src/trace/potrace/potracelib.cpp -@@ -4,7 +4,7 @@ - - #include - #include --#include -+#include - - #include "potracelib.h" - #include "inkscape-version.h" -diff --git a/src/tweak-context.cpp b/src/tweak-context.cpp -index 904d0cb..ce6a515 100644 ---- a/src/tweak-context.cpp -+++ b/src/tweak-context.cpp -@@ -22,7 +22,7 @@ - #include "svg/svg.h" - #include "display/canvas-bpath.h" - --#include -+#include - #include "macros.h" - #include "document.h" - #include "selection.h" -diff --git a/src/ui/cache/svg_preview_cache.cpp b/src/ui/cache/svg_preview_cache.cpp -index 6e05f6c..c13d41f 100644 ---- a/src/ui/cache/svg_preview_cache.cpp -+++ b/src/ui/cache/svg_preview_cache.cpp -@@ -19,7 +19,7 @@ - # include "config.h" - #endif - --#include -+#include - #include - #include "sp-namedview.h" - #include "selection.h" -diff --git a/src/ui/dialog/desktop-tracker.h b/src/ui/dialog/desktop-tracker.h -index b5b83b5..dc492d2 100644 ---- a/src/ui/dialog/desktop-tracker.h -+++ b/src/ui/dialog/desktop-tracker.h -@@ -13,7 +13,7 @@ - - #include - #include --#include -+#include - - typedef struct _GtkWidget GtkWidget; - class SPDesktop; -diff --git a/src/ui/dialog/dialog-manager.h b/src/ui/dialog/dialog-manager.h -index a97b58c..f088b16 100644 ---- a/src/ui/dialog/dialog-manager.h -+++ b/src/ui/dialog/dialog-manager.h -@@ -14,7 +14,7 @@ - #ifndef INKSCAPE_UI_DIALOG_MANAGER_H - #define INKSCAPE_UI_DIALOG_MANAGER_H - --#include -+#include - #include "dialog.h" - #include - -diff --git a/src/ui/dialog/icon-preview.cpp b/src/ui/dialog/icon-preview.cpp -index cbd2769..306e990 100644 ---- a/src/ui/dialog/icon-preview.cpp -+++ b/src/ui/dialog/icon-preview.cpp -@@ -16,7 +16,7 @@ - #endif - - #include --#include -+#include - #include - #include - #include -diff --git a/src/ui/dialog/input.cpp b/src/ui/dialog/input.cpp -index 8c98515..1cd8eac 100644 ---- a/src/ui/dialog/input.cpp -+++ b/src/ui/dialog/input.cpp -@@ -11,7 +11,7 @@ - #include - #include - #include --#include -+#include - #include - #include - #include -diff --git a/src/ui/widget/icon-widget.cpp b/src/ui/widget/icon-widget.cpp -index 64415f4..210b3dc 100644 ---- a/src/ui/widget/icon-widget.cpp -+++ b/src/ui/widget/icon-widget.cpp -@@ -14,7 +14,7 @@ - # include - #endif - --#include -+#include - #include "icon-widget.h" - - namespace Inkscape { -diff --git a/src/ui/widget/spin-slider.cpp b/src/ui/widget/spin-slider.cpp -index e3e73a5..69bfb6d 100644 ---- a/src/ui/widget/spin-slider.cpp -+++ b/src/ui/widget/spin-slider.cpp -@@ -10,7 +10,7 @@ - * Released under GNU GPL. Read the file 'COPYING' for more information. - */ - --#include "glib/gstrfuncs.h" -+#include - #include "glibmm/i18n.h" - - #include "spin-slider.h" -diff --git a/src/unclump.h b/src/unclump.h -index c5a8bf7..82dd272 100644 ---- a/src/unclump.h -+++ b/src/unclump.h -@@ -11,7 +11,7 @@ - #ifndef SEEN_DIALOGS_UNCLUMP_H - #define SEEN_DIALOGS_UNCLUMP_H - --#include -+#include - - void unclump(GSList *items); - -diff --git a/src/uri.h b/src/uri.h -index 1c890a6..38a4707 100644 ---- a/src/uri.h -+++ b/src/uri.h -@@ -14,7 +14,7 @@ - #ifndef INKSCAPE_URI_H - #define INKSCAPE_URI_H - --#include -+#include - #include - #include - #include "bad-uri-exception.h" -diff --git a/src/util/glib-list-iterators.h b/src/util/glib-list-iterators.h -index 586bc31..9e73fa6 100644 ---- a/src/util/glib-list-iterators.h -+++ b/src/util/glib-list-iterators.h -@@ -17,8 +17,7 @@ - - #include - #include --#include "glib/gslist.h" --#include "glib/glist.h" -+#include - - namespace Inkscape { - -diff --git a/src/util/share.cpp b/src/util/share.cpp -index 2f693fa..f74de23 100644 ---- a/src/util/share.cpp -+++ b/src/util/share.cpp -@@ -10,7 +10,7 @@ - */ - - #include "util/share.h" --#include -+#include - - namespace Inkscape { - namespace Util { -diff --git a/src/version.cpp b/src/version.cpp -index edaa600..ef7fbe2 100644 ---- a/src/version.cpp -+++ b/src/version.cpp -@@ -12,7 +12,7 @@ - */ - - #include --#include -+#include - #include "version.h" - - gboolean sp_version_from_string(const gchar *string, Inkscape::Version *version) -diff --git a/src/version.h b/src/version.h -index c620631..0a0381c 100644 ---- a/src/version.h -+++ b/src/version.h -@@ -10,7 +10,7 @@ - #ifndef SEEN_INKSCAPE_VERSION_H - #define SEEN_INKSCAPE_VERSION_H - --#include -+#include - - #define SVG_VERSION "1.1" - -diff --git a/src/widgets/icon.cpp b/src/widgets/icon.cpp -index 851abe9..2a814fe 100644 ---- a/src/widgets/icon.cpp -+++ b/src/widgets/icon.cpp -@@ -16,7 +16,7 @@ - #endif - - #include --#include -+#include - #include - #include - -diff --git a/src/widgets/sp-color-icc-selector.h b/src/widgets/sp-color-icc-selector.h -index f76b258..f6e7cca 100644 ---- a/src/widgets/sp-color-icc-selector.h -+++ b/src/widgets/sp-color-icc-selector.h -@@ -1,7 +1,7 @@ - #ifndef SEEN_SP_COLOR_ICC_SELECTOR_H - #define SEEN_SP_COLOR_ICC_SELECTOR_H - --#include -+#include - #include - - #include "../color.h" -diff --git a/src/widgets/sp-color-scales.h b/src/widgets/sp-color-scales.h -index b50c386..38219b5 100644 ---- a/src/widgets/sp-color-scales.h -+++ b/src/widgets/sp-color-scales.h -@@ -1,7 +1,7 @@ - #ifndef SEEN_SP_COLOR_SCALES_H - #define SEEN_SP_COLOR_SCALES_H - --#include -+#include - #include - - #include -diff --git a/src/widgets/sp-color-wheel-selector.h b/src/widgets/sp-color-wheel-selector.h -index 56bc8af..4124b1f 100644 ---- a/src/widgets/sp-color-wheel-selector.h -+++ b/src/widgets/sp-color-wheel-selector.h -@@ -1,7 +1,7 @@ - #ifndef SEEN_SP_COLOR_WHEEL_SELECTOR_H - #define SEEN_SP_COLOR_WHEEL_SELECTOR_H - --#include -+#include - #include - - #include "../color.h" -diff --git a/src/widgets/spinbutton-events.h b/src/widgets/spinbutton-events.h -index a9ff741..5092861 100644 ---- a/src/widgets/spinbutton-events.h -+++ b/src/widgets/spinbutton-events.h -@@ -9,7 +9,7 @@ - * Released under GNU GPL, read the file 'COPYING' for more information - */ - --#include -+#include - #include /* GtkWidget */ - - gboolean spinbutton_focus_in (GtkWidget *w, GdkEventKey *event, gpointer data); -diff --git a/src/widgets/spw-utilities.h b/src/widgets/spw-utilities.h -index 78f7937..f0ec2f4 100644 ---- a/src/widgets/spw-utilities.h -+++ b/src/widgets/spw-utilities.h -@@ -18,7 +18,7 @@ - SPObject, that reacts to modification. - */ - --#include -+#include - - typedef struct _GtkWidget GtkWidget; - -diff --git a/src/widgets/stroke-style.cpp b/src/widgets/stroke-style.cpp -index f020b0c..907952f 100644 ---- a/src/widgets/stroke-style.cpp -+++ b/src/widgets/stroke-style.cpp -@@ -18,7 +18,7 @@ - - #define noSP_SS_VERBOSE - --#include -+#include - #include - #include - -diff --git a/src/xml/attribute-record.h b/src/xml/attribute-record.h -index bab0b5a..a61329b 100644 ---- a/src/xml/attribute-record.h -+++ b/src/xml/attribute-record.h -@@ -5,8 +5,7 @@ - #ifndef SEEN_XML_SP_REPR_ATTR_H - #define SEEN_XML_SP_REPR_ATTR_H - --#include --#include -+#include - #include "gc-managed.h" - #include "util/share.h" - -diff --git a/src/xml/comment-node.h b/src/xml/comment-node.h -index 698a30a..ec94691 100644 ---- a/src/xml/comment-node.h -+++ b/src/xml/comment-node.h -@@ -15,7 +15,7 @@ - #ifndef SEEN_INKSCAPE_XML_COMMENT_NODE_H - #define SEEN_INKSCAPE_XML_COMMENT_NODE_H - --#include -+#include - #include "xml/simple-node.h" - - namespace Inkscape { -diff --git a/src/xml/croco-node-iface.cpp b/src/xml/croco-node-iface.cpp -index db98e3d..e67eeac 100644 ---- a/src/xml/croco-node-iface.cpp -+++ b/src/xml/croco-node-iface.cpp -@@ -1,7 +1,7 @@ - - #include - #include --#include -+#include - - #include "xml/croco-node-iface.h" - #include "xml/node.h" -diff --git a/src/xml/event.h b/src/xml/event.h -index c622577..acd2bfc 100644 ---- a/src/xml/event.h -+++ b/src/xml/event.h -@@ -18,8 +18,7 @@ - #ifndef SEEN_INKSCAPE_XML_SP_REPR_ACTION_H - #define SEEN_INKSCAPE_XML_SP_REPR_ACTION_H - --#include --#include -+#include - #include - - #include -diff --git a/src/xml/node-event-vector.h b/src/xml/node-event-vector.h -index 0c291c2..e639687 100644 ---- a/src/xml/node-event-vector.h -+++ b/src/xml/node-event-vector.h -@@ -14,7 +14,7 @@ - #ifndef SEEN_INKSCAPE_XML_SP_REPR_EVENT_VECTOR - #define SEEN_INKSCAPE_XML_SP_REPR_EVENT_VECTOR - --#include -+#include - - #include "xml/node.h" - -diff --git a/src/xml/node-observer.h b/src/xml/node-observer.h -index ca787c2..44f11e5 100644 ---- a/src/xml/node-observer.h -+++ b/src/xml/node-observer.h -@@ -18,7 +18,7 @@ - #ifndef SEEN_INKSCAPE_XML_NODE_OBSERVER_H - #define SEEN_INKSCAPE_XML_NODE_OBSERVER_H - --#include -+#include - #include "util/share.h" - #include "xml/xml-forward.h" - -diff --git a/src/xml/node.h b/src/xml/node.h -index abcccdb..ad3f3de 100644 ---- a/src/xml/node.h -+++ b/src/xml/node.h -@@ -18,7 +18,7 @@ - #ifndef SEEN_INKSCAPE_XML_NODE_H - #define SEEN_INKSCAPE_XML_NODE_H - --#include -+#include - #include "gc-anchored.h" - #include "util/list.h" - #include "xml/xml-forward.h" -diff --git a/src/xml/pi-node.h b/src/xml/pi-node.h -index 4aa1f84..548216a 100644 ---- a/src/xml/pi-node.h -+++ b/src/xml/pi-node.h -@@ -14,7 +14,7 @@ - #ifndef SEEN_INKSCAPE_XML_PI_NODE_H - #define SEEN_INKSCAPE_XML_PI_NODE_H - --#include -+#include - #include "xml/simple-node.h" - - namespace Inkscape { -diff --git a/src/xml/quote.cpp b/src/xml/quote.cpp -index 37f00ba..166cf26 100644 ---- a/src/xml/quote.cpp -+++ b/src/xml/quote.cpp -@@ -12,7 +12,7 @@ - */ - - #include --#include -+#include - - - /** \return strlen(xml_quote_strdup(\a val)) (without doing the malloc). -diff --git a/src/xml/rebase-hrefs.cpp b/src/xml/rebase-hrefs.cpp -index c387672..c27e9dd 100644 ---- a/src/xml/rebase-hrefs.cpp -+++ b/src/xml/rebase-hrefs.cpp -@@ -7,9 +7,7 @@ - #include "util/share.h" - #include "xml/attribute-record.h" - #include "xml/node.h" --#include --#include --#include -+#include - using Inkscape::XML::AttributeRecord; - - -diff --git a/src/xml/rebase-hrefs.h b/src/xml/rebase-hrefs.h -index b4f288c..ae29a75 100644 ---- a/src/xml/rebase-hrefs.h -+++ b/src/xml/rebase-hrefs.h -@@ -1,7 +1,7 @@ - #ifndef REBASE_HREFS_H_SEEN - #define REBASE_HREFS_H_SEEN - --#include -+#include - #include "util/list.h" - #include "xml/attribute-record.h" - struct SPDocument; -diff --git a/src/xml/repr.h b/src/xml/repr.h -index 549822e..b6482e6 100644 ---- a/src/xml/repr.h -+++ b/src/xml/repr.h -@@ -14,7 +14,7 @@ - #define __SP_REPR_H__ - - #include --#include -+#include - #include "gc-anchored.h" - - #include "xml/node.h" -diff --git a/src/xml/simple-node.cpp b/src/xml/simple-node.cpp -index 7ecdc1b..0c781e2 100644 ---- a/src/xml/simple-node.cpp -+++ b/src/xml/simple-node.cpp -@@ -16,7 +16,7 @@ - - #include - #include --#include -+#include - - #include "xml/node.h" - #include "xml/simple-node.h" -diff --git a/src/xml/text-node.h b/src/xml/text-node.h -index ef6e477..5948bc1 100644 ---- a/src/xml/text-node.h -+++ b/src/xml/text-node.h -@@ -15,7 +15,7 @@ - #ifndef SEEN_INKSCAPE_XML_TEXT_NODE_H - #define SEEN_INKSCAPE_XML_TEXT_NODE_H - --#include -+#include - #include "xml/simple-node.h" - - namespace Inkscape { diff --git a/inkscape-0.48.2-png-write.patch b/inkscape-0.48.2-png-write.patch deleted file mode 100644 index 055067f..0000000 --- a/inkscape-0.48.2-png-write.patch +++ /dev/null @@ -1,31 +0,0 @@ -From: inkscape upstream -Fix compilation against libpng-1.5 - -=== modified file 'src/extension/internal/pdfinput/svg-builder.cpp' ---- src/extension/internal/pdfinput/svg-builder.cpp 2011-10-27 04:55:51 +0000 -+++ src/extension/internal/pdfinput/svg-builder.cpp 2011-10-29 20:34:00 +0000 -@@ -1481,7 +1481,7 @@ - return NULL; - } - // Set error handler -- if (setjmp(png_ptr->jmpbuf)) { -+ if (setjmp(png_jmpbuf(png_ptr))) { - png_destroy_write_struct(&png_ptr, &info_ptr); - return NULL; - } - -=== modified file 'src/helper/png-write.cpp' ---- src/helper/png-write.cpp 2011-08-07 10:53:12 +0000 -+++ src/helper/png-write.cpp 2011-10-29 20:34:00 +0000 -@@ -166,8 +166,8 @@ - /* Set error handling. REQUIRED if you aren't supplying your own - * error hadnling functions in the png_create_write_struct() call. - */ -- if (setjmp(png_ptr->jmpbuf)) { -- /* If we get here, we had a problem reading the file */ -+ if (setjmp(png_jmpbuf(png_ptr))) { -+ // If we get here, we had a problem reading the file - fclose(fp); - png_destroy_write_struct(&png_ptr, &info_ptr); - return false; - diff --git a/inkscape-0.48.2-png.patch b/inkscape-0.48.2-png.patch deleted file mode 100644 index 0e17d2b..0000000 --- a/inkscape-0.48.2-png.patch +++ /dev/null @@ -1,23 +0,0 @@ -From: inkscape upstream -Fix compilation against libpng-1.5 - -=== modified file 'src/sp-image.cpp' ---- src/sp-image.cpp 2011-02-21 07:59:34 +0000 -+++ src/sp-image.cpp 2011-02-21 08:57:28 +0000 -@@ -387,9 +387,13 @@ - - #if defined(PNG_iCCP_SUPPORTED) - { -- char* name = 0; -+ png_charp name = 0; - int compression_type = 0; -- char* profile = 0; -+#if (PNG_LIBPNG_VER < 10500) -+ png_charp profile = 0; -+#else -+ png_bytep profile = 0; -+#endif - png_uint_32 proflen = 0; - if ( png_get_iCCP(pngPtr, infoPtr, &name, &compression_type, &profile, &proflen) ) { - // g_message("Found an iCCP chunk named [%s] with %d bytes and comp %d", name, proflen, compression_type); - diff --git a/inkscape-0.48.2-poppler_020.patch b/inkscape-0.48.2-poppler_020.patch deleted file mode 100644 index 427d436..0000000 --- a/inkscape-0.48.2-poppler_020.patch +++ /dev/null @@ -1,683 +0,0 @@ -diff -up inkscape-0.48.2/configure.ac.poppler_020 inkscape-0.48.2/configure.ac ---- inkscape-0.48.2/configure.ac.poppler_020 2011-07-08 14:23:16.270623076 -0500 -+++ inkscape-0.48.2/configure.ac 2012-06-23 12:01:38.918678539 -0500 -@@ -623,6 +623,12 @@ if test "x$popplernew" = "xyes"; then - AC_DEFINE(POPPLER_NEW_GFXFONT, 1, [Use GfxFont from Poppler >= 0.8.3]) - fi - -+PKG_CHECK_MODULES(POPPLER_NEWERRORAPI, poppler >= 0.20.0, popplernewerror=yes, popplernewerror=no) -+if test "x$popplernewerror" = "xyes"; then -+ AC_DEFINE(POPPLER_NEW_ERRORAPI, 1, [Use new error API from Poppler >= 0.20.0]) -+fi -+ -+ - ink_svd_CPPFLAGS=$CPPFLAGS - ink_svd_LIBS=$LIBS - CPPFLAGS="$CPPFLAGS $POPPLER_CFLAGS" -diff -up inkscape-0.48.2/src/extension/internal/pdfinput/pdf-parser.cpp.poppler_020 inkscape-0.48.2/src/extension/internal/pdfinput/pdf-parser.cpp ---- inkscape-0.48.2/src/extension/internal/pdfinput/pdf-parser.cpp.poppler_020 2011-07-08 13:25:09.468790000 -0500 -+++ inkscape-0.48.2/src/extension/internal/pdfinput/pdf-parser.cpp 2012-06-23 12:08:49.285298266 -0500 -@@ -367,15 +367,23 @@ void PdfParser::parse(Object *obj, GBool - for (i = 0; i < obj->arrayGetLength(); ++i) { - obj->arrayGet(i, &obj2); - if (!obj2.isStream()) { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errInternal, -1, "Weird page contents"); -+#else - error(-1, const_cast("Weird page contents")); -+#endif - obj2.free(); - return; - } - obj2.free(); - } - } else if (!obj->isStream()) { -- error(-1, const_cast("Weird page contents")); -- return; -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errInternal, -1, "Weird page contents"); -+#else -+ error(-1, const_cast("Weird page contents")); -+#endif -+ return; - } - parser = new Parser(xref, new Lexer(xref, obj), gFalse); - go(topLevel); -@@ -419,7 +427,11 @@ void PdfParser::go(GBool topLevel) { - - // too many arguments - something is wrong - } else { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "Too many args in content stream"); -+#else - error(getPos(), const_cast("Too many args in content stream")); -+#endif - if (printCommands) { - printf("throwing away arg: "); - obj.print(stdout); -@@ -436,7 +448,11 @@ void PdfParser::go(GBool topLevel) { - - // args at end with no command - if (numArgs > 0) { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "Leftover args in content stream"); -+#else - error(getPos(), const_cast("Leftover args in content stream")); -+#endif - if (printCommands) { - printf("%d leftovers:", numArgs); - for (i = 0; i < numArgs; ++i) { -@@ -502,7 +518,11 @@ void PdfParser::execOp(Object *cmd, Obje - name = cmd->getCmd(); - if (!(op = findOp(name))) { - if (ignoreUndef == 0) -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "Unknown operator '{0:s}'", name); -+#else - error(getPos(), const_cast("Unknown operator '%s'"), name); -+#endif - return; - } - -@@ -510,26 +530,42 @@ void PdfParser::execOp(Object *cmd, Obje - argPtr = args; - if (op->numArgs >= 0) { - if (numArgs < op->numArgs) { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "Too few ({0:d}) args to '{1:d}' operator", numArgs, name); -+#else - error(getPos(), const_cast("Too few (%d) args to '%s' operator"), numArgs, name); -+#endif - return; - } - if (numArgs > op->numArgs) { - #if 0 -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "Too many ({0:d}) args to '{1:s}' operator", numArgs, name); -+#else - error(getPos(), "Too many (%d) args to '%s' operator", numArgs, name); - #endif -+#endif - argPtr += numArgs - op->numArgs; - numArgs = op->numArgs; - } - } else { - if (numArgs > -op->numArgs) { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "Too many ({0:d}) args to '{1:s}' operator", -+#else - error(getPos(), const_cast("Too many (%d) args to '%s' operator"), -+#endif - numArgs, name); - return; - } - } - for (i = 0; i < numArgs; ++i) { - if (!checkArg(&argPtr[i], op->tchk[i])) { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "Arg #{0:d} to '{1:s}' operator is wrong type ({2:s})", -+#else - error(getPos(), const_cast("Arg #%d to '%s' operator is wrong type (%s)"), -+#endif - i, name, argPtr[i].getTypeName()); - return; - } -@@ -690,7 +726,11 @@ void PdfParser::opSetExtGState(Object ar - return; - } - if (!obj1.isDict()) { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "ExtGState '{0:s}' is wrong type"), args[0].getName(); -+#else - error(getPos(), const_cast("ExtGState '%s' is wrong type"), args[0].getName()); -+#endif - obj1.free(); - return; - } -@@ -705,7 +745,11 @@ void PdfParser::opSetExtGState(Object ar - if (state->parseBlendMode(&obj2, &mode)) { - state->setBlendMode(mode); - } else { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "Invalid blend mode in ExtGState"); -+#else - error(getPos(), const_cast("Invalid blend mode in ExtGState")); -+#endif - } - } - obj2.free(); -@@ -764,7 +808,11 @@ void PdfParser::opSetExtGState(Object ar - state->setTransfer(funcs); - } - } else if (!obj2.isNull()) { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "Invalid transfer function in ExtGState"); -+#else - error(getPos(), const_cast("Invalid transfer function in ExtGState")); -+#endif - } - obj2.free(); - -@@ -784,8 +832,11 @@ void PdfParser::opSetExtGState(Object ar - funcs[0] = Function::parse(&obj3); - if (funcs[0]->getInputSize() != 1 || - funcs[0]->getOutputSize() != 1) { -- error(getPos(), -- const_cast("Invalid transfer function in soft mask in ExtGState")); -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "Invalid transfer function in soft mask in ExtGState"); -+#else -+ error(getPos(), const_cast("Invalid transfer function in soft mask in ExtGState")); -+#endif - delete funcs[0]; - funcs[0] = NULL; - } -@@ -809,7 +860,7 @@ void PdfParser::opSetExtGState(Object ar - blendingColorSpace = NULL; - isolated = knockout = gFalse; - if (!obj4.dictLookup(const_cast("CS"), &obj5)->isNull()) { --#ifdef POPPLER_NEW_COLOR_SPACE_API -+#if defined(POPPLER_NEW_COLOR_SPACE_API) || defined(POPPLER_NEW_ERRORAPI) - blendingColorSpace = GfxColorSpace::parse(&obj5, NULL); - #else - blendingColorSpace = GfxColorSpace::parse(&obj5); -@@ -840,15 +891,27 @@ void PdfParser::opSetExtGState(Object ar - delete funcs[0]; - } - } else { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "Invalid soft mask in ExtGState - missing group"); -+#else - error(getPos(), const_cast("Invalid soft mask in ExtGState - missing group")); -+#endif - } - obj4.free(); - } else { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "Invalid soft mask in ExtGState - missing group"); -+#else - error(getPos(), const_cast("Invalid soft mask in ExtGState - missing group")); -+#endif - } - obj3.free(); - } else if (!obj2.isNull()) { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "Invalid soft mask in ExtGState"); -+#else - error(getPos(), const_cast("Invalid soft mask in ExtGState")); -+#endif - } - } - obj2.free(); -@@ -876,7 +939,11 @@ void PdfParser::doSoftMask(Object *str, - // check form type - dict->lookup(const_cast("FormType"), &obj1); - if (!(obj1.isNull() || (obj1.isInt() && obj1.getInt() == 1))) { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "Unknown form type"); -+#else - error(getPos(), const_cast("Unknown form type")); -+#endif - } - obj1.free(); - -@@ -884,7 +951,11 @@ void PdfParser::doSoftMask(Object *str, - dict->lookup(const_cast("BBox"), &obj1); - if (!obj1.isArray()) { - obj1.free(); -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "Bad form bounding box"); -+#else - error(getPos(), const_cast("Bad form bounding box")); -+#endif - return; - } - for (i = 0; i < 4; ++i) { -@@ -1012,7 +1083,7 @@ void PdfParser::opSetFillColorSpace(Obje - - state->setFillPattern(NULL); - res->lookupColorSpace(args[0].getName(), &obj); --#ifdef POPPLER_NEW_COLOR_SPACE_API -+#if defined(POPPLER_NEW_COLOR_SPACE_API) || defined(POPPLER_NEW_ERRORAPI) - if (obj.isNull()) { - colorSpace = GfxColorSpace::parse(&args[0], NULL); - } else { -@@ -1032,7 +1103,11 @@ void PdfParser::opSetFillColorSpace(Obje - state->setFillColor(&color); - builder->updateStyle(state); - } else { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "Bad color space (fill)"); -+#else - error(getPos(), const_cast("Bad color space (fill)")); -+#endif - } - } - -@@ -1043,7 +1118,7 @@ void PdfParser::opSetStrokeColorSpace(Ob - - state->setStrokePattern(NULL); - res->lookupColorSpace(args[0].getName(), &obj); --#ifdef POPPLER_NEW_COLOR_SPACE_API -+#if defined(POPPLER_NEW_COLOR_SPACE_API) || defined(POPPLER_NEW_ERRORAPI) - if (obj.isNull()) { - colorSpace = GfxColorSpace::parse(&args[0], NULL); - } else { -@@ -1063,7 +1138,11 @@ void PdfParser::opSetStrokeColorSpace(Ob - state->setStrokeColor(&color); - builder->updateStyle(state); - } else { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "Bad color space (stroke)"); -+#else - error(getPos(), const_cast("Bad color space (stroke)")); -+#endif - } - } - -@@ -1072,7 +1151,11 @@ void PdfParser::opSetFillColor(Object ar - int i; - - if (numArgs != state->getFillColorSpace()->getNComps()) { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "Incorrect number of arguments in 'sc' command"); -+#else - error(getPos(), const_cast("Incorrect number of arguments in 'sc' command")); -+#endif - return; - } - state->setFillPattern(NULL); -@@ -1088,7 +1171,11 @@ void PdfParser::opSetStrokeColor(Object - int i; - - if (numArgs != state->getStrokeColorSpace()->getNComps()) { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "Incorrect number of arguments in 'SC' command"); -+#else - error(getPos(), const_cast("Incorrect number of arguments in 'SC' command")); -+#endif - return; - } - state->setStrokePattern(NULL); -@@ -1109,7 +1196,11 @@ void PdfParser::opSetFillColorN(Object a - if (!((GfxPatternColorSpace *)state->getFillColorSpace())->getUnder() || - numArgs - 1 != ((GfxPatternColorSpace *)state->getFillColorSpace()) - ->getUnder()->getNComps()) { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "Incorrect number of arguments in 'scn' command"); -+#else - error(getPos(), const_cast("Incorrect number of arguments in 'scn' command")); -+#endif - return; - } - for (i = 0; i < numArgs - 1 && i < gfxColorMaxComps; ++i) { -@@ -1120,7 +1211,7 @@ void PdfParser::opSetFillColorN(Object a - state->setFillColor(&color); - builder->updateStyle(state); - } --#ifdef POPPLER_NEW_COLOR_SPACE_API -+#if defined(POPPLER_NEW_COLOR_SPACE_API) || defined(POPPLER_NEW_ERRORAPI) - if (args[numArgs-1].isName() && - (pattern = res->lookupPattern(args[numArgs-1].getName(), NULL))) { - state->setFillPattern(pattern); -@@ -1136,7 +1227,11 @@ void PdfParser::opSetFillColorN(Object a - - } else { - if (numArgs != state->getFillColorSpace()->getNComps()) { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "Incorrect number of arguments in 'scn' command"); -+#else - error(getPos(), const_cast("Incorrect number of arguments in 'scn' command")); -+#endif - return; - } - state->setFillPattern(NULL); -@@ -1161,7 +1256,11 @@ void PdfParser::opSetStrokeColorN(Object - ->getUnder() || - numArgs - 1 != ((GfxPatternColorSpace *)state->getStrokeColorSpace()) - ->getUnder()->getNComps()) { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "Incorrect number of arguments in 'SCN' command"); -+#else - error(getPos(), const_cast("Incorrect number of arguments in 'SCN' command")); -+#endif - return; - } - for (i = 0; i < numArgs - 1 && i < gfxColorMaxComps; ++i) { -@@ -1172,7 +1271,7 @@ void PdfParser::opSetStrokeColorN(Object - state->setStrokeColor(&color); - builder->updateStyle(state); - } --#ifdef POPPLER_NEW_COLOR_SPACE_API -+#if defined(POPPLER_NEW_COLOR_SPACE_API) || defined(POPPLER_NEW_ERRORAPI) - if (args[numArgs-1].isName() && - (pattern = res->lookupPattern(args[numArgs-1].getName(), NULL))) { - state->setStrokePattern(pattern); -@@ -1188,7 +1287,11 @@ void PdfParser::opSetStrokeColorN(Object - - } else { - if (numArgs != state->getStrokeColorSpace()->getNComps()) { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "Incorrect number of arguments in 'SCN' command"); -+#else - error(getPos(), const_cast("Incorrect number of arguments in 'SCN' command")); -+#endif - return; - } - state->setStrokePattern(NULL); -@@ -1212,7 +1315,11 @@ void PdfParser::opMoveTo(Object args[], - - void PdfParser::opLineTo(Object args[], int numArgs) { - if (!state->isCurPt()) { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "No current point in lineto"); -+#else - error(getPos(), const_cast("No current point in lineto")); -+#endif - return; - } - state->lineTo(args[0].getNum(), args[1].getNum()); -@@ -1222,7 +1329,11 @@ void PdfParser::opCurveTo(Object args[], - double x1, y1, x2, y2, x3, y3; - - if (!state->isCurPt()) { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "No current point in curveto"); -+#else - error(getPos(), const_cast("No current point in curveto")); -+#endif - return; - } - x1 = args[0].getNum(); -@@ -1238,7 +1349,11 @@ void PdfParser::opCurveTo1(Object args[] - double x1, y1, x2, y2, x3, y3; - - if (!state->isCurPt()) { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "No current point in curveto1"); -+#else - error(getPos(), const_cast("No current point in curveto1")); -+#endif - return; - } - x1 = state->getCurX(); -@@ -1254,7 +1369,11 @@ void PdfParser::opCurveTo2(Object args[] - double x1, y1, x2, y2, x3, y3; - - if (!state->isCurPt()) { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "No current point in curveto2"); -+#else - error(getPos(), const_cast("No current point in curveto2")); -+#endif - return; - } - x1 = args[0].getNum(); -@@ -1282,7 +1401,11 @@ void PdfParser::opRectangle(Object args[ - - void PdfParser::opClosePath(Object args[], int numArgs) { - if (!state->isCurPt()) { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "No current point in closepath"); -+#else - error(getPos(), const_cast("No current point in closepath")); -+#endif - return; - } - state->closePath(); -@@ -1440,7 +1563,11 @@ void PdfParser::doPatternFillFallback(GB - doShadingPatternFillFallback((GfxShadingPattern *)pattern, gFalse, eoFill); - break; - default: -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errUnimplemented, getPos(), "Unimplemented pattern type (%d) in fill", -+#else - error(getPos(), const_cast("Unimplemented pattern type (%d) in fill"), -+#endif - pattern->getType()); - break; - } -@@ -1459,7 +1586,11 @@ void PdfParser::doPatternStrokeFallback( - doShadingPatternFillFallback((GfxShadingPattern *)pattern, gTrue, gFalse); - break; - default: -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errUnimplemented, getPos(), "Unimplemented pattern type ({0:d}) in stroke", -+#else - error(getPos(), const_cast("Unimplemented pattern type (%d) in stroke"), -+#endif - pattern->getType()); - break; - } -@@ -1579,7 +1710,7 @@ void PdfParser::opShFill(Object args[], - double *matrix = NULL; - GBool savedState = gFalse; - --#ifdef POPPLER_NEW_COLOR_SPACE_API -+#if defined(POPPLER_NEW_COLOR_SPACE_API) || defined(POPPLER_NEW_ERRORAPI) - if (!(shading = res->lookupShading(args[0].getName(), NULL))) { - return; - } -@@ -2156,7 +2287,11 @@ void PdfParser::opTextNextLine(Object ar - - void PdfParser::opShowText(Object args[], int numArgs) { - if (!state->getFont()) { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "No font in show"); -+#else - error(getPos(), const_cast("No font in show")); -+#endif - return; - } - if (fontChanged) { -@@ -2170,7 +2305,11 @@ void PdfParser::opMoveShowText(Object ar - double tx, ty; - - if (!state->getFont()) { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "No font in move/show"); -+#else - error(getPos(), const_cast("No font in move/show")); -+#endif - return; - } - if (fontChanged) { -@@ -2188,7 +2327,11 @@ void PdfParser::opMoveSetShowText(Object - double tx, ty; - - if (!state->getFont()) { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "No font in move/set/show"); -+#else - error(getPos(), const_cast("No font in move/set/show")); -+#endif - return; - } - if (fontChanged) { -@@ -2211,7 +2354,11 @@ void PdfParser::opShowSpaceText(Object a - int i; - - if (!state->getFont()) { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "No font in show/space"); -+#else - error(getPos(), const_cast("No font in show/space")); -+#endif - return; - } - if (fontChanged) { -@@ -2236,7 +2383,11 @@ void PdfParser::opShowSpaceText(Object a - } else if (obj.isString()) { - doShowText(obj.getString()); - } else { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "Element of show/space array must be number or string"); -+#else - error(getPos(), const_cast("Element of show/space array must be number or string")); -+#endif - } - obj.free(); - } -@@ -2334,7 +2485,11 @@ void PdfParser::doShowText(GooString *s) - if (charProc.isStream()) { - //parse(&charProc, gFalse); // TODO: parse into SVG font - } else { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "Missing or bad Type3 CharProc entry"); -+#else - error(getPos(), const_cast("Missing or bad Type3 CharProc entry")); -+#endif - } - //out->endType3Char(state); - if (resDict) { -@@ -2410,7 +2565,11 @@ void PdfParser::opXObject(Object args[], - return; - } - if (!obj1.isStream()) { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "XObject '{0:s}' is wrong type", name); -+#else - error(getPos(), const_cast("XObject '%s' is wrong type"), name); -+#endif - obj1.free(); - return; - } -@@ -2426,9 +2585,17 @@ void PdfParser::opXObject(Object args[], - /* out->psXObject(obj1.getStream(), - obj3.isStream() ? obj3.getStream() : (Stream *)NULL);*/ - } else if (obj2.isName()) { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "Unknown XObject subtype '{0:s}'", obj2.getName()); -+#else - error(getPos(), const_cast("Unknown XObject subtype '%s'"), obj2.getName()); -+#endif - } else { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "XObject subtype is missing or wrong type"); -+#else - error(getPos(), const_cast("XObject subtype is missing or wrong type")); -+#endif - } - obj2.free(); - obj1.free(); -@@ -2559,7 +2726,7 @@ void PdfParser::doImage(Object *ref, Str - } - } - if (!obj1.isNull()) { --#ifdef POPPLER_NEW_COLOR_SPACE_API -+#if defined(POPPLER_NEW_COLOR_SPACE_API) || defined(POPPLER_NEW_ERRORAPI) - colorSpace = GfxColorSpace::parse(&obj1, NULL); - #else - colorSpace = GfxColorSpace::parse(&obj1); -@@ -2648,7 +2815,7 @@ void PdfParser::doImage(Object *ref, Str - obj2.free(); - } - } --#ifdef POPPLER_NEW_COLOR_SPACE_API -+#if defined(POPPLER_NEW_COLOR_SPACE_API) || defined(POPPLER_NEW_ERRORAPI) - maskColorSpace = GfxColorSpace::parse(&obj1, NULL); - #else - maskColorSpace = GfxColorSpace::parse(&obj1); -@@ -2758,7 +2925,11 @@ void PdfParser::doImage(Object *ref, Str - err2: - obj1.free(); - err1: -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "Bad image parameters"); -+#else - error(getPos(), const_cast("Bad image parameters")); -+#endif - } - - void PdfParser::doForm(Object *str) { -@@ -2783,7 +2954,11 @@ void PdfParser::doForm(Object *str) { - // check form type - dict->lookup(const_cast("FormType"), &obj1); - if (!(obj1.isNull() || (obj1.isInt() && obj1.getInt() == 1))) { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "Unknown form type"); -+#else - error(getPos(), const_cast("Unknown form type")); -+#endif - } - obj1.free(); - -@@ -2791,7 +2966,11 @@ void PdfParser::doForm(Object *str) { - dict->lookup(const_cast("BBox"), &bboxObj); - if (!bboxObj.isArray()) { - bboxObj.free(); -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "Bad form bounding box"); -+#else - error(getPos(), const_cast("Bad form bounding box")); -+#endif - return; - } - for (i = 0; i < 4; ++i) { -@@ -2827,7 +3006,7 @@ void PdfParser::doForm(Object *str) { - if (obj1.dictLookup(const_cast("S"), &obj2)->isName(const_cast("Transparency"))) { - transpGroup = gTrue; - if (!obj1.dictLookup(const_cast("CS"), &obj3)->isNull()) { --#ifdef POPPLER_NEW_COLOR_SPACE_API -+#if defined(POPPLER_NEW_COLOR_SPACE_API) || defined(POPPLER_NEW_ERRORAPI) - blendingColorSpace = GfxColorSpace::parse(&obj3, NULL); - #else - blendingColorSpace = GfxColorSpace::parse(&obj3); -@@ -2990,7 +3169,11 @@ Stream *PdfParser::buildImageStream() { - parser->getObj(&obj); - while (!obj.isCmd(const_cast("ID")) && !obj.isEOF()) { - if (!obj.isName()) { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "Inline image dictionary key must be a name object"); -+#else - error(getPos(), const_cast("Inline image dictionary key must be a name object")); -+#endif - obj.free(); - } else { - key = copyString(obj.getName()); -@@ -3005,7 +3188,11 @@ Stream *PdfParser::buildImageStream() { - parser->getObj(&obj); - } - if (obj.isEOF()) { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errSyntaxError, getPos(), "End of file in inline image"); -+#else - error(getPos(), const_cast("End of file in inline image")); -+#endif - obj.free(); - dict.free(); - return NULL; -@@ -3020,11 +3207,19 @@ Stream *PdfParser::buildImageStream() { - } - - void PdfParser::opImageData(Object args[], int numArgs) { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errInternal, getPos(), "Internal: got 'ID' operator"); -+#else - error(getPos(), const_cast("Internal: got 'ID' operator")); -+#endif - } - - void PdfParser::opEndImage(Object args[], int numArgs) { -+#ifdef POPPLER_NEW_ERRORAPI -+ error(errInternal, getPos(), "Internal: got 'EI' operator"); -+#else - error(getPos(), const_cast("Internal: got 'EI' operator")); -+#endif - } - - //------------------------------------------------------------------------ -diff -up inkscape-0.48.2/src/extension/internal/pdfinput/svg-builder.cpp.poppler_020 inkscape-0.48.2/src/extension/internal/pdfinput/svg-builder.cpp ---- inkscape-0.48.2/src/extension/internal/pdfinput/svg-builder.cpp.poppler_020 2012-06-23 12:01:38.912678613 -0500 -+++ inkscape-0.48.2/src/extension/internal/pdfinput/svg-builder.cpp 2012-06-23 12:01:38.920678513 -0500 -@@ -961,9 +961,7 @@ void SvgBuilder::updateFont(GfxState *st - _font_style = sp_repr_css_attr_new(); - GfxFont *font = state->getFont(); - // Store original name -- if (font->getOrigName()) { -- _font_specification = font->getOrigName()->getCString(); -- } else if (font->getName()) { -+ if (font->getName()) { - _font_specification = font->getName()->getCString(); - } else { - _font_specification = (char*) "Arial"; diff --git a/inkscape-0.48.3.1-hugexml.patch b/inkscape-0.48.3.1-hugexml.patch deleted file mode 100644 index a1822aa..0000000 --- a/inkscape-0.48.3.1-hugexml.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- src/xml/repr-io.cpp~ 2011-07-08 13:25:09.000000000 -0500 -+++ src/xml/repr-io.cpp 2012-11-01 08:59:23.620360123 -0500 -@@ -294,7 +294,7 @@ - &src, - localFilename, - src.getEncoding(), -- XML_PARSE_NOENT ); -+ XML_PARSE_NOENT | XML_PARSE_HUGE); - } - } - diff --git a/inkscape-0.48.4-freetype.patch b/inkscape-0.48.4-freetype.patch deleted file mode 100644 index 2bcfdbb..0000000 --- a/inkscape-0.48.4-freetype.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- src/libnrtype/FontFactory.h~ 2011-07-08 13:25:09.000000000 -0500 -+++ src/libnrtype/FontFactory.h 2014-03-31 10:30:21.908992050 -0500 -@@ -31,7 +31,7 @@ - #include - #else - #include --#include -+#include - #endif - - namespace Glib diff --git a/inkscape-0.48.4-gc-7.4.patch b/inkscape-0.48.4-gc-7.4.patch deleted file mode 100644 index 55f417e..0000000 --- a/inkscape-0.48.4-gc-7.4.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -rupN inkscape-0.48.4/configure.ac inkscape-0.48.4-new/configure.ac ---- inkscape-0.48.4/configure.ac 2012-12-15 17:50:19.205918190 +0100 -+++ inkscape-0.48.4-new/configure.ac 2014-05-15 00:29:24.076377009 +0200 -@@ -263,7 +263,7 @@ if test "x$gc_ok" = "xyes" && test "x$cr - # include - #endif - #include -- extern unsigned GC_version; -+ unsigned GC_version = GC_get_version(); - int main(void){ - unsigned min = ((6 << 16) | (4 << 8) | 0); - printf("%d.%d.%d ",GC_version >> 16, (GC_version >> 8) & 0xFF, GC_version & 0xFF); diff --git a/inkscape-0.48.4-poppler-0.26.patch b/inkscape-0.48.4-poppler-0.26.patch deleted file mode 100644 index 921c1b4..0000000 --- a/inkscape-0.48.4-poppler-0.26.patch +++ /dev/null @@ -1,90 +0,0 @@ -diff -rupN inkscape-0.48.4/src/extension/internal/pdfinput/pdf-parser.cpp inkscape-0.48.4-new/src/extension/internal/pdfinput/pdf-parser.cpp ---- inkscape-0.48.4/src/extension/internal/pdfinput/pdf-parser.cpp 2012-12-13 18:00:46.726633000 +0100 -+++ inkscape-0.48.4-new/src/extension/internal/pdfinput/pdf-parser.cpp 2014-05-15 00:06:39.247501345 +0200 -@@ -861,7 +861,7 @@ void PdfParser::opSetExtGState(Object ar - isolated = knockout = gFalse; - if (!obj4.dictLookup(const_cast("CS"), &obj5)->isNull()) { - #if defined(POPPLER_NEW_COLOR_SPACE_API) || defined(POPPLER_NEW_ERRORAPI) -- blendingColorSpace = GfxColorSpace::parse(&obj5, NULL); -+ blendingColorSpace = GfxColorSpace::parse(&obj5, NULL, NULL); - #else - blendingColorSpace = GfxColorSpace::parse(&obj5); - #endif -@@ -1085,9 +1085,9 @@ void PdfParser::opSetFillColorSpace(Obje - res->lookupColorSpace(args[0].getName(), &obj); - #if defined(POPPLER_NEW_COLOR_SPACE_API) || defined(POPPLER_NEW_ERRORAPI) - if (obj.isNull()) { -- colorSpace = GfxColorSpace::parse(&args[0], NULL); -+ colorSpace = GfxColorSpace::parse(&args[0], NULL, NULL); - } else { -- colorSpace = GfxColorSpace::parse(&obj, NULL); -+ colorSpace = GfxColorSpace::parse(&obj, NULL, NULL); - } - #else - if (obj.isNull()) { -@@ -1120,9 +1120,9 @@ void PdfParser::opSetStrokeColorSpace(Ob - res->lookupColorSpace(args[0].getName(), &obj); - #if defined(POPPLER_NEW_COLOR_SPACE_API) || defined(POPPLER_NEW_ERRORAPI) - if (obj.isNull()) { -- colorSpace = GfxColorSpace::parse(&args[0], NULL); -+ colorSpace = GfxColorSpace::parse(&args[0], NULL, NULL); - } else { -- colorSpace = GfxColorSpace::parse(&obj, NULL); -+ colorSpace = GfxColorSpace::parse(&obj, NULL, NULL); - } - #else - if (obj.isNull()) { -@@ -1213,7 +1213,7 @@ void PdfParser::opSetFillColorN(Object a - } - #if defined(POPPLER_NEW_COLOR_SPACE_API) || defined(POPPLER_NEW_ERRORAPI) - if (args[numArgs-1].isName() && -- (pattern = res->lookupPattern(args[numArgs-1].getName(), NULL))) { -+ (pattern = res->lookupPattern(args[numArgs-1].getName(), NULL, NULL))) { - state->setFillPattern(pattern); - builder->updateStyle(state); - } -@@ -1273,7 +1273,7 @@ void PdfParser::opSetStrokeColorN(Object - } - #if defined(POPPLER_NEW_COLOR_SPACE_API) || defined(POPPLER_NEW_ERRORAPI) - if (args[numArgs-1].isName() && -- (pattern = res->lookupPattern(args[numArgs-1].getName(), NULL))) { -+ (pattern = res->lookupPattern(args[numArgs-1].getName(), NULL, NULL))) { - state->setStrokePattern(pattern); - builder->updateStyle(state); - } -@@ -1711,7 +1711,7 @@ void PdfParser::opShFill(Object args[], - GBool savedState = gFalse; - - #if defined(POPPLER_NEW_COLOR_SPACE_API) || defined(POPPLER_NEW_ERRORAPI) -- if (!(shading = res->lookupShading(args[0].getName(), NULL))) { -+ if (!(shading = res->lookupShading(args[0].getName(), NULL, NULL))) { - return; - } - #else -@@ -2727,7 +2727,7 @@ void PdfParser::doImage(Object *ref, Str - } - if (!obj1.isNull()) { - #if defined(POPPLER_NEW_COLOR_SPACE_API) || defined(POPPLER_NEW_ERRORAPI) -- colorSpace = GfxColorSpace::parse(&obj1, NULL); -+ colorSpace = GfxColorSpace::parse(&obj1, NULL, NULL); - #else - colorSpace = GfxColorSpace::parse(&obj1); - #endif -@@ -2816,7 +2816,7 @@ void PdfParser::doImage(Object *ref, Str - } - } - #if defined(POPPLER_NEW_COLOR_SPACE_API) || defined(POPPLER_NEW_ERRORAPI) -- maskColorSpace = GfxColorSpace::parse(&obj1, NULL); -+ maskColorSpace = GfxColorSpace::parse(&obj1, NULL, NULL); - #else - maskColorSpace = GfxColorSpace::parse(&obj1); - #endif -@@ -3007,7 +3007,7 @@ void PdfParser::doForm(Object *str) { - transpGroup = gTrue; - if (!obj1.dictLookup(const_cast("CS"), &obj3)->isNull()) { - #if defined(POPPLER_NEW_COLOR_SPACE_API) || defined(POPPLER_NEW_ERRORAPI) -- blendingColorSpace = GfxColorSpace::parse(&obj3, NULL); -+ blendingColorSpace = GfxColorSpace::parse(&obj3, NULL, NULL); - #else - blendingColorSpace = GfxColorSpace::parse(&obj3); - #endif diff --git a/inkscape-0.48.4-spuriouscomma.h b/inkscape-0.48.4-spuriouscomma.h deleted file mode 100644 index bc53806..0000000 --- a/inkscape-0.48.4-spuriouscomma.h +++ /dev/null @@ -1,11 +0,0 @@ ---- src/widgets/desktop-widget.h~ 2011-07-08 13:25:09.000000000 -0500 -+++ src/widgets/desktop-widget.h 2013-02-15 16:04:45.806910365 -0600 -@@ -239,7 +239,7 @@ - private: - GtkWidget *tool_toolbox; - GtkWidget *aux_toolbox; -- GtkWidget *commands_toolbox,; -+ GtkWidget *commands_toolbox; - GtkWidget *snap_toolbox; - - static void init(SPDesktopWidget *widget); diff --git a/inkscape-0.48.5-poppler-0.29.0.patch b/inkscape-0.48.5-poppler-0.29.0.patch deleted file mode 100644 index 88739ee..0000000 --- a/inkscape-0.48.5-poppler-0.29.0.patch +++ /dev/null @@ -1,90 +0,0 @@ ---- inkscape-0.48.5/configure.ac -+++ inkscape-0.48.5/configure.ac -@@ -593,6 +593,11 @@ if test "x$popplernewercolorspaceapi" = - AC_DEFINE(POPPLER_EVEN_NEWER_COLOR_SPACE_API, 1, [Use even newer color space API from Poppler >= 0.26.0]) - fi - -+PKG_CHECK_MODULES(POPPLER_EVEN_NEWER_NEW_COLOR_SPACE_API, poppler >= 0.29.0, popplernewernewcolorspaceapi=yes, popplernewernewcolorspaceapi=no) -+if test "x$popplernewernewcolorspaceapi" = "xyes"; then -+ AC_DEFINE(POPPLER_EVEN_NEWER_NEW_COLOR_SPACE_API, 1, [Use even newer new color space API from Poppler >= 0.29.0]) -+fi -+ - # Poppler's b604a008 commit changes this - AC_MSG_CHECKING([whether Poppler's GfxPatch no longer uses GfxColor]) - popplergfxcolor="no" ---- inkscape-0.48.5/src/extension/internal/pdfinput/pdf-parser.cpp -+++ inkscape-0.48.5/src/extension/internal/pdfinput/pdf-parser.cpp -@@ -860,7 +860,9 @@ void PdfParser::opSetExtGState(Object ar - blendingColorSpace = NULL; - isolated = knockout = gFalse; - if (!obj4.dictLookup(const_cast("CS"), &obj5)->isNull()) { --#if defined(POPPLER_EVEN_NEWER_COLOR_SPACE_API) -+#if defined(POPPLER_EVEN_NEWER_NEW_COLOR_SPACE_API) -+ blendingColorSpace = GfxColorSpace::parse(NULL, &obj5, NULL, NULL); -+#elif defined(POPPLER_EVEN_NEWER_COLOR_SPACE_API) - blendingColorSpace = GfxColorSpace::parse(&obj5, NULL, NULL); - #elif defined(POPPLER_NEW_COLOR_SPACE_API) || defined(POPPLER_NEW_ERRORAPI) - blendingColorSpace = GfxColorSpace::parse(&obj5, NULL); -@@ -1085,7 +1087,13 @@ void PdfParser::opSetFillColorSpace(Obje - - state->setFillPattern(NULL); - res->lookupColorSpace(args[0].getName(), &obj); --#if defined(POPPLER_EVEN_NEWER_COLOR_SPACE_API) -+#if defined(POPPLER_EVEN_NEWER_NEW_COLOR_SPACE_API) -+ if (obj.isNull()) { -+ colorSpace = GfxColorSpace::parse(NULL, &args[0], NULL, NULL); -+ } else { -+ colorSpace = GfxColorSpace::parse(NULL, &obj, NULL, NULL); -+ } -+#elif defined(POPPLER_EVEN_NEWER_COLOR_SPACE_API) - if (obj.isNull()) { - colorSpace = GfxColorSpace::parse(&args[0], NULL, NULL); - } else { -@@ -1126,7 +1134,13 @@ void PdfParser::opSetStrokeColorSpace(Ob - - state->setStrokePattern(NULL); - res->lookupColorSpace(args[0].getName(), &obj); --#if defined(POPPLER_EVEN_NEWER_COLOR_SPACE_API) -+#if defined(POPPLER_EVEN_NEWER_NEW_COLOR_SPACE_API) -+ if (obj.isNull()) { -+ colorSpace = GfxColorSpace::parse(NULL, &args[0], NULL, NULL); -+ } else { -+ colorSpace = GfxColorSpace::parse(NULL, &obj, NULL, NULL); -+ } -+#elif defined(POPPLER_EVEN_NEWER_COLOR_SPACE_API) - if (obj.isNull()) { - colorSpace = GfxColorSpace::parse(&args[0], NULL, NULL); - } else { -@@ -2756,7 +2770,9 @@ void PdfParser::doImage(Object *ref, Str - } - } - if (!obj1.isNull()) { --#if defined(POPPLER_EVEN_NEWER_COLOR_SPACE_API) -+#if defined(POPPLER_EVEN_NEWER_NEW_COLOR_SPACE_API) -+ colorSpace = GfxColorSpace::parse(NULL, &obj1, NULL, NULL); -+#elif defined(POPPLER_EVEN_NEWER_COLOR_SPACE_API) - colorSpace = GfxColorSpace::parse(&obj1, NULL, NULL); - #elif defined(POPPLER_NEW_COLOR_SPACE_API) || defined(POPPLER_NEW_ERRORAPI) - colorSpace = GfxColorSpace::parse(&obj1, NULL); -@@ -2847,7 +2863,9 @@ void PdfParser::doImage(Object *ref, Str - obj2.free(); - } - } --#if defined(POPPLER_EVEN_NEWER_COLOR_SPACE_API) -+#if defined(POPPLER_EVEN_NEWER_NEW_COLOR_SPACE_API) -+ GfxColorSpace *maskColorSpace = GfxColorSpace::parse(NULL, &obj1, NULL, NULL); -+#elif defined(POPPLER_EVEN_NEWER_COLOR_SPACE_API) - GfxColorSpace *maskColorSpace = GfxColorSpace::parse(&obj1, NULL, NULL); - #elif defined(POPPLER_NEW_COLOR_SPACE_API) || defined(POPPLER_NEW_ERRORAPI) - maskColorSpace = GfxColorSpace::parse(&obj1, NULL); -@@ -3040,7 +3058,9 @@ void PdfParser::doForm(Object *str) { - if (obj1.dictLookup(const_cast("S"), &obj2)->isName(const_cast("Transparency"))) { - transpGroup = gTrue; - if (!obj1.dictLookup(const_cast("CS"), &obj3)->isNull()) { --#if defined(POPPLER_EVEN_NEWER_COLOR_SPACE_API) -+#if defined(POPPLER_EVEN_NEWER_NEW_COLOR_SPACE_API) -+ blendingColorSpace = GfxColorSpace::parse(NULL, &obj3, NULL, NULL); -+#elif defined(POPPLER_EVEN_NEWER_COLOR_SPACE_API) - blendingColorSpace = GfxColorSpace::parse(&obj3, NULL, NULL); - #elif defined(POPPLER_NEW_COLOR_SPACE_API) || defined(POPPLER_NEW_ERRORAPI) - blendingColorSpace = GfxColorSpace::parse(&obj3, NULL); diff --git a/inkscape.spec b/inkscape.spec index 49fd9b5..4ad8ae1 100644 --- a/inkscape.spec +++ b/inkscape.spec @@ -8,54 +8,33 @@ License: GPLv2+ URL: http://inkscape.sourceforge.net/ Source0: http://downloads.sourceforge.net/inkscape/%{name}-%{version}.tar.bz2 Patch0: inkscape-0.48.2-types.patch -#Patch4: inkscape-0.48.2-glib.patch -#Patch5: inkscape-0.48.2-png.patch -#Patch6: inkscape-0.48.2-png-write.patch -#Patch7: inkscape-0.48.2-gcc47.patch -#Patch8: inkscape-0.48.2-poppler_020.patch -#Patch9: inkscape-0.48.3.1-hugexml.patch -#Patch10: inkscape-0.48.4-spuriouscomma.h -#Patch11: inkscape-0.48.4-freetype.patch -# https://bugzilla.redhat.com/show_bug.cgi?id=1097945 -#Patch12: inkscape-0.48.4-poppler-0.26.patch -#Patch13: inkscape-0.48.4-gc-7.4.patch -#Patch14: 0001-update-to-new-libwpg.patch -#Patch15: inkscape-0.48.5-poppler-0.29.0.patch -Patch16: inkscape-0.91-desktop.patch - -%if 0%{?fedora} && 0%{?fedora} < 18 -%define desktop_vendor fedora -%endif +Patch1: inkscape-0.91-desktop.patch +BuildRequires: aspell-devel BuildRequires: atk-devel +BuildRequires: boost-devel +BuildRequires: cairo-devel +BuildRequires: dos2unix BuildRequires: desktop-file-utils BuildRequires: freetype-devel BuildRequires: gc-devel >= 6.4 BuildRequires: gettext +BuildRequires: gsl-devel BuildRequires: gtkmm24-devel >= 2.8.0 BuildRequires: gtkspell-devel BuildRequires: gnome-vfs2-devel >= 2.0 +BuildRequires: ImageMagick-c++-devel +BuildRequires: intltool +BuildRequires: lcms2-devel BuildRequires: libpng-devel >= 1.2 +BuildRequires: libwpg-devel BuildRequires: libxml2-devel >= 2.6.11 BuildRequires: libxslt-devel >= 1.0.15 BuildRequires: pango-devel BuildRequires: pkgconfig -BuildRequires: lcms2-devel -BuildRequires: cairo-devel -BuildRequires: dos2unix BuildRequires: python-devel BuildRequires: poppler-glib-devel -BuildRequires: boost-devel -BuildRequires: gsl-devel -BuildRequires: libwpg-devel -BuildRequires: ImageMagick-c++-devel -BuildRequires: perl(XML::Parser) -BuildRequires: perl(ExtUtils::Embed) -BuildRequires: intltool BuildRequires: popt-devel -# We detect new poppler in inkscape-0.48.2-poppler_020.patch -BuildRequires: automake -BuildRequires: aspell-devel # Disable all for now. TODO: Be smarter %if 0 @@ -69,34 +48,11 @@ Requires: transfig Requires: gimp Requires: numpy Requires: python-lxml -# TODO: Deal with these (autoreqs, disabled now): -# perl(Cwd) -# perl(Exporter) -# perl(File::Basename) -# perl(Getopt::Long) -# perl(Getopt::Std) -# perl(MIME::Base64) -# perl(Pod::Usage) -# perl(SVG) -# perl(SVG::Parser) -# perl(XML::XQL) -# perl(XML::XQL::DOM) -# perl(strict) -# perl(vars) -# perl(warnings) %endif Requires: python-lxml Requires: numpy Requires: uniconvertor -# the package requires libperl.so, so it also has to require this: -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) - -# Filter out perl requires and provides -# XXX: For now _all_ -%global __perl_provides %{nil} -%global __perl_requires %{nil} - %description Inkscape is a vector graphics editor, with capabilities similar to Illustrator, CorelDraw, or Xara X, using the W3C standard Scalable Vector @@ -112,8 +68,6 @@ trace bitmaps and much more. %package view Summary: Viewing program for SVG files Group: Applications/Productivity -# the package requires libperl.so, so it also has to require this: -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description view Viewer for files in W3C standard Scalable Vector Graphics (SVG) file @@ -133,19 +87,7 @@ graphics in W3C standard Scalable Vector Graphics (SVG) file format. %prep %setup -q %patch0 -p1 -b .types -#%patch4 -p1 -b .glib -#%patch5 -p0 -b .png -#%patch6 -p0 -b .png-write -#%patch7 -p0 -b .gcc47 -#%patch8 -p1 -b .poppler_020 -#%patch9 -p0 -b .hugexml -#%patch10 -p0 -b .spuriouscomma -#%patch11 -p0 -b .freetype -#%patch12 -p1 -b .poppler -#%patch13 -p1 -b .gc -#%patch14 -p1 -b .libwpg -#%patch15 -p1 -b .poppler-0.29.0 -%patch16 -p1 -b .desktop +%patch1 -p1 -b .desktop # https://bugs.launchpad.net/inkscape/+bug/314381 # A couple of files have executable bits set, @@ -157,9 +99,6 @@ find share/extensions -name '*.py' | xargs chmod -x # Fix end of line encodings dos2unix -k -q share/extensions/*.py -#autoreconf -if - - %build %configure \ --with-python \ @@ -169,11 +108,10 @@ dos2unix -k -q share/extensions/*.py --enable-lcms2 \ --enable-poppler-cairo -make %{?_smp_mflags} +make %{?_smp_mflags} V=1 %install -rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT desktop-file-install --vendor="%{?desktop_vendor}" --delete-original \ @@ -191,9 +129,6 @@ rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/extensions/sk2svg.sh make -k check || : -%clean -rm -rf $RPM_BUILD_ROOT - %post /bin/touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : @@ -210,13 +145,17 @@ fi %files -f %{name}.lang -%defattr(-,root,root,-) +%{!?_licensedir:%global license %%doc} +%license COPYING +%doc AUTHORS NEWS README %{_bindir}/inkscape %dir %{_datadir}/inkscape %{_datadir}/inkscape/attributes %{_datadir}/inkscape/branding #%{_datadir}/inkscape/clipart %{_datadir}/inkscape/extensions +# Pulls in perl, if needed should go into a -perl subpackage +%exclude %{_datadir}/inkscape/extensions/embed_raster_in_svg.pl %{_datadir}/inkscape/filters %{_datadir}/inkscape/fonts %{_datadir}/inkscape/gradients @@ -234,24 +173,29 @@ fi %{_mandir}/*/*gz %{_mandir}/*/*/*gz %exclude %{_mandir}/man1/inkview.1* -%doc AUTHORS COPYING ChangeLog NEWS README %{_datadir}/inkscape/tutorials %files view -%defattr(-,root,root,-) +%{!?_licensedir:%global license %%doc} +%license COPYING +%doc AUTHORS NEWS README %{_bindir}/inkview %{_mandir}/man1/inkview.1* -%doc AUTHORS COPYING ChangeLog NEWS README %files docs -%defattr(-,root,root,-) %dir %{_datadir}/inkscape %{_datadir}/inkscape/examples %changelog +* Thu Feb 12 2015 Peter Robinson 0.91-4 +- Cleanup spec +- Use %%license +- Drop (now unneeded) perl requirements (rhbz#579390) +- Drop ChangeLog as details are covered in NEWS + * Wed Feb 04 2015 Petr Machata - 0.91-3 - Bump for rebuild.