35 lines
1.1 KiB
Ruby
35 lines
1.1 KiB
Ruby
class Multitail < Formula
|
|
desc "Tail multiple files in one terminal simultaneously"
|
|
homepage "http://vanheusden.com/multitail/"
|
|
url "http://www.vanheusden.com/multitail/multitail-6.4.1.tgz"
|
|
sha1 "9191b807f8d727810b2824a9bc8aafa17cb0d10e"
|
|
|
|
bottle do
|
|
cellar :any
|
|
revision 1
|
|
sha256 "21a9ed45a00fdbfe451007372f0f378fbc4fb240cee028aab33cb073bdf20d79" => :yosemite
|
|
sha256 "0fb95a986bd90832788140c5e6e03124fffa91cac05e2422e3d28e141a414b72" => :mavericks
|
|
sha256 "e7cec6d4f503c7332274c27613ab5f1667a2077abc604bfd09cb80849e43f90b" => :mountain_lion
|
|
end
|
|
|
|
# Upstream pull request to fix compilation issues on OS X
|
|
# https://github.com/flok99/multitail/pull/13
|
|
patch do
|
|
url "https://github.com/flok99/multitail/pull/13.diff"
|
|
sha1 "cf1c457ecfc2fbe76f60050829af30c8a6698d5c"
|
|
end
|
|
|
|
def install
|
|
system "make", "-f", "makefile.macosx", "multitail", "DESTDIR=#{HOMEBREW_PREFIX}"
|
|
|
|
bin.install "multitail"
|
|
man1.install gzip("multitail.1")
|
|
etc.install "multitail.conf"
|
|
end
|
|
|
|
test do
|
|
ENV["TERM"] = "xterm"
|
|
assert_match "multitail #{version}",
|
|
shell_output("#{bin}/multitail -h 2>&1", 1)
|
|
end
|
|
end
|