glib-networking: use CA file installed by gnutls/openssl

Goodbye curl-ca-bundle.
This commit is contained in:
Jack Nagel 2014-04-14 18:51:24 -05:00
parent f1fd804490
commit f626b0bebe

View file

@ -11,20 +11,12 @@ 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["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",
"--disable-silent-rules",
"--prefix=#{prefix}",
certs_options
"--with-ca-certificates=#{etc}/openssl/cert.pem"
system "make install"
end
end