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"
|
|
|
|
url "https://github.com/moretension/duti/archive/duti-1.5.2.tar.gz"
|
|
|
|
sha1 "1833c0a56646a132fa09bcb31c557d4393f19a3b"
|
2012-09-25 03:52:31 +00:00
|
|
|
|
2014-06-01 01:39:25 +00:00
|
|
|
depends_on "autoconf" => :build
|
2012-09-25 03:52:31 +00:00
|
|
|
|
2014-10-07 22:36:11 +00:00
|
|
|
# Fix for hardcoded SDK paths. See https://github.com/moretension/duti/pull/7
|
|
|
|
if MacOS.version == :yosemite
|
|
|
|
patch do
|
|
|
|
url "https://github.com/moretension/duti/pull/7.patch"
|
|
|
|
sha1 "6bbdba1cb3cbfe5aad9c0560046216c68112f6e8"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
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
|