homebrew-core/Formula/duti.rb
Ted Pennings 4cd0935be7 Convert all 'def test' formulae to 'test do'
Closes Homebrew/homebrew#26942.
Closes Homebrew/homebrew#26946.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-02-24 19:54:02 -08:00

20 lines
448 B
Ruby

require 'formula'
class Duti < Formula
homepage 'http://duti.org/'
head 'https://github.com/moretension/duti.git'
url 'https://github.com/moretension/duti/archive/duti-1.5.2.tar.gz'
sha1 '1833c0a56646a132fa09bcb31c557d4393f19a3b'
depends_on :autoconf
def install
system "autoreconf", "-vfi"
system "./configure", "--prefix=#{prefix}"
system "make install"
end
test do
system "#{bin}/duti", "-x", "txt"
end
end