aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorDominyk Tiller2014-10-07 23:36:11 +0100
committerMike McQuaid2014-10-08 00:55:57 +0100
commit3ee8381ebb81a0b055025313456be5c094c4951e (patch)
treeaa3250a1e30b1ccacb06b19d725e14e215a07345 /Library
parentcd782079c86ed92d89a85414ebb70a976f35bbd6 (diff)
downloadhomebrew-3ee8381ebb81a0b055025313456be5c094c4951e.tar.bz2
duti: fix Yosemite build.
Closes #33009. Closes #33011. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/duti.rb20
1 files changed, 14 insertions, 6 deletions
diff --git a/Library/Formula/duti.rb b/Library/Formula/duti.rb
index 9d634693e..c9d5dfc3a 100644
--- a/Library/Formula/duti.rb
+++ b/Library/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