glib-networking: use CA file installed by gnutls/openssl
Goodbye curl-ca-bundle.
This commit is contained in:
parent
f1fd804490
commit
f626b0bebe
1 changed files with 1 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue