diff options
| author | Adam Vandenberg | 2014-03-01 14:04:33 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2014-03-01 14:04:33 -0800 |
| commit | 076a69edf486c61cb38c4c2b68d147d10a4d7eb4 (patch) | |
| tree | 80b36b44a2e853f7f83f0c0713c107472f8a5ee5 /Library | |
| parent | 6ee580e4d1c18775c9822759a52e5eaea62aabe7 (diff) | |
| download | homebrew-076a69edf486c61cb38c4c2b68d147d10a4d7eb4.tar.bz2 | |
libsoup: optional gobject-introspection
Closes #26844.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/libsoup.rb | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/Library/Formula/libsoup.rb b/Library/Formula/libsoup.rb index f632f2059..b863da3b7 100644 --- a/Library/Formula/libsoup.rb +++ b/Library/Formula/libsoup.rb @@ -8,16 +8,28 @@ class Libsoup < Formula depends_on 'xz' => :build depends_on 'pkg-config' => :build depends_on 'intltool' => :build - depends_on 'glib-networking' # Required at runtime for TLS support - depends_on 'gnutls' # Also required for TLS - depends_on 'sqlite' # For SoupCookieJarSqlite + depends_on 'glib-networking' + depends_on 'gnutls' + depends_on 'sqlite' + depends_on 'gobject-introspection' => :optional def install - system "./configure", "--disable-debug", - "--disable-dependency-tracking", - "--prefix=#{prefix}", - "--without-gnome", - "--disable-tls-check" + args = [ + "--disable-debug", + "--disable-dependency-tracking", + "--disable-silent-rules", + "--prefix=#{prefix}", + "--without-gnome", + "--disable-tls-check" + ] + + if build.with? "gobject-introspection" + args << "--enable-introspection" + else + args << "--disable-introspection" + end + + system "./configure", *args system "make install" end end |
