2013-07-31 21:18:42 +00:00
|
|
|
class Cattle < Formula
|
2015-02-06 03:36:54 +00:00
|
|
|
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"
|
2013-07-31 21:18:42 +00:00
|
|
|
|
2015-03-29 01:46:55 +00:00
|
|
|
bottle do
|
|
|
|
sha256 "b646d326fa499931ae7ef731fa6fce4232239fce1d7f5b217b109ceafd784153" => :yosemite
|
|
|
|
sha256 "4778f55a4ac08e5bf3f9402a37a5c6d97747ee16425325fa3a7fcda69034429d" => :mavericks
|
|
|
|
sha256 "798aa25810d5dbfa2526cf0edf9117798b311c6ae6ce42b3a05c0bc90d087125" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2015-02-06 03:36:54 +00:00
|
|
|
# https://github.com/andreabolognani/cattle/issues/2
|
|
|
|
patch do
|
|
|
|
url "https://github.com/andreabolognani/cattle/pull/3.diff"
|
|
|
|
sha256 "876802fd965050d95e9cd7836b71a3cac5cd2508bf7f45b17192803a6fe19c17"
|
|
|
|
end
|
2013-07-31 21:18:42 +00:00
|
|
|
|
2015-02-06 03:36:54 +00:00
|
|
|
depends_on "gtk-doc" => :build
|
|
|
|
depends_on "pkg-config" => :build
|
2014-05-23 21:17:35 +00:00
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
2015-02-06 03:36:54 +00:00
|
|
|
depends_on "glib"
|
|
|
|
depends_on "gobject-introspection"
|
2013-07-31 21:18:42 +00:00
|
|
|
|
|
|
|
def install
|
2015-02-06 03:36:54 +00:00
|
|
|
inreplace "autogen.sh", "libtoolize", "glibtoolize"
|
2013-07-31 21:18:42 +00:00
|
|
|
|
2015-02-06 03:36:54 +00:00
|
|
|
system "sh", "autogen.sh"
|
2013-07-31 21:18:42 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
2015-02-06 03:36:54 +00:00
|
|
|
"--disable-silent-rules",
|
2013-07-31 21:18:42 +00:00
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
end
|