2012-08-21 07:24:40 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Duti < Formula
|
2012-09-25 03:52:31 +00:00
|
|
|
homepage 'http://duti.org/'
|
|
|
|
head 'https://github.com/fitterhappier/duti.git'
|
2013-11-17 06:54:22 +00:00
|
|
|
url 'https://github.com/fitterhappier/duti/archive/duti-1.5.2.tar.gz'
|
|
|
|
sha1 'c36fcf3b9f48184263456862dfe317d8b1109d6b'
|
2012-09-25 03:52:31 +00:00
|
|
|
|
2013-11-17 06:54:22 +00:00
|
|
|
depends_on :autoconf
|
2012-09-25 03:52:31 +00:00
|
|
|
|
2012-08-21 07:24:40 +00:00
|
|
|
def install
|
2013-11-17 06:54:22 +00:00
|
|
|
system "autoreconf", "-vfi"
|
2012-08-21 07:24:40 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
|
|
|
system "#{bin}/duti", "-x", "txt"
|
|
|
|
end
|
|
|
|
end
|