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/'
|
2014-02-19 00:10:32 +00:00
|
|
|
head 'https://github.com/moretension/duti.git'
|
|
|
|
url 'https://github.com/moretension/duti/archive/duti-1.5.2.tar.gz'
|
2014-01-01 11:37:08 +00:00
|
|
|
sha1 '1833c0a56646a132fa09bcb31c557d4393f19a3b'
|
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
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2012-08-21 07:24:40 +00:00
|
|
|
system "#{bin}/duti", "-x", "txt"
|
|
|
|
end
|
|
|
|
end
|