2012-12-24 13:17:30 +00:00
|
|
|
class Clpbar < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Command-line progress bar"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://clpbar.sourceforge.net/"
|
|
|
|
url "https://downloads.sourceforge.net/project/clpbar/clpbar/bar-1.11.1/bar_1.11.1.tar.gz"
|
|
|
|
sha256 "fa0f5ec5c8400316c2f4debdc6cdcb80e186e668c2e4471df4fec7bfcd626503"
|
2012-12-24 13:17:30 +00:00
|
|
|
|
2016-02-25 23:07:39 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2016-09-26 15:28:07 +00:00
|
|
|
sha256 "769dbb64e877ab1f52a496063bbfdac32911f38e6e25b4fc70a5cfe937923f5f" => :sierra
|
2016-02-25 23:07:39 +00:00
|
|
|
sha256 "b54fa0ce24de6dda141e3fc025b67f2e0216b01a3664ec5992a98f8087881ddd" => :el_capitan
|
|
|
|
sha256 "edaa21e4d80bbf174e3c040d3c786eb48e381ca8e9477dfbafb06b4ec0bfd19f" => :yosemite
|
|
|
|
sha256 "36f1ece44bec7c54d2235fbfba5122d3a3d0430532498dc5c35601a59f9c4616" => :mavericks
|
|
|
|
end
|
|
|
|
|
2012-12-24 13:17:30 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--program-prefix='clp'"
|
2015-08-03 12:55:31 +00:00
|
|
|
system "make", "install"
|
2012-12-24 13:17:30 +00:00
|
|
|
end
|
2016-02-25 21:00:09 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
output = shell_output("dd if=/dev/zero bs=1024 count=5 | #{bin}/clpbar 2>&1")
|
|
|
|
assert_match "Copied: 5120B (5.0KB)", output
|
|
|
|
end
|
2012-12-24 13:17:30 +00:00
|
|
|
end
|