forked from Homebrew/homebrew-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathduti.rb
36 lines (31 loc) · 1.16 KB
/
duti.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
class Duti < Formula
desc "Select default apps for documents and URL schemes on OS X"
homepage "http://duti.org/"
url "https://github.com/moretension/duti/archive/duti-1.5.3.tar.gz"
sha256 "0e71b7398e01aedf9dde0ffe7fd5389cfe82aafae38c078240780e12a445b9fa"
head "https://github.com/moretension/duti.git"
bottle do
cellar :any_skip_relocation
revision 2
sha256 "53748f3ad97a48b468326e66d869e20c05fc1f67219ac3ea8a147b558717ee45" => :el_capitan
sha256 "c2661fc4e59d5cc941a416bf7abad035af3d15f75e7bca73d2bc29706d89f560" => :yosemite
sha256 "e301c36a6809acc2a0dd62fba59eac4820b90cf2cf9df30f46480f7ce736dad3" => :mavericks
end
depends_on "autoconf" => :build
# Add hardcoded SDK path for El Capitan or later.
# See https://github.com/moretension/duti/pull/20.
if MacOS.version >= :el_capitan
patch do
url "https://github.com/moretension/duti/pull/20.patch"
sha256 "8fab50d10242f8ebc4be10e9a9e11d3daf91331d438d06f692fb6ebd6cbec2f8"
end
end
def install
system "autoreconf", "-vfi"
system "./configure", "--prefix=#{prefix}"
system "make", "install"
end
test do
system "#{bin}/duti", "-x", "txt"
end
end