aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/glib-networking.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/glib-networking.rb')
-rw-r--r--Library/Formula/glib-networking.rb10
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