2012-06-23 19:39:44 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Inkscape < Formula
|
|
|
|
homepage 'http://inkscape.org/'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/inkscape/inkscape/0.48.4/inkscape-0.48.4.tar.gz'
|
2012-06-23 19:39:44 +00:00
|
|
|
sha1 'ce453cc9aff56c81d3b716020cd8cc7fa1531da0'
|
|
|
|
|
2013-11-08 00:39:45 +00:00
|
|
|
head do
|
|
|
|
url 'lp:inkscape/0.48.x', :using => :bzr
|
|
|
|
|
2014-04-05 00:38:29 +00:00
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
2013-11-08 00:39:45 +00:00
|
|
|
end
|
|
|
|
|
2012-06-23 19:39:44 +00:00
|
|
|
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
|
2013-06-26 02:24:36 +00:00
|
|
|
depends_on 'poppler' => :optional
|
2013-09-04 09:31:07 +00:00
|
|
|
depends_on 'hicolor-icon-theme'
|
2012-06-23 19:39:44 +00:00
|
|
|
|
2013-11-08 00:39:45 +00:00
|
|
|
fails_with :clang unless build.head?
|
2012-06-23 19:39:44 +00:00
|
|
|
|
|
|
|
def install
|
2013-11-08 00:39:45 +00:00
|
|
|
if build.head?
|
|
|
|
system "./autogen.sh"
|
|
|
|
ENV.cxx11
|
|
|
|
end
|
|
|
|
|
2013-05-02 21:17:08 +00:00
|
|
|
args = [ "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--enable-lcms" ]
|
2014-03-06 20:40:26 +00:00
|
|
|
args << "--disable-poppler-cairo" if build.without? "poppler"
|
2013-05-02 21:17:08 +00:00
|
|
|
system "./configure", *args
|
|
|
|
|
2012-06-23 19:39:44 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2012-06-23 19:39:44 +00:00
|
|
|
system "#{bin}/inkscape", "-V"
|
|
|
|
end
|
|
|
|
end
|