[arch-commits] Commit in inkscape/trunk (3 files)

Eric Bélanger eric at archlinux.org
Tue Jul 7 03:50:15 UTC 2009


    Date: Monday, July 6, 2009 @ 23:50:15
  Author: eric
Revision: 45110

upgpkg: inkscape 0.46-12
    libjpeg rebuild, added build patches

Added:
  inkscape/trunk/inkscape-0.46-Makefile.patch
  inkscape/trunk/inkscape-0.46-gcc44-glibc-2.10.patch
Modified:
  inkscape/trunk/PKGBUILD

--------------------------------------+
 PKGBUILD                             |   29 +--
 inkscape-0.46-Makefile.patch         |   10 +
 inkscape-0.46-gcc44-glibc-2.10.patch |  289 +++++++++++++++++++++++++++++++++
 3 files changed, 313 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-07-07 03:25:56 UTC (rev 45109)
+++ PKGBUILD	2009-07-07 03:50:15 UTC (rev 45110)
@@ -4,12 +4,12 @@
 
 pkgname=inkscape
 pkgver=0.46
-pkgrel=11
+pkgrel=12
 pkgdesc="A vector-based drawing program - svg compliant"
 url="http://inkscape.sourceforge.net/"
 arch=('i686' 'x86_64')
 license=('GPL' 'LGPL')
-depends=('gtkmm>=2.16.0' 'gc>=7.1' 'desktop-file-utils' 'libxslt>=1.1.24' 'perl>=5.10.0' 'pyxml' 'openssl>=0.9.8k' 'lcms>=1.18' 'gtkspell>=2.0.15' 'poppler-glib>=0.10.5' 'imagemagick>=6.5.0.10' 'popt' 'python>=2.6' 'gnome-vfs>=2.24.1')
+depends=('gtkmm>=2.16.0' 'gc>=7.1' 'desktop-file-utils' 'libxslt>=1.1.24' 'perl>=5.10.0' 'pyxml' 'openssl>=0.9.8k' 'lcms>=1.18' 'gtkspell>=2.0.15' 'poppler-glib>=0.10.5' 'imagemagick>=6.5.0.10' 'popt' 'python>=2.6' 'gnome-vfs>=2.24.1' 'libjpeg>=7')
 makedepends=('intltool' 'pkgconfig' 'boost')
 options=('!libtool')
 install=inkscape.install
@@ -24,19 +24,16 @@
 	inkscape-0.46-uniconv.patch
 	perl-5.10.patch
 	libpng-setjmp.patch
-	inkscape-OOT-build-fix.patch)
-md5sums=('3bae9034047379012127e52f9b138d32'
-         'c68e508b390257d5a79364ce998be95d'
-         'ab68758f0d5847ef5283a6d5bcc7c355'
-         'd4ffc1c63cebd49e974b6c3bcb1277f3'
-         'f1125806d944f6f30085852a348775a4'
-         '64606776db5d90d1032b614dd0024655'
-         '4a11011b2ca47c6deb1e8bb85612632e'
-         'fffe7ed73bdadcf0f90282d5afc4df30'
-         '0044088037f42743dcad66a7408ce8b5'
-         'da1009efea12f6512e69cc3ec8604f4f'
-         'dae4bdc3e6b6489e219cc6c0e143ae7e'
-         '569b73f9195f5b4d8522caab722fd600')
+	inkscape-OOT-build-fix.patch
+	inkscape-0.46-gcc44-glibc-2.10.patch
+	inkscape-0.46-Makefile.patch)
+md5sums=('3bae9034047379012127e52f9b138d32' 'c68e508b390257d5a79364ce998be95d'\
+         'ab68758f0d5847ef5283a6d5bcc7c355' 'd4ffc1c63cebd49e974b6c3bcb1277f3'\
+         'f1125806d944f6f30085852a348775a4' '64606776db5d90d1032b614dd0024655'\
+         '4a11011b2ca47c6deb1e8bb85612632e' 'fffe7ed73bdadcf0f90282d5afc4df30'\
+         '0044088037f42743dcad66a7408ce8b5' 'da1009efea12f6512e69cc3ec8604f4f'\
+         'dae4bdc3e6b6489e219cc6c0e143ae7e' '569b73f9195f5b4d8522caab722fd600'\
+         'b153c8183075d9ce96bd2819c29b4d7b' '7152357437de5618d08f185e3c66bb03')
 
 build() {
   cd "${srcdir}/${pkgname}-${pkgver}"
@@ -51,6 +48,7 @@
   patch -Np1 -i "${srcdir}/perl-5.10.patch" || return 1
   patch -Np1 -i "${srcdir}/libpng-setjmp.patch" || return 1
   patch -Np0 -i "${srcdir}/inkscape-OOT-build-fix.patch" || return 1
+  patch -Np0 -i "${srcdir}/inkscape-0.46-gcc44-glibc-2.10.patch" || return 1
   aclocal || return 1
   autoconf || return 1
   automake || return 1
@@ -63,6 +61,7 @@
     --with-python \
     --with-perl \
     --with-gnome-vfs || return 1
+  patch -Np0 -i "${srcdir}/inkscape-0.46-Makefile.patch" || return 1
   make || return 1
   make DESTDIR="${pkgdir}" install || return 1
 }

Added: inkscape-0.46-Makefile.patch
===================================================================
--- inkscape-0.46-Makefile.patch	                        (rev 0)
+++ inkscape-0.46-Makefile.patch	2009-07-07 03:50:15 UTC (rev 45110)
@@ -0,0 +1,10 @@
+--- share/templates/Makefile.orig	2009-07-06 23:02:33.000000000 -0400
++++ share/templates/Makefile	2009-07-06 23:02:39.000000000 -0400
+@@ -239,7 +239,6 @@
+ templatesdir = $(datadir)/inkscape/templates
+ templates_DATA = \
+ 	README \
+-	default.svg \
+ 	A4_landscape.svg \
+ 	A4.svg \
+ 	black_opaque.svg \

Added: inkscape-0.46-gcc44-glibc-2.10.patch
===================================================================
--- inkscape-0.46-gcc44-glibc-2.10.patch	                        (rev 0)
+++ inkscape-0.46-gcc44-glibc-2.10.patch	2009-07-07 03:50:15 UTC (rev 45110)
@@ -0,0 +1,289 @@
+diff -ru src/dialogs/export.cpp src/dialogs/export.cpp
+--- src/dialogs/export.cpp	2009-05-25 02:21:18.067302917 +0300
++++ src/dialogs/export.cpp	2009-05-25 02:21:17.804059091 +0300
+@@ -1041,9 +1043,7 @@
+ static gchar *
+ filename_add_extension (const gchar *filename, const gchar *extension)
+ {
+-  gchar *dot;
+-
+-  dot = strrchr (filename, '.');
++  const gchar *dot = strrchr (filename, '.');
+   if ( !dot )
+     return g_strconcat (filename, ".", extension, NULL);
+   {
+diff -ru src/document.cpp src/document.cpp
+--- src/document.cpp	2009-05-25 02:21:18.052299751 +0300
++++ src/document.cpp	2009-05-25 02:21:17.797058619 +0300
+@@ -746,7 +746,7 @@
+         }
+
+         if ( NULL != document_language ) {
+-            gchar *pos = strchr(document_language, '_');
++	    const char *pos = strchr(document_language, '_');
+             if ( NULL != pos ) {
+                 return Glib::ustring(document_language, pos - document_language);
+             }
+diff -ru src/dom/io/domstream.cpp src/dom/io/domstream.cpp
+--- src/dom/io/domstream.cpp	2009-05-25 02:21:18.011048623 +0300
++++ src/dom/io/domstream.cpp	2009-05-25 02:21:17.755301212 +0300
+@@ -34,6 +34,7 @@
+  *
+  */
+
++#include <cstdio>
+ #include <math.h>
+ #include <stdarg.h>
+
+diff -ru src/dom/io/gzipstream.cpp src/dom/io/gzipstream.cpp
+--- src/dom/io/gzipstream.cpp	2009-05-25 02:21:18.012048750 +0300
++++ src/dom/io/gzipstream.cpp	2009-05-25 02:21:17.755301212 +0300
+@@ -29,6 +29,8 @@
+
+ #include "gzipstream.h"
+
++#include <cstdio>
++
+ #include "dom/util/ziptool.h"
+
+
+diff -ru src/dom/io/socket.cpp src/dom/io/socket.cpp
+--- src/dom/io/socket.cpp	2009-05-25 02:21:18.011048623 +0300
++++ src/dom/io/socket.cpp	2009-05-25 02:21:17.754336705 +0300
+@@ -35,6 +35,7 @@
+ #include <sys/filio.h>   // needed on Solaris 8
+ #endif
+
++#include <cstdio>
+ #include "socket.h"
+ #include "dom/util/thread.h"
+
+diff -ru src/dom/io/uristream.cpp src/dom/io/uristream.cpp
+--- src/dom/io/uristream.cpp	2009-05-25 02:21:18.012048750 +0300
++++ src/dom/io/uristream.cpp	2009-05-25 02:21:17.755301212 +0300
+@@ -41,6 +41,7 @@
+
+
+ #include "uristream.h"
++#include <cstdio>
+
+
+
+diff -ru src/dom/lsimpl.cpp src/dom/lsimpl.cpp
+--- src/dom/lsimpl.cpp	2009-05-25 02:21:18.014048586 +0300
++++ src/dom/lsimpl.cpp	2009-05-25 02:21:17.760050211 +0300
+@@ -33,6 +33,7 @@
+ #include "lsimpl.h"
+
+ #include <stdarg.h>
++#include <cstdio>
+
+ namespace org
+ {
+diff -ru src/dom/svg/svgparser.cpp src/dom/svg/svgparser.cpp
+--- src/dom/svg/svgparser.cpp	2009-05-25 02:21:18.014048586 +0300
++++ src/dom/svg/svgparser.cpp	2009-05-25 02:21:17.759333709 +0300
+@@ -32,6 +32,7 @@
+ #include "dom/cssparser.h"
+ #include "dom/charclass.h"
+
++#include <cstdio>
+ #include <stdarg.h>
+
+ #define SVG_NAMESPACE "http://www.w3.org/2000/svg"
+diff -ru src/prefix.cpp src/prefix.cpp
+--- src/prefix.cpp	2009-05-25 02:21:18.037083918 +0300
++++ src/prefix.cpp	2009-05-25 02:21:17.787058605 +0300
+@@ -355,7 +355,8 @@
+ char *
+ br_extract_dir (const char *path)
+ {
+-	char *end, *result;
++	const char *end;
++	char *result;
+
+ 	br_return_val_if_fail (path != (char*)NULL, (char*)NULL);
+
+@@ -390,7 +391,8 @@
+ char *
+ br_extract_prefix (const char *path)
+ {
+-	char *end, *tmp, *result;
++	const char *end;
++	char *tmp, *result;
+
+ 	br_return_val_if_fail (path != (char*)NULL, (char*)NULL);
+
+--- src/libavoid/vertices.h.orig	2009-07-06 20:37:23.000000000 -0400
++++ src/libavoid/vertices.h	2009-07-06 20:37:46.000000000 -0400
+@@ -23,6 +23,7 @@
+ #ifndef AVOID_VERTICES_H
+ #define AVOID_VERTICES_H
+ 
++#include <cstdio>
+ #include <list>
+ #include <set>
+ #include <map>
+--- src/streams-handles.cpp~    2008-11-14 07:41:07.000000000 +0000
++++ src/streams-handles.cpp     2008-11-14 07:41:14.000000000 +0000
+@@ -12,6 +12,7 @@
+ #include "streams-handles.h"
+ #include "uri.h"
+ 
++#include <cstdio>
+ #include <iostream>
+ 
+ namespace Inkscape {
+--- src/streams-zlib.cpp~       2008-11-14 07:41:24.000000000 +0000
++++ src/streams-zlib.cpp        2008-11-14 07:41:30.000000000 +0000
+@@ -9,6 +9,7 @@
+  * Released under GNU LGPL, read the file 'COPYING.LIB' for more information
+  */
+ 
++#include <cstdio>
+ #include <cstring>
+ #include <string>
+ #include <string.h>
+--- src/dom/domimpl.cpp~        2008-11-14 07:49:10.000000000 +0000
++++ src/dom/domimpl.cpp 2008-11-14 07:49:18.000000000 +0000
+@@ -30,6 +30,8 @@
+ 
+ #include "domimpl.h"
+ 
++#include <cstdio>
++
+ namespace org
+ {
+ namespace w3c
+--- src/dom/io/domstream.h~     2008-11-14 07:51:18.000000000 +0000
++++ src/dom/io/domstream.h      2008-11-14 07:51:28.000000000 +0000
+@@ -33,6 +33,8 @@
+ 
+ #include <dom/dom.h>
+ 
++#include <cstdio>
++
+ namespace org
+ {
+ namespace w3c
+--- src/dom/xpathtoken.h~       2008-11-14 07:52:27.000000000 +0000
++++ src/dom/xpathtoken.h        2008-11-14 07:52:36.000000000 +0000
+@@ -35,6 +35,7 @@
+ 
+ #include <math.h>
+ 
++#include <cstdio>
+ #include <vector>
+ 
+ namespace org
+--- src/dom/svg/svgtypes.h~     2008-11-14 07:53:23.000000000 +0000
++++ src/dom/svg/svgtypes.h      2008-11-14 07:53:32.000000000 +0000
+@@ -47,6 +47,7 @@
+ #include "dom/smil.h"
+ 
+ 
++#include <cstdio>
+ #include <math.h>
+ 
+ 
+--- src/extension/internal/bitmap/imagemagick.cpp.gcc44	2009-01-28 22:12:57.000000000 +0100
++++ src/extension/internal/bitmap/imagemagick.cpp	2009-03-02 17:05:57.000000000 +0100
+@@ -114,7 +114,7 @@ ImageMagickDocCache::readImage(const cha
+ 	char *search = (char *) g_strndup(xlink, 30);
+ 	if (strstr(search, "base64") != (char*)NULL) {
+ 		// 7 = strlen("base64") + strlen(",")
+-		char* pureBase64 = strstr(xlink, "base64") + 7;		
++		const char* pureBase64 = strstr(xlink, "base64") + 7;		
+ 		Magick::Blob blob;
+ 		blob.base64(pureBase64);
+ 		image->read(blob);
+--- src/libnr/nr-object.cpp.gcc44	2009-03-02 17:06:46.000000000 +0100
++++ src/libnr/nr-object.cpp	2009-03-02 17:06:58.000000000 +0100
+@@ -198,8 +198,8 @@ NRObject *NRObject::alloc(NRType type)
+     );
+     memset(object, 0xf0, c->isize);
+ 
+-    object->klass = c;
+     c->cpp_ctor(object);
++    object->klass = c;
+     nr_class_tree_object_invoke_init (c, object);
+ 
+     return object;
+--- src/io/inkscapestream.h~    2008-11-14 08:02:53.000000000 +0000
++++ src/io/inkscapestream.h     2008-11-14 08:03:00.000000000 +0000
+@@ -12,6 +12,7 @@
+  */
+ 
+ 
++#include <cstdio>
+ #include <glibmm.h>
+ 
+ namespace Inkscape
+--- src/io/sys.cpp~     2008-11-14 08:04:54.000000000 +0000
++++ src/io/sys.cpp      2008-11-14 08:05:11.000000000 +0000
+@@ -22,6 +22,8 @@
+ #include <glibmm/ustring.h>
+ #include <gtk/gtkmessagedialog.h>
+ 
++#include <cstdio>
++
+ #include "prefs-utils.h"
+ #include "sys.h"
+ 
+--- src/2geom/svg-path-parser.h~        2008-11-14 08:06:45.000000000 +0000
++++ src/2geom/svg-path-parser.h 2008-11-14 08:06:51.000000000 +0000
+@@ -32,6 +32,7 @@
+ #ifndef SEEN_SVG_PATH_PARSER_H
+ #define SEEN_SVG_PATH_PARSER_H
+ 
++#include <cstdio>
+ #include <vector>
+ #include <iterator>
+ #include <stdexcept>
+--- src/libnr/nr-matrix-fns.cpp~        2008-11-14 08:16:43.000000000 +0000
++++ src/libnr/nr-matrix-fns.cpp 2008-11-14 08:16:48.000000000 +0000
+@@ -1,5 +1,7 @@
+ #include <libnr/nr-matrix-fns.h>
+ 
++#include <cstdio>
++
+ namespace NR {
+ 
+ Matrix elliptic_quadratic_form(Matrix const &m) {
+--- src/libnr/nr-matrix.cpp~    2008-11-14 08:19:20.000000000 +0000
++++ src/libnr/nr-matrix.cpp     2008-11-14 08:19:26.000000000 +0000
+@@ -11,6 +11,7 @@
+  * This code is in public domain
+  */
+ 
++#include <cstdio>
+ #include <cstdlib>
+ #include "nr-matrix.h"
+ 
+--- src/xml/event.cpp~  2008-11-14 08:27:20.000000000 +0000
++++ src/xml/event.cpp   2008-11-14 08:27:26.000000000 +0000
+@@ -14,6 +14,7 @@
+  */
+ 
+ #include <glib.h> // g_assert()
++#include <cstdio>
+ 
+ #include "event.h"
+ #include "event-fns.h"
+--- src/2geom/sbasis-math.cpp~  2008-11-14 08:29:42.000000000 +0000
++++ src/2geom/sbasis-math.cpp   2008-11-14 08:31:32.000000000 +0000
+@@ -38,11 +38,11 @@
+ //#define ZERO 1e-3
+ 
+ 
+-namespace Geom {
++#include <math.h>
++#include <cstdio>
+ 
++namespace Geom {
+ 
+-#include <stdio.h>
+-#include <math.h>
+ 
+ //-|x|-----------------------------------------------------------------------
+ Piecewise<SBasis> abs(SBasis const &f){




More information about the arch-commits mailing list