homebrew-core/Formula/align.rb

27 lines
683 B
Ruby

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
IO.popen(bin/"align", "w+") do |pipe|
pipe.write "1 1\n12 12\n"
pipe.close_write
assert_equal " 1 1\n12 12\n", pipe.read
end
end
end