class Bbcolors < Formula
  homepage "http://daringfireball.net/projects/bbcolors/"
  url "http://daringfireball.net/projects/downloads/bbcolors_1.0.1.zip"
  sha256 "6ea07b365af1eb5f7fb9e68e4648eec24a1ee32157eb8c4a51370597308ba085"

  bottle do
    cellar :any
    sha256 "506d7f82fa38e1f694550be30a29554b8ecc8b303d47e9bb4fcadfc534ac55c7" => :yosemite
    sha256 "68b63b5913be9e20b8ebc726c5272e030f7572aeb6baab709a70725f632c69b1" => :mavericks
    sha256 "11e30dcfb7923267a89c670b8e919b6b6f38724f5c467e3b5f62ceb2b20d3799" => :mountain_lion
  end

  def install
    bin.install "bbcolors"
  end

  test do
    (testpath/"Library/Application Support/BBColors").mkpath
    system "#{bin}/bbcolors", "-list"
  end
end
