diff options
| -rw-r--r-- | Library/Formula/cattle.rb | 27 | 
1 files changed, 16 insertions, 11 deletions
| diff --git a/Library/Formula/cattle.rb b/Library/Formula/cattle.rb index 7f14047f5..23febe4e0 100644 --- a/Library/Formula/cattle.rb +++ b/Library/Formula/cattle.rb @@ -1,24 +1,29 @@ -require 'formula' -  class Cattle < Formula -  homepage 'https://github.com/andreabolognani/cattle#readme' -  url 'https://github.com/andreabolognani/cattle/archive/cattle-1.0.1.tar.gz' -  sha1 '1c60cdf8dc6b2b27bd4dfb79adea905a22e033c2' +  homepage "https://github.com/andreabolognani/cattle" +  url "https://github.com/andreabolognani/cattle/archive/cattle-1.2.0.tar.gz" +  sha256 "ff0b424011c56f61cb463f1d3fb32e58e40da41260298c407bd0748eb506468d" +  head "https://github.com/andreabolognani/cattle.git" -  depends_on 'glib' -  depends_on 'gobject-introspection' -  depends_on 'gtk-doc' => :build -  depends_on 'pkg-config' => :build +  # https://github.com/andreabolognani/cattle/issues/2 +  patch do +    url "https://github.com/andreabolognani/cattle/pull/3.diff" +    sha256 "876802fd965050d95e9cd7836b71a3cac5cd2508bf7f45b17192803a6fe19c17" +  end +  depends_on "gtk-doc" => :build +  depends_on "pkg-config" => :build    depends_on "autoconf" => :build    depends_on "automake" => :build    depends_on "libtool" => :build +  depends_on "glib" +  depends_on "gobject-introspection"    def install -    inreplace 'autogen.sh', 'libtoolize', 'glibtoolize' +    inreplace "autogen.sh", "libtoolize", "glibtoolize" -    system 'sh autogen.sh' +    system "sh", "autogen.sh"      system "./configure", "--disable-dependency-tracking", +                          "--disable-silent-rules",                            "--prefix=#{prefix}"      system "make", "install"    end | 
