diff options
| author | Andrew Mortensen | 2012-09-24 23:52:31 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2013-01-17 14:43:58 -0800 |
| commit | 73741aa2263c30c58cb11113bb5498597bb1f47a (patch) | |
| tree | 86a5dba567d0913ca148c8c3ce6c4cd335a29e77 /Library/Formula | |
| parent | 902d22290b1dfd13742da3d72199641ac4b4f0b4 (diff) | |
| download | homebrew-73741aa2263c30c58cb11113bb5498597bb1f47a.tar.bz2 | |
duti 1.5.1
Closes #15092.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/duti.rb | 40 |
1 files changed, 38 insertions, 2 deletions
diff --git a/Library/Formula/duti.rb b/Library/Formula/duti.rb index 62a4f4e94..a4dff1af6 100644 --- a/Library/Formula/duti.rb +++ b/Library/Formula/duti.rb @@ -1,12 +1,21 @@ require 'formula' class Duti < Formula - homepage 'http://duti.sourceforge.net/' - url 'http://downloads.sourceforge.net/project/duti/duti/duti-1.5.1/duti-1.5.1.tar.gz' + homepage 'http://duti.org/' + url 'https://github.com/downloads/fitterhappier/duti/duti-1.5.1.tar.gz' sha1 'ac199f936180a3ac62100ae9a31e107a45330557' + head 'https://github.com/fitterhappier/duti.git' + + # Replaces arches with the string "@@ARCH@@" so we can fix it post-configure + def patches + DATA + end + def install system "./configure", "--prefix=#{prefix}" + real_arch = MacOS.prefer_64_bit? ? "x86_64" : "i386" + inreplace "Makefile", "@@ARCH@@", real_arch system "make install" end @@ -14,3 +23,30 @@ class Duti < Formula system "#{bin}/duti", "-x", "txt" end end + +__END__ +diff --git a/configure b/configure +index de1f8e5..de9bcdf 100755 +--- a/configure ++++ b/configure +@@ -2907,17 +2907,17 @@ fi + + darwin10*) + sdk="/Developer/SDKs/MacOSX10.6.sdk" +- macosx_arches="-arch i386 -arch ppc" ++ macosx_arches="-arch @@ARCH@@" + ;; + + darwin11*) + sdk="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk" +- macosx_arches="-arch i386 -arch x86_64" ++ macosx_arches="-arch @@ARCH@@" + ;; + + darwin12*) + sdk="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk" +- macosx_arches="-arch i386 -arch x86_64" ++ macosx_arches="-arch @@ARCH@@" + ;; + *) + { { echo "$as_me:$LINENO: error: ${host_os} is not a supported system" >&5 |
