require 'formula' class Inkscape < Formula homepage 'http://inkscape.org/' url 'http://downloads.sourceforge.net/project/inkscape/inkscape/0.48.4/inkscape-0.48.4.tar.gz' sha1 'ce453cc9aff56c81d3b716020cd8cc7fa1531da0' option 'with-poppler' depends_on 'pkg-config' => :build depends_on 'intltool' => :build depends_on 'boost-build' => :build depends_on 'gettext' depends_on 'bdw-gc' depends_on 'glibmm' depends_on 'gtkmm' depends_on 'gsl' depends_on 'boost' depends_on 'popt' depends_on 'little-cms' depends_on 'cairomm' depends_on 'pango' depends_on :x11 depends_on 'poppler' if build.include? "with-poppler" fails_with :clang # Fix bad includes with gtkmm-2.24.3 # Check if this is still needed with new versions of inkscape and gtkmm def patches; DATA end def install args = [ "--disable-dependency-tracking", "--prefix=#{prefix}", "--enable-lcms" ] args << "--disable-poppler-cairo" if not build.include? "with-poppler" system "./configure", *args system "make install" # Don't link this into share! (share/"icons/hicolor/icon-theme.cache").unlink end def test system "#{bin}/inkscape", "-V" end end __END__ diff -ru inkscape-0.48.4/src/application/application.cpp inkscape-FToU/inkscape-0.48.4/src/application/application.cpp --- inkscape-0.48.4/src/application/application.cpp 2011-07-08 14:25:09.000000000 -0400 +++ inkscape-FToU/inkscape-0.48.4/src/application/application.cpp 2013-05-02 15:39:57.000000000 -0400 @@ -14,6 +14,7 @@ # include #endif +#include #include #include "preferences.h" diff -ru inkscape-0.48.4/src/color-profile.cpp inkscape-FToU/inkscape-0.48.4/src/color-profile.cpp --- inkscape-0.48.4/src/color-profile.cpp 2012-02-18 20:41:36.000000000 -0500 +++ inkscape-FToU/inkscape-0.48.4/src/color-profile.cpp 2013-05-02 13:55:48.000000000 -0400 @@ -6,6 +6,7 @@ #include #include +#include #include #include diff -ru inkscape-0.48.4/src/device-manager.cpp inkscape-FToU/inkscape-0.48.4/src/device-manager.cpp --- inkscape-0.48.4/src/device-manager.cpp 2011-07-08 14:25:09.000000000 -0400 +++ inkscape-FToU/inkscape-0.48.4/src/device-manager.cpp 2013-05-02 13:56:15.000000000 -0400 @@ -8,6 +8,7 @@ */ #include +#include #include #include #include diff -ru inkscape-0.48.4/src/dropper-context.cpp inkscape-FToU/inkscape-0.48.4/src/dropper-context.cpp --- inkscape-0.48.4/src/dropper-context.cpp 2012-12-13 12:00:46.000000000 -0500 +++ inkscape-FToU/inkscape-0.48.4/src/dropper-context.cpp 2013-05-02 13:57:05.000000000 -0400 @@ -16,6 +16,7 @@ # include #endif +#include #include #include #include diff -ru inkscape-0.48.4/src/extension/implementation/implementation.h inkscape-FToU/inkscape-0.48.4/src/extension/implementation/implementation.h --- inkscape-0.48.4/src/extension/implementation/implementation.h 2011-07-08 14:25:09.000000000 -0400 +++ inkscape-FToU/inkscape-0.48.4/src/extension/implementation/implementation.h 2013-05-02 15:48:27.000000000 -0400 @@ -12,6 +12,7 @@ #ifndef __INKSCAPE_EXTENSION_IMPLEMENTATION_H__ #define __INKSCAPE_EXTENSION_IMPLEMENTATION_H__ +#include #include #include #include diff -ru inkscape-0.48.4/src/inkview.cpp inkscape-FToU/inkscape-0.48.4/src/inkview.cpp --- inkscape-0.48.4/src/inkview.cpp 2012-02-13 22:22:17.000000000 -0500 +++ inkscape-FToU/inkscape-0.48.4/src/inkview.cpp 2013-05-02 15:52:30.000000000 -0400 @@ -48,6 +48,7 @@ #include #include +#include #include #include "gc-core.h" diff -ru inkscape-0.48.4/src/live_effects/parameter/array.h inkscape-FToU/inkscape-0.48.4/src/live_effects/parameter/array.h --- inkscape-0.48.4/src/live_effects/parameter/array.h 2012-02-13 22:22:17.000000000 -0500 +++ inkscape-FToU/inkscape-0.48.4/src/live_effects/parameter/array.h 2013-05-02 15:56:45.000000000 -0400 @@ -13,6 +13,7 @@ #include +#include #include #include "live_effects/parameter/parameter.h" diff -ru inkscape-0.48.4/src/live_effects/parameter/path.h inkscape-FToU/inkscape-0.48.4/src/live_effects/parameter/path.h --- inkscape-0.48.4/src/live_effects/parameter/path.h 2012-02-13 22:22:17.000000000 -0500 +++ inkscape-FToU/inkscape-0.48.4/src/live_effects/parameter/path.h 2013-05-02 15:55:09.000000000 -0400 @@ -12,6 +12,7 @@ #include #include <2geom/path.h> +#include #include #include "live_effects/parameter/parameter.h" diff -ru inkscape-0.48.4/src/live_effects/parameter/point.h inkscape-FToU/inkscape-0.48.4/src/live_effects/parameter/point.h --- inkscape-0.48.4/src/live_effects/parameter/point.h 2012-02-13 22:22:17.000000000 -0500 +++ inkscape-FToU/inkscape-0.48.4/src/live_effects/parameter/point.h 2013-05-02 15:56:23.000000000 -0400 @@ -12,6 +12,7 @@ #include #include <2geom/point.h> +#include #include #include "live_effects/parameter/parameter.h" diff -ru inkscape-0.48.4/src/live_effects/parameter/vector.h inkscape-FToU/inkscape-0.48.4/src/live_effects/parameter/vector.h --- inkscape-0.48.4/src/live_effects/parameter/vector.h 2012-02-13 22:22:17.000000000 -0500 +++ inkscape-FToU/inkscape-0.48.4/src/live_effects/parameter/vector.h 2013-05-02 15:55:57.000000000 -0400 @@ -12,6 +12,7 @@ #include #include <2geom/point.h> +#include #include #include "live_effects/parameter/parameter.h" diff -ru inkscape-0.48.4/src/selection-chemistry.cpp inkscape-FToU/inkscape-0.48.4/src/selection-chemistry.cpp --- inkscape-0.48.4/src/selection-chemistry.cpp 2012-02-13 22:22:17.000000000 -0500 +++ inkscape-FToU/inkscape-0.48.4/src/selection-chemistry.cpp 2013-05-02 15:22:30.000000000 -0400 @@ -26,6 +26,7 @@ SPCycleType SP_CYCLING = SP_CYCLE_FOCUS; +#include #include #include "svg/svg.h" diff -ru inkscape-0.48.4/src/text-context.cpp inkscape-FToU/inkscape-0.48.4/src/text-context.cpp --- inkscape-0.48.4/src/text-context.cpp 2011-07-08 14:25:09.000000000 -0400 +++ inkscape-FToU/inkscape-0.48.4/src/text-context.cpp 2013-05-02 15:38:35.000000000 -0400 @@ -17,6 +17,7 @@ # include #endif +#include #include #include #include diff -ru inkscape-0.48.4/src/ui/clipboard.cpp inkscape-FToU/inkscape-0.48.4/src/ui/clipboard.cpp --- inkscape-0.48.4/src/ui/clipboard.cpp 2012-02-13 22:22:17.000000000 -0500 +++ inkscape-FToU/inkscape-0.48.4/src/ui/clipboard.cpp 2013-05-02 15:58:50.000000000 -0400 @@ -23,6 +23,7 @@ #include #include +#include #include #include #include diff -ru inkscape-0.48.4/src/ui/dialog/inkscape-preferences.cpp inkscape-FToU/inkscape-0.48.4/src/ui/dialog/inkscape-preferences.cpp --- inkscape-0.48.4/src/ui/dialog/inkscape-preferences.cpp 2012-12-13 12:00:46.000000000 -0500 +++ inkscape-FToU/inkscape-0.48.4/src/ui/dialog/inkscape-preferences.cpp 2013-05-02 15:59:56.000000000 -0400 @@ -17,6 +17,7 @@ # include #endif +#include #include #include #include diff -ru inkscape-0.48.4/src/ui/dialog/memory.cpp inkscape-FToU/inkscape-0.48.4/src/ui/dialog/memory.cpp --- inkscape-0.48.4/src/ui/dialog/memory.cpp 2011-07-08 14:25:09.000000000 -0400 +++ inkscape-FToU/inkscape-0.48.4/src/ui/dialog/memory.cpp 2013-05-02 16:02:24.000000000 -0400 @@ -13,6 +13,7 @@ # include #endif +#include #include #include #include diff -ru inkscape-0.48.4/src/ui/tool/control-point.cpp inkscape-FToU/inkscape-0.48.4/src/ui/tool/control-point.cpp --- inkscape-0.48.4/src/ui/tool/control-point.cpp 2012-02-13 22:22:17.000000000 -0500 +++ inkscape-FToU/inkscape-0.48.4/src/ui/tool/control-point.cpp 2013-05-02 16:03:07.000000000 -0400 @@ -9,6 +9,7 @@ */ #include +#include #include #include #include <2geom/point.h>