homebrew-core/Formula/bcpp.rb
BrewTestBot 95884bae22 Formula files style updates.
Closes Homebrew/homebrew#42407.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 14:21:42 +01:00

31 lines
895 B
Ruby

class Bcpp < Formula
desc "C(++) beautifier"
homepage "http://invisible-island.net/bcpp/"
url "ftp://invisible-island.net/bcpp/bcpp-20131209.tgz"
sha256 "4732d606c9b5857d0ea2cee2f2b54eb3b8928f547f8a0c6b89096b674c6bd7f7"
bottle do
cellar :any
sha1 "cfb51c877c07ca763570481f7aaa8266090892ee" => :yosemite
sha1 "8bb51fb15c993112d0fac70baf694f1682a69456" => :mavericks
sha1 "45b5a1f149bb2cbca9b0c24bb066c82a8e92a6d1" => :mountain_lion
end
def install
system "./configure", "--prefix=#{prefix}", "--mandir=#{man}"
system "make", "install"
etc.install "bcpp.cfg"
end
test do
(testpath/"test.txt").write <<-EOS.undent
test
test
test
test
EOS
system bin/"bcpp", "test.txt", "-fnc", "#{etc}/bcpp.cfg"
assert File.exist?("test.txt.orig")
assert File.exist?("test.txt")
end
end