homebrew-core/Formula/glib-networking.rb
Colin Dean d3364af3af 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 Homebrew/homebrew#22180.

Signed-off-by: Xiyue Deng <manphiz@gmail.com>
2013-09-06 19:10:52 -07:00

30 lines
978 B
Ruby

require 'formula'
class GlibNetworking < Formula
homepage 'https://launchpad.net/glib-networking'
url 'http://ftp.gnome.org/pub/GNOME/sources/glib-networking/2.36/glib-networking-2.36.2.tar.xz'
sha256 '2108d55b0af3eea56ce256830bcaf1519d6337e0054ef2eff80f2c0ef0eb23f9'
depends_on 'pkg-config' => :build
depends_on 'xz' => :build
depends_on 'intltool' => :build
depends_on 'gettext'
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",
certs_options,
"--prefix=#{prefix}"
system "make install"
end
end