require 'formula' class Align < Formula homepage 'http://www.cs.indiana.edu/~kinzler/align/' url 'http://www.cs.indiana.edu/~kinzler/align/align-1.7.3.tgz' sha1 'fca5e53a7a3a95e740e7d12941f4edbee78ca084' bottle do cellar :any sha1 "6883eab5710385e8890fb52a8a6ac248f6bb29b7" => :mavericks sha1 "12b51ccae39d06623f7475e289fd6eb6dbb89d7f" => :mountain_lion sha1 "58e739c1df5c04ef37303c822fd4c859bf9e89eb" => :lion end def install system 'make', 'install', "BINDIR=#{bin}" end test do assert_equal " 1 1\n12 12\n", pipe_output(bin/"align", "1 1\n12 12\n") end end