95884bae22
Closes Homebrew/homebrew#42407. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
26 lines
744 B
Ruby
26 lines
744 B
Ruby
class Cf < Formula
|
|
desc "Filter to replace numeric timestamps with a formated date time"
|
|
homepage "http://ee.lbl.gov"
|
|
url "ftp://ee.lbl.gov/cf-1.2.5.tar.gz"
|
|
sha256 "ef65e9eb57c56456dfd897fec12da8617c775e986c23c0b9cbfab173b34e5509"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha1 "524e3b5a4a669e4f479eac18fba9bb1876dd12ae" => :yosemite
|
|
sha1 "991944ac26d1e11fe4592b6006a7fd247b5df4ce" => :mavericks
|
|
sha1 "16f6118785e9110d2bf1fc187285965f7797389d" => :mountain_lion
|
|
end
|
|
|
|
def install
|
|
system "./configure", "--prefix=#{prefix}"
|
|
system "make"
|
|
bin.mkpath
|
|
man1.mkpath
|
|
system "make", "install"
|
|
system "make", "install-man"
|
|
end
|
|
|
|
test do
|
|
assert_match /Jan 20 00:35:44/, `echo 1074558944 | #{bin}/cf -u`
|
|
end
|
|
end
|