[117131] trunk/dports/graphics/inkscape-devel

devans at macports.org devans at macports.org
Mon Feb 17 04:22:18 PST 2014


Revision: 117131
          https://trac.macports.org/changeset/117131
Author:   devans at macports.org
Date:     2014-02-17 04:22:18 -0800 (Mon, 17 Feb 2014)
Log Message:
-----------
inkscape-devel: patch to fix build.

Modified Paths:
--------------
    trunk/dports/graphics/inkscape-devel/Portfile

Added Paths:
-----------
    trunk/dports/graphics/inkscape-devel/files/
    trunk/dports/graphics/inkscape-devel/files/patch-src-extension-internal-grid.cpp.diff

Modified: trunk/dports/graphics/inkscape-devel/Portfile
===================================================================
--- trunk/dports/graphics/inkscape-devel/Portfile	2014-02-17 11:41:06 UTC (rev 117130)
+++ trunk/dports/graphics/inkscape-devel/Portfile	2014-02-17 12:22:18 UTC (rev 117131)
@@ -56,6 +56,8 @@
     ui_msg "--->  Fetching source from bzr repository: this may take a while"
 }
 
+patchfiles      patch-src-extension-internal-grid.cpp.diff
+
 variant python26 conflicts python27 description {Configure to use Python version 2.6} {
     depends_lib-append \
         port:py26-lxml \

Added: trunk/dports/graphics/inkscape-devel/files/patch-src-extension-internal-grid.cpp.diff
===================================================================
--- trunk/dports/graphics/inkscape-devel/files/patch-src-extension-internal-grid.cpp.diff	                        (rev 0)
+++ trunk/dports/graphics/inkscape-devel/files/patch-src-extension-internal-grid.cpp.diff	2014-02-17 12:22:18 UTC (rev 117131)
@@ -0,0 +1,19 @@
+--- src/extension/internal/grid.cpp.orig	2014-02-10 15:37:45.000000000 -0800
++++ src/extension/internal/grid.cpp	2014-02-11 07:32:53.000000000 -0800
+@@ -114,11 +114,11 @@
+ 
+     gdouble scale = Inkscape::Util::Quantity::convert(1, "px", (document->doc())->getDefaultUnit());
+     bounding_area *= Geom::Scale(scale);
+-    float spacings[2] = { scale*module->get_param_float("xspacing"),
+-                          scale*module->get_param_float("yspacing") };
+-    float line_width = scale*module->get_param_float("lineWidth");
+-    float offsets[2] = { scale*module->get_param_float("xoffset"),
+-                         scale*module->get_param_float("yoffset") };
++    float spacings[2] = { static_cast<float>(scale*module->get_param_float("xspacing")),
++                          static_cast<float>(scale*module->get_param_float("yspacing"))};
++    float line_width = static_cast<float>(scale*module->get_param_float("lineWidth"));
++    float offsets[2] = { static_cast<float>(scale*module->get_param_float("xoffset")),
++                         static_cast<float>(scale*module->get_param_float("yoffset")) };
+ 
+     Glib::ustring path_data("");
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140217/0a5b4c3f/attachment.html>


More information about the macports-changes mailing list