From 5c5240764b03be3cae4ae7dcf88140acbb30ac33 Mon Sep 17 00:00:00 2001 From: Dominyk Tiller Date: Tue, 7 Oct 2014 23:36:11 +0100 Subject: [PATCH] duti: fix Yosemite build. Closes Homebrew/homebrew#33009. Closes Homebrew/homebrew#33011. Signed-off-by: Mike McQuaid --- Formula/duti.rb | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/Formula/duti.rb b/Formula/duti.rb index 9d634693e2..c9d5dfc3ae 100644 --- a/Formula/duti.rb +++ b/Formula/duti.rb @@ -1,17 +1,25 @@ -require 'formula' +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' + 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" 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 system "autoreconf", "-vfi" system "./configure", "--prefix=#{prefix}" - system "make install" + system "make", "install" end test do