2014-10-07 22:36:11 +00:00
|
|
|
require "formula"
|
2012-08-21 07:24:40 +00:00
|
|
|
|
|
|
|
class Duti < Formula
|
2014-10-07 22:36:11 +00:00
|
|
|
homepage "http://duti.org/"
|
|
|
|
head "https://github.com/moretension/duti.git"
|
2014-12-04 14:09:58 +00:00
|
|
|
url "https://github.com/moretension/duti/archive/duti-1.5.3.tar.gz"
|
|
|
|
sha1 "2a4e34002db33133feb8057968d1f670bf422ea5"
|
2012-09-25 03:52:31 +00:00
|
|
|
|
2014-12-04 14:22:39 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "46a7a0eb73e8eb4daf5eeed21dc766d61e9f7992" => :yosemite
|
|
|
|
sha1 "03f60c65c60faf518582574e43f51710144dffe5" => :mavericks
|
|
|
|
sha1 "3c6cd123eb6c1250048150417ae3f7cc2737b36f" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2014-06-01 01:39:25 +00:00
|
|
|
depends_on "autoconf" => :build
|
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}"
|
2014-10-07 22:36:11 +00:00
|
|
|
system "make", "install"
|
2012-08-21 07:24:40 +00:00
|
|
|
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
|