d87063d32f
These dependencies are automatically detected from the URL, so declaring them is redundant. If these formulae ever get a head or devel spec, then explicit xz deps would need to be re-scoped appropriately. Thus we should remove them.
35 lines
873 B
Ruby
35 lines
873 B
Ruby
require 'formula'
|
|
|
|
class Libsoup < Formula
|
|
homepage 'http://live.gnome.org/LibSoup'
|
|
url 'http://ftp.gnome.org/pub/GNOME/sources/libsoup/2.44/libsoup-2.44.2.tar.xz'
|
|
sha256 'e7e4b5ab74a6c00fc267c9f5963852d28759ad3154dab6388e2d6e1962d598f3'
|
|
revision 1
|
|
|
|
depends_on 'pkg-config' => :build
|
|
depends_on 'intltool' => :build
|
|
depends_on 'glib-networking'
|
|
depends_on 'gnutls'
|
|
depends_on 'sqlite'
|
|
depends_on 'gobject-introspection' => :optional
|
|
|
|
def install
|
|
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
|
|
system "make install"
|
|
end
|
|
end
|