2011-03-10 05:11:03 +00:00
|
|
|
class Bcpp < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "C(++) beautifier"
|
2015-01-14 03:30:53 +00:00
|
|
|
homepage "http://invisible-island.net/bcpp/"
|
|
|
|
url "ftp://invisible-island.net/bcpp/bcpp-20131209.tgz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "4732d606c9b5857d0ea2cee2f2b54eb3b8928f547f8a0c6b89096b674c6bd7f7"
|
2010-05-25 19:33:37 +00:00
|
|
|
|
2015-01-14 03:43:52 +00:00
|
|
|
bottle do
|
2016-02-23 14:40:37 +00:00
|
|
|
cellar :any_skip_relocation
|
|
|
|
sha256 "e9cbefdb72acc228f8e31afc7d6dabf3dcc1fac321aa88cd0834687afd15c9d1" => :el_capitan
|
2015-11-19 15:45:31 +00:00
|
|
|
sha256 "55695704fc182a79be6761a720b18c0be3f416ef2602ea0048c8f2a00422bfa9" => :yosemite
|
|
|
|
sha256 "5a8b1bf857e52ca6b30c4ef31547b23d807364075aec50a47c7ce16fdfc8b59d" => :mavericks
|
|
|
|
sha256 "5cbc5e640e0c8ebcfeee4091364855bd0f67a54663a819a9f875f648e7cb48b9" => :mountain_lion
|
2015-01-14 03:43:52 +00:00
|
|
|
end
|
|
|
|
|
2010-05-25 19:33:37 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}", "--mandir=#{man}"
|
2015-01-14 03:30:53 +00:00
|
|
|
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")
|
2010-05-25 19:33:37 +00:00
|
|
|
end
|
|
|
|
end
|