homebrew-core/Formula/cf.rb

30 lines
1.1 KiB
Ruby
Raw Normal View History

class Cf < Formula
desc "Filter to replace numeric timestamps with a formated date time"
2017-03-27 13:29:58 +00:00
homepage "https://ee.lbl.gov"
url "ftp://ee.lbl.gov/cf-1.2.5.tar.gz"
sha256 "ef65e9eb57c56456dfd897fec12da8617c775e986c23c0b9cbfab173b34e5509"
2015-02-13 07:45:28 +00:00
bottle do
2016-02-23 16:55:33 +00:00
cellar :any_skip_relocation
2017-09-21 16:15:14 +00:00
sha256 "b94cceb52c7da6995ed4acd014350e6d9b1dbeb7d03b0c8f2256a12e7f520b01" => :high_sierra
2016-09-28 20:56:39 +00:00
sha256 "5f37fd5ff05bdc66d21e9006f8907f1d19c92743bdffc2a5463251f6f681bd20" => :sierra
2016-02-23 16:55:33 +00:00
sha256 "658dbcf6f4868922582db207b8713c8a9009bc99d3d976866ecfacbb9f95dfd5" => :el_capitan
2015-11-19 15:45:31 +00:00
sha256 "4b4d294a9bd632f4daa07e643f7e33e3ffcf419d4df76c6656d2c688795f0d3c" => :yosemite
sha256 "ea165ebb43cf7e6d55e34b43df6dc31bc3b8a3d5d3441cb4106630b168e8c90b" => :mavericks
sha256 "600d033a2a3c1cbfc1be26fb4185779805b4b44b3fc08b32b28c7c36c0ffdddd" => :mountain_lion
2015-02-13 07:45:28 +00:00
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