64ab040f0d
As in the discussion [1] that theme is recommended to avoid a warning if incskape. [1]: https://github.com/mxcl/homebrew/pull/12989#issuecomment-23731355
40 lines
976 B
Ruby
40 lines
976 B
Ruby
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'
|
|
|
|
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'
|
|
|
|
fails_with :clang
|
|
|
|
def install
|
|
args = [ "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}",
|
|
"--enable-lcms" ]
|
|
args << "--disable-poppler-cairo" unless build.with? "poppler"
|
|
system "./configure", *args
|
|
|
|
system "make install"
|
|
end
|
|
|
|
def test
|
|
system "#{bin}/inkscape", "-V"
|
|
end
|
|
end
|