aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/align.rb
blob: e125dc99ddc3a354bcf625218f9f42f3b6532667 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'formula'

class Align < Formula
  homepage 'http://www.cs.indiana.edu/~kinzler/align/'
  url 'http://www.cs.indiana.edu/~kinzler/align/align-1.7.2.tgz'
  sha1 '6cae78d7df4d0a4aae654c37d68b9501810d9bf0'

  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