aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/inkscape.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/inkscape.rb')
-rw-r--r--Library/Formula/inkscape.rb92
1 files changed, 0 insertions, 92 deletions
diff --git a/Library/Formula/inkscape.rb b/Library/Formula/inkscape.rb
deleted file mode 100644
index 199d1ebe9..000000000
--- a/Library/Formula/inkscape.rb
+++ /dev/null
@@ -1,92 +0,0 @@
-class Inkscape < Formula
- homepage 'http://inkscape.org/'
- url 'https://downloads.sourceforge.net/project/inkscape/inkscape/0.48.5/inkscape-0.48.5.tar.gz'
- sha1 'e14789da0f6b5b84ef26f6759e295bc4be7bd34d'
- revision 1
-
- bottle do
- sha1 "5d5fa915ff5cb8a245c7e8e2295cda07149c311d" => :yosemite
- sha1 "6687b6ee83263d4c64e06a8e4432d3be77d95be9" => :mavericks
- sha1 "63052a052b408edf1755ff78cc00fdb6ffc058b2" => :mountain_lion
- end
-
- stable do
- # boost 1.56 compatibility
- # https://bugs.launchpad.net/inkscape/+bug/1357411
- patch :p0, :DATA
-
- # poppler 0.29 compatibility
- # https://bugs.launchpad.net/inkscape/+bug/1399811
- patch :p0 do
- url "https://launchpadlibrarian.net/192286866/1399811-fix-build-with-poppler-0.29.0-048x-v1.diff"
- sha1 "82ad02357a2405c11f29f2e516b1a7f55953e807"
- end
- end
-
- head do
- url 'lp:inkscape/0.48.x', :using => :bzr
- end
-
- # needed on stable for poppler patch
- depends_on "autoconf" => :build
- depends_on "automake" => :build
-
- 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' => :optional
- depends_on 'hicolor-icon-theme'
-
- needs :cxx11
-
- fails_with :clang do
- cause "inkscape's dependencies will be built with libstdc++ and fail to link."
- end if MacOS.version < :mavericks
-
- def install
- ENV.cxx11
-
- if build.head?
- system "./autogen.sh"
- elsif build.with? "poppler"
- system "autoconf"
- system "autoheader"
- end
-
- args = [ "--disable-dependency-tracking",
- "--prefix=#{prefix}",
- "--enable-lcms" ]
- args << "--disable-poppler-cairo" if build.without? "poppler"
- system "./configure", *args
-
- system "make", "install"
- end
-
- test do
- system "#{bin}/inkscape", "-V"
- end
-end
-__END__
-=== modified file 'src/object-snapper.cpp'
---- src/object-snapper.cpp 2010-07-19 06:51:04 +0000
-+++ src/object-snapper.cpp 2014-08-15 15:43:28 +0000
-@@ -561,7 +561,7 @@
- // When it's within snapping range, then return it
- // (within snapping range == between p_min_on_cl and p_max_on_cl == 0 < ta < 1)
- Geom::Coord dist = Geom::L2(_snapmanager->getDesktop()->dt2doc(p_proj_on_cl) - p_inters);
-- SnappedPoint s(_snapmanager->getDesktop()->doc2dt(p_inters), p.getSourceType(), p.getSourceNum(), k->target_type, dist, getSnapperTolerance(), getSnapperAlwaysSnap(), true, k->target_bbox);
-+ SnappedPoint s(_snapmanager->getDesktop()->doc2dt(p_inters), p.getSourceType(), p.getSourceNum(), k->target_type, dist, getSnapperTolerance(), getSnapperAlwaysSnap(), true, false, k->target_bbox);
- sc.points.push_back(s);
- }
- }