2012-08-16 18:56:43 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Libsoup < Formula
|
2015-01-26 11:45:08 +00:00
|
|
|
homepage 'https://live.gnome.org/LibSoup'
|
|
|
|
url 'http://ftp.gnome.org/pub/GNOME/sources/libsoup/2.48/libsoup-2.48.1.tar.xz'
|
|
|
|
sha256 '9b0d14b36e36a3131a06c6e3aa7245716e6904e3e636df81c0b6c8bd3f646f9a'
|
2012-08-16 18:56:43 +00:00
|
|
|
|
2014-03-28 17:23:58 +00:00
|
|
|
bottle do
|
2015-01-26 12:09:11 +00:00
|
|
|
sha1 "58bfb3f803cdb164301d33754d80cf0b12b44f4c" => :yosemite
|
|
|
|
sha1 "6701311c286723f87dc8699a150b9085f5b14431" => :mavericks
|
|
|
|
sha1 "94ad9a680bdd06cb14721217ffbe091c2f46c143" => :mountain_lion
|
2014-03-28 17:23:58 +00:00
|
|
|
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
|