homebrew-core/Formula/ctail.rb
2017-01-08 00:19:59 -08:00

36 lines
1.1 KiB
Ruby

class Ctail < Formula
desc "Tool for operating tail across large clusters of machines"
homepage "https://github.com/pquerna/ctail"
url "https://github.com/pquerna/ctail/archive/ctail-0.1.0.tar.gz"
sha256 "864efb235a5d076167277c9f7812ad5678b477ff9a2e927549ffc19ed95fa911"
bottle do
cellar :any
rebuild 1
sha256 "829ed2ea1ac94bf32fd1817f714b87301abf2c488cf151675239d5d9bf6f6ef8" => :sierra
sha256 "80a2ae43fba99e6eb5eb4b50b52ee0e32213d521f59e147a109444439b86365d" => :el_capitan
sha256 "e23b4f67bc165d9d4549963b41b9ee89a5fa2e18040277750c4800da016a919e" => :yosemite
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "apr"
depends_on "apr-util"
conflicts_with "byobu", :because => "both install `ctail` binaries"
def install
system "./configure",
"--prefix=#{prefix}",
"--disable-debug",
"--with-apr=#{Formula["apr"].opt_bin}",
"--with-apr-util=#{Formula["apr-util"].opt_bin}"
system "make", "LIBTOOL=glibtool --tag=CC"
system "make", "install"
end
test do
system "#{bin}/ctail", "-h"
end
end