homebrew-core/Formula/duti.rb

29 lines
721 B
Ruby
Raw Normal View History

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"
2014-06-01 01:39:25 +00:00
depends_on "autoconf" => :build
# 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
def install
2013-11-17 06:54:22 +00:00
system "autoreconf", "-vfi"
system "./configure", "--prefix=#{prefix}"
system "make", "install"
end
test do
system "#{bin}/duti", "-x", "txt"
end
end