Update of /cvsroot/fink/dists/10.7/stable/main/finkinfo/graphics
In directory vz-cvs-3.sog:/tmp/cvs-serv13673/10.7/main/finkinfo/graphics

Added Files:
        inkscape.info inkscape.patch 
Log Message:
add inkscape to 10.7--builds and works for me, also confirmed by former 
maintainer
 CVS: ----------------------------------------------------------------------


--- NEW FILE: inkscape.patch ---
diff -Nurd -x'*~' inkscape-0.48.2.orig/configure inkscape-0.48.2/configure
--- inkscape-0.48.2.orig/configure      2011-07-08 15:25:02.000000000 -0400
+++ inkscape-0.48.2/configure   2011-12-09 15:32:23.000000000 -0500
@@ -10840,6 +10840,8 @@
 $as_echo "yes" >&6; }
 
 fi
+INKSCAPE_CFLAGS="$INKSCAPE_CFLAGS -I/usr/X11R6/include"
+INKSCAPE_LIBS="$INKSCAPE_LIBS -L/usr/X11R6/lib -lX11"
 
 # Check for Apple Mac OS X Carbon framework
 carbon_ok=no
diff -Nurd -x'*~' inkscape-0.48.2.orig/src/Makefile.in 
inkscape-0.48.2/src/Makefile.in
--- inkscape-0.48.2.orig/src/Makefile.in        2011-07-08 15:25:02.000000000 
-0400
+++ inkscape-0.48.2/src/Makefile.in     2011-12-13 16:55:27.000000000 -0500
@@ -2438,6 +2438,9 @@
 # Add Inkview-only sources here.
 inkview_SOURCES = inkview.cpp $(win32_sources)
 INCLUDES = \
+       -I$(top_srcdir)/cxxtest \
+       -I$(srcdir)/bind/javainc \
+       -I$(srcdir)/bind/javainc/linux \
        $(PERL_CFLAGS) $(PYTHON_CFLAGS) \
        $(FREETYPE_CFLAGS)      \
        $(GNOME_PRINT_CFLAGS)   \
@@ -2451,10 +2454,7 @@
        $(POPPLER_GLIB_CFLAGS)  \
        -DPOTRACE=\"potrace\"   \
        $(INKSCAPE_CFLAGS) \
-       -I$(top_srcdir)/cxxtest \
        $(WIN32_CFLAGS) \
-       -I$(srcdir)/bind/javainc \
-       -I$(srcdir)/bind/javainc/linux \
        $(AM_CPPFLAGS)
 
 CXXTEST_TEMPLATE = $(srcdir)/cxxtest-template.tpl
diff -Nurd -x'*~' inkscape-0.48.2.orig/src/box3d.cpp 
inkscape-0.48.2/src/box3d.cpp
--- inkscape-0.48.2.orig/src/box3d.cpp  2011-07-08 14:25:09.000000000 -0400
+++ inkscape-0.48.2/src/box3d.cpp       2011-12-09 15:42:12.000000000 -0500
@@ -431,6 +431,9 @@
 static double remember_snap_threshold = 30;
 static guint remember_snap_index = 0;
 
+// constant for sizing the array of points to be considered:
+static const int MAX_POINT_COUNT = 4;
+
 static Proj::Pt3
 box3d_snap (SPBox3D *box, int id, Proj::Pt3 const &pt_proj, Proj::Pt3 const 
&start_pt) {
     double z_coord = start_pt[Proj::Z];
@@ -460,7 +463,7 @@
     Box3D::Line diag2(A, E); // diag2 is only taken into account if id equals 
-1, i.e., if we are snapping the center
 
     int num_snap_lines = (id != -1) ? 3 : 4;
-    Geom::Point snap_pts[num_snap_lines];
+    Geom::Point snap_pts[MAX_POINT_COUNT];
 
     snap_pts[0] = pl1.closest_to (pt);
     snap_pts[1] = pl2.closest_to (pt);
@@ -472,7 +475,7 @@
     gdouble const zoom = inkscape_active_desktop()->current_zoom();
 
     // determine the distances to all potential snapping points
-    double snap_dists[num_snap_lines];
+    double snap_dists[MAX_POINT_COUNT];
     for (int i = 0; i < num_snap_lines; ++i) {
         snap_dists[i] = Geom::L2 (snap_pts[i] - pt) * zoom;
     }
diff -Nurd -x'*~' inkscape-0.48.2.orig/src/graphlayout.cpp 
inkscape-0.48.2/src/graphlayout.cpp
--- inkscape-0.48.2.orig/src/graphlayout.cpp    2011-07-08 14:25:09.000000000 
-0400
+++ inkscape-0.48.2/src/graphlayout.cpp 2011-12-09 15:59:40.000000000 -0500
@@ -155,11 +155,12 @@
          ++i)
     {
         SPItem *iu=*i;
-        map<string,unsigned>::iterator i=nodelookup.find(iu->getId());
-        if(i==nodelookup.end()) {
+        map<string,unsigned>::iterator i_iter=nodelookup.find(iu->getId());
+        map<string,unsigned>::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<SPItem *> connectors;
 
diff -Nurd -x'*~' inkscape-0.48.2.orig/src/ui/widget/registered-widget.h 
inkscape-0.48.2/src/ui/widget/registered-widget.h
--- inkscape-0.48.2.orig/src/ui/widget/registered-widget.h      2011-07-08 
14:25:09.000000000 -0400
+++ inkscape-0.48.2/src/ui/widget/registered-widget.h   2011-12-09 
15:47:53.000000000 -0500
@@ -61,9 +61,6 @@
 
     bool is_updating() {if (_wr) return _wr->isUpdating(); else return false;}
 
-    // provide automatic 'upcast' for ease of use. (do it 'dynamic_cast' 
instead of 'static' because who knows what W is)
-    operator const Gtk::Widget () { return dynamic_cast<Gtk::Widget*>(this); }
-
 protected:
     RegisteredWidget() : W() { construct(); }
     template< typename A >
diff -Nurd -x'*~' inkscape-0.48.2.orig/src/widgets/desktop-widget.h 
inkscape-0.48.2/src/widgets/desktop-widget.h
--- inkscape-0.48.2.orig/src/widgets/desktop-widget.h   2011-07-08 
14:25:09.000000000 -0400
+++ inkscape-0.48.2/src/widgets/desktop-widget.h        2011-12-09 
15:52:21.000000000 -0500
@@ -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);

--- NEW FILE: inkscape.info ---
Package: inkscape
Version: 0.48.2
Revision: 1
GCC: 4.0
Maintainer: Daniel Macks <dma...@netspace.org>
Depends: <<     
        aspell-shlibs (>= 0.60.5-1002),
        atk1-shlibs (>= 1.28.0-1),
        cairo-shlibs (>= 1.8.8-3),
        cairomm1-shlibs (>= 1.8.2-3),
        default-icon-theme,
        fontconfig2-shlibs (>= 2.8.0-4),
        freetype219-shlibs (>= 2.3.12-1),
        gc-shlibs (>= 6.4-1001),
        gconf2-shlibs (>= 2.28.0-1),
        glib2-shlibs (>= 2.22.0-1),
        glibmm2.4-shlibs (>= 2.22.0-1),
        gnome-vfs2-unified-shlibs (>= 1:2.24.0-1),
        gsl-shlibs (>= 1.15-1),
        gtk+2-shlibs (>= 2.18.0-1),
        gtkmm2.4-shlibs (>= 2.18.0-1),
        gtkspell2-shlibs (>= 2.0.14-1),
        imagemagick2-shlibs,
        lcms-shlibs (>= 1.13-1),
        libgettext8-shlibs,
        libiconv,
        libpng14-shlibs,
        libsigc++2-shlibs (>= 2.0.17-1001),
        libwpd-0.8-shlibs,
        libwpg-shlibs,
        libxml2-shlibs (>= 2.7.8-1),
        libxslt-shlibs (>= 1.1.22-1),
        pango1-xft2-ft219 (>= 1.24.5-4),
        pango1-xft2-ft219-shlibs (>= 1.24.5-4),
        pangomm1.4.1-shlibs,
        poppler4-shlibs,
        poppler4-glib-shlibs,
        popt-shlibs,
        x11
<<
BuildDepends: <<
        aspell-dev (>= 0.60.5-1002),
        atk1 (>= 1.28.0-1),
        boost1.46.1.cmake,
        cairo (>= 1.8.8-3),
        cairomm1 (>= 1.8.2-3),
        fink-package-precedence,
        fontconfig2-dev (>= 2.8.0-4),
        freetype219 (>= 2.3.12-1),
        gc (>= 6.4-1001),
        gconf2-dev (>= 2.28.0-1),
        gettext-bin,
        gettext-tools,
        glib2-dev (>= 2.22.0-1),
        glibmm2.4-dev (>= 2.22.0-1),
        glitz,
        gnome-vfs2-unified-dev (>= 1:2.24.2-1),
        gsl (>= 1.15-1),
        gtk+2-dev (>= 2.18.0-1),
        gtkmm2.4-gtk-dev (>= 2.18.0-1),
        gtkspell2-dev (>= 2.0.14-1),
        imagemagick2-dev,
        intltool40,
        lcms (>= 1.13-1),
        libart2,
        libgettext8-dev,
        libiconv-dev,
        libpng14,
        libsigc++2 (>= 2.0.17-1001),
        libwpd-0.8-dev,
        libwpg-dev,
        libxml2 (>= 2.7.8-1),
        libxslt (>= 1.1.22-1),
        orbit2-dev (>= 2.14.16-1),
        pango1-xft2-ft219-dev (>= 1.24.5-4),
        pangomm1.4.1,
        pixman (>= 0.16.0-1),
        pkgconfig (>= 0.23),
        poppler4,
        poppler4-glib,
        poppler4-xpdf,
        popt,
        x11-dev
<<
Suggests: default-icon-theme
Source: mirror:sourceforge:%n/%n-%v.tar.bz2
Source-MD5: f60b98013bd1121b2cc301f3485076ba
ConfigureParams: --mandir=%p/share/man --with-xft --enable-dependency-tracking 
--with-gnome-vfs --enable-lcms 
PKG_CONFIG_PATH="%p/lib/fontconfig2/lib/pkgconfig:$PKG_CONFIG_PATH"
PatchFile: %n.patch
PatchFile-MD5: 73663860dae7e05589437f3b19e3599d
PatchScript: <<
        %{default_script}

#       # configure.ac needs token to find version in 'gcc -v' output
#       # should rewrite as AC_TRY_RUN with .c comparison of macros:
#       # __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__
#       perl -pi -e 's/gcc version/clang version/' configure
<<
CompileScript: <<
#!/bin/sh -ev

        # Lots of the source isn't compatible with clang, so we drop
        # back to legacy compiler if fink (or a new xcode suite from
        # apple?) is mapping g++ -> clang++ (cannot simply do this
        # everywhere, since may not have the legacy-name available if
        # there's no newer one and/or may not have it wrapped for fink
        # single-arch)
        if g++ -v 2>&1 | grep -q clang; then
                export CC=llvm-gcc-4.2
                export CXX=llvm-g++-4.2
        fi

        ./configure %c
        make V=1
        fink-package-precedence .
<<
InstallScript: make install DESTDIR=%d
DocFiles: AUTHORS COPYING* ChangeLog po/ChangeLog:ChangeLog.po NEWS README* 
TRANSLATORS
Description: SVG application
DescPort: <<
        Add explicit link to libX11. See:
        https://bugs.launchpad.net/inkscape/+bug/282338

        Cherry-pick clang-support patches from upstream bzr repo:
                constant array-size (box3d.cpp)
                bad type-conversion (registered-widget.h)
                stray comma (desktop-widget.h)
                reuse of "i" variable (graphlayout.cpp)
<<
DescPackaging: <<
        Formerly maintained by Michael Wybrow
        then by Todai Fink Team

        Needs the older xpdf interface to poppler. See:
        https://bugs.launchpad.net/inkscape/+bug/903919

        Could convert to use external potrace?
        Could convert to use external croco?
                See: https://bugs.launchpad.net/inkscape/+bug/648246
        Could convert to use external libgdl?
                See: https://bugs.launchpad.net/inkscape/+bug/792115

        Giving up on clang because there is too much incompatible.

        Would need some hacking to be buildable with libpng15
        https://bugs.launchpad.net/inkscape/+bug/721029
<<
Homepage: http://www.inkscape.org/
License: GPL


------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to