diff options
| author | Colin Dean | 2013-08-28 14:24:30 -0400 | 
|---|---|---|
| committer | Xiyue Deng | 2013-09-06 19:10:52 -0700 | 
| commit | 2f157999ec6e190c14baa5614001cb6fb26686d8 (patch) | |
| tree | 619a2e4b99719d3837bf185e279702ba227d4153 /Library/Formula/glib-networking.rb | |
| parent | e8188c55d047f13aab80705191319db0c6d40b34 (diff) | |
| download | homebrew-2f157999ec6e190c14baa5614001cb6fb26686d8.tar.bz2 | |
glib-networking: enables CA cert checking
This modification is necessary to provide a version of
glib-networking that will check CA certificates.
This is necessary to make the Ruby gem 'rabbiter' work.
Closes #22180.
Signed-off-by: Xiyue Deng <manphiz@gmail.com>
Diffstat (limited to 'Library/Formula/glib-networking.rb')
| -rw-r--r-- | Library/Formula/glib-networking.rb | 10 | 
1 files changed, 9 insertions, 1 deletions
| diff --git a/Library/Formula/glib-networking.rb b/Library/Formula/glib-networking.rb index 047f34e6f..5d9573c86 100644 --- a/Library/Formula/glib-networking.rb +++ b/Library/Formula/glib-networking.rb @@ -12,10 +12,18 @@ class GlibNetworking < Formula    depends_on 'glib'    depends_on 'gnutls'    depends_on 'gsettings-desktop-schemas' +  depends_on 'curl-ca-bundle' => :optional    def install +    if build.with? "curl-ca-bundle" +      curl_ca_bundle = Formula.factory('curl-ca-bundle').opt_prefix +      certs_options = "--with-ca-certificates=#{curl_ca_bundle}/share/ca-bundle.crt" +    else +      certs_options = "--without-ca-certificates" +    end +      system "./configure", "--disable-dependency-tracking", -                          "--without-ca-certificates", +                          certs_options,                            "--prefix=#{prefix}"      system "make install"    end | 
