Ticket #43328: patch-librsvg-2.40.2+viewer.diff
File patch-librsvg-2.40.2+viewer.diff, 4.1 KB (added by dbevans (David B. Evans), 11 years ago) |
---|
-
Portfile
5 5 PortGroup archcheck 1.0 6 6 7 7 name librsvg 8 version 2.40. 18 version 2.40.2 9 9 license {GPL-2+ LGPL-2+} 10 10 set branch [join [lrange [split ${version} .] 0 1] .] 11 11 categories graphics gnome … … 19 19 master_sites gnome:sources/${name}/${branch}/ 20 20 use_xz yes 21 21 22 checksums rmd160 6e0212214c7acc6d570d1dbb196bde3678e84525\23 sha256 8813b4fe776d5e7acbce28bacbaed30ccb0cec3734eb3632c711a16ebe2961d722 checksums rmd160 06350bcebfa20965afcd15e1ced92e689277e9f9 \ 23 sha256 48049b643294636df7de1a4b997414d699666f5dc44776945c218a257d2a291c 24 24 25 depends_build port:pkgconfig 25 depends_build port:pkgconfig \ 26 port:gtk-doc 26 27 27 28 depends_lib path:lib/pkgconfig/glib-2.0.pc:glib2 \ 28 29 path:lib/pkgconfig/cairo.pc:cairo \ … … 30 31 port:libcroco \ 31 32 port:libxml2 \ 32 33 port:gdk-pixbuf2 \ 33 port:gtk3 \34 34 port:vala 35 35 36 36 … … 43 43 lib/libpangocairo-1.0.dylib \ 44 44 lib/libxml2.dylib 45 45 46 patchfiles patch-replace-canonicalize-file-name.diff47 48 46 configure.args --enable-introspection=yes \ 49 47 --enable-vala=yes \ 50 48 --disable-Bsymbolic … … 72 70 close $fp 73 71 } 74 72 73 variant viewer description "Enable the build of the rsvg-viewer-3 utility." { 74 depends_lib-append port:gtk3 75 } 76 77 default_variants +viewer 78 79 if {![variant_isset viewer]} { 80 patchfiles patch-disable-viewer.diff 81 82 use_autoreconf yes 83 autoreconf.args -fvi 84 } 85 75 86 post-destroot { 76 87 set python.branch ${pyversion} 77 88 set python.bin ${frameworks_dir}/Python.framework/Versions/${python.branch}/bin/python${python.branch} -
files/patch-disable-viewer.diff
1 --- Makefile.am.orig 2014-04-12 10:51:16.000000000 -0700 2 +++ Makefile.am 2014-04-12 10:52:04.000000000 -0700 3 @@ -8,9 +8,9 @@ 4 lib_LTLIBRARIES = librsvg-@RSVG_API_MAJOR_VERSION@.la 5 6 bin_PROGRAMS = rsvg-convert 7 -if HAVE_GTK_3 8 -bin_PROGRAMS += rsvg-view-3 9 -endif 10 +#if HAVE_GTK_3 11 +#bin_PROGRAMS += rsvg-view-3 12 +#endif 13 14 headers = \ 15 rsvg.h \ -
files/patch-replace-canonicalize-file-name.diff
1 From 02cb19835cb52bd84b0b5eaca1b4d6338417d261 Mon Sep 17 00:00:00 20012 From: Antoine Jacoutot <ajacoutot@gnome.org>3 Date: Tue, 15 Oct 2013 07:36:30 +00004 Subject: portability: canonicalize_file_name -> realpath5 6 canonicalize_file_name() is a GNU extension so let's use the portable7 realpath() instead.8 9 https://bugzilla.gnome.org/show_bug.cgi?id=71016310 ---11 diff --git a/rsvg-base.c b/rsvg-base.c12 index cb9f64a..fb829e7 10064413 --- rsvg-base.c14 +++ rsvg-base.c15 @@ -50,6 +50,8 @@16 #include <math.h>17 #include <string.h>18 #include <stdarg.h>19 +#include <limits.h>20 +#include <stdlib.h>21 22 #include "rsvg-path.h"23 #include "rsvg-paint-server.h"24 @@ -2190,8 +2192,7 @@ _rsvg_handle_allow_load (RsvgHandle *handle,25 dir = g_file_get_path (base);26 g_object_unref (base);27 28 - /* FIXME portability */29 - cdir = canonicalize_file_name (dir);30 + cdir = realpath (dir, NULL);31 g_free (dir);32 if (cdir == NULL)33 goto deny;34 @@ -2200,8 +2201,7 @@ _rsvg_handle_allow_load (RsvgHandle *handle,35 if (path == NULL)36 goto deny;37 38 - /* FIXME portability */39 - cpath = canonicalize_file_name (path);40 + cpath = realpath (path, NULL);41 g_free (path);42 43 if (cpath == NULL)44 --45 cgit v0.9.2