Skip to content

Commit

Permalink
librsvg: add libgsf option
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#20855.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information
whoisjake authored and adamv committed Jun 30, 2013
1 parent f0243db commit 5b44cf0
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions Formula/librsvg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,24 @@ class Librsvg < Formula
url 'http://ftp.gnome.org/pub/GNOME/sources/librsvg/2.36/librsvg-2.36.3.tar.xz'
sha256 '3d7d583271030e21acacc60cb6b81ee305713c9da5e98429cbd609312aea3632'

depends_on :x11
depends_on 'pkg-config' => :build
depends_on 'xz' => :build
depends_on 'gtk+'
depends_on 'libcroco'
depends_on :x11
depends_on 'libgsf' => :optional

def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--disable-Bsymbolic",
"--enable-tools=yes",
"--enable-pixbuf-loader=yes",
"--enable-introspection=no"
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
system "make install"
end
end

0 comments on commit 5b44cf0

Please sign in to comment.