2012-08-16 18:56:43 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Libsoup < Formula
|
|
|
|
homepage 'http://live.gnome.org/LibSoup'
|
2014-04-03 14:25:42 +00:00
|
|
|
url 'http://ftp.gnome.org/pub/GNOME/sources/libsoup/2.46/libsoup-2.46.0.tar.xz'
|
2014-03-28 16:11:42 +00:00
|
|
|
sha256 'fa3d5574c1a2df521242e2ca624a2b3057121798cab9f8f40525aa186a7b15a3'
|
2012-08-16 18:56:43 +00:00
|
|
|
|
2014-03-28 17:23:58 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "cf3892e012dd0c9273caeb7788c7152c7e552bf7" => :mavericks
|
|
|
|
sha1 "2adba3c1e1131bc2e75f5f2bde5c53b3dadbad6d" => :mountain_lion
|
|
|
|
sha1 "2d63bc470c1888cd71b0e09b37f61b3328ef3785" => :lion
|
|
|
|
end
|
|
|
|
|
2013-02-28 02:38:56 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2013-04-27 22:12:09 +00:00
|
|
|
depends_on 'intltool' => :build
|
2014-03-01 22:04:33 +00:00
|
|
|
depends_on 'glib-networking'
|
|
|
|
depends_on 'gnutls'
|
|
|
|
depends_on 'sqlite'
|
|
|
|
depends_on 'gobject-introspection' => :optional
|
2012-08-16 18:56:43 +00:00
|
|
|
|
|
|
|
def install
|
2014-03-01 22:04:33 +00:00
|
|
|
args = [
|
|
|
|
"--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--disable-silent-rules",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--without-gnome",
|
|
|
|
"--disable-tls-check"
|
|
|
|
]
|
|
|
|
|
|
|
|
if build.with? "gobject-introspection"
|
|
|
|
args << "--enable-introspection"
|
|
|
|
else
|
|
|
|
args << "--disable-introspection"
|
|
|
|
end
|
|
|
|
|
|
|
|
system "./configure", *args
|
2012-08-16 18:56:43 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|