2010-10-26 10:12:45 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Librsvg < Formula
|
2012-07-15 18:04:34 +00:00
|
|
|
homepage 'https://live.gnome.org/LibRsvg'
|
2012-09-05 06:07:51 +00:00
|
|
|
url 'http://ftp.gnome.org/pub/GNOME/sources/librsvg/2.36/librsvg-2.36.3.tar.xz'
|
|
|
|
sha256 '3d7d583271030e21acacc60cb6b81ee305713c9da5e98429cbd609312aea3632'
|
2010-10-26 10:12:45 +00:00
|
|
|
|
2013-06-27 16:49:07 +00:00
|
|
|
depends_on :x11
|
2012-03-08 23:54:40 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2012-07-15 18:04:34 +00:00
|
|
|
depends_on 'xz' => :build
|
2010-10-26 10:12:45 +00:00
|
|
|
depends_on 'gtk+'
|
|
|
|
depends_on 'libcroco'
|
2013-06-27 16:49:07 +00:00
|
|
|
depends_on 'libgsf' => :optional
|
2010-10-26 10:12:45 +00:00
|
|
|
|
|
|
|
def install
|
2013-06-27 16:49:07 +00:00
|
|
|
args = ["--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--disable-Bsymbolic",
|
|
|
|
"--enable-tools=yes",
|
|
|
|
"--enable-pixbuf-loader=yes",
|
|
|
|
"--enable-introspection=no"]
|
|
|
|
|
|
|
|
args << "--enable-svgz" if build.with? 'libgsf'
|
|
|
|
|
|
|
|
system "./configure", *args
|
2010-10-26 10:12:45 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|