2012-08-21 07:24:40 +00:00
|
|
|
class Duti < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Select default apps for documents and URL schemes on OS X"
|
2014-10-07 22:36:11 +00:00
|
|
|
homepage "http://duti.org/"
|
2014-12-04 14:09:58 +00:00
|
|
|
url "https://github.com/moretension/duti/archive/duti-1.5.3.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "0e71b7398e01aedf9dde0ffe7fd5389cfe82aafae38c078240780e12a445b9fa"
|
2015-10-05 13:17:43 +00:00
|
|
|
head "https://github.com/moretension/duti.git"
|
2012-09-25 03:52:31 +00:00
|
|
|
|
2014-12-04 14:22:39 +00:00
|
|
|
bottle do
|
2015-09-18 09:56:58 +00:00
|
|
|
cellar :any_skip_relocation
|
|
|
|
revision 1
|
|
|
|
sha256 "eb2195e20db6134589edc886a3d0aa183208b18820e32b7270a2f87b0abacb53" => :el_capitan
|
|
|
|
sha256 "eef68eab84629af9bc431d643053b492d687b5389807e62b3bddbad87caf4d86" => :yosemite
|
|
|
|
sha256 "205e78f2b770b8e377f129afaf85ecdce18a1e6c13ac9f6eb39a620ec729605e" => :mavericks
|
2014-12-04 14:22:39 +00:00
|
|
|
end
|
|
|
|
|
2014-06-01 01:39:25 +00:00
|
|
|
depends_on "autoconf" => :build
|
2012-09-25 03:52:31 +00:00
|
|
|
|
2015-09-13 00:51:17 +00:00
|
|
|
# Add hardcoded SDK path for El Capitan. See https://github.com/moretension/duti/pull/13
|
|
|
|
if MacOS.version == :el_capitan
|
|
|
|
patch do
|
|
|
|
url "https://github.com/moretension/duti/pull/13.patch"
|
|
|
|
sha256 "5e2d482fe73fe95aea23c25417fdc3815f14724e96e4ac60e5a329424a735388"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2012-08-21 07:24:40 +00:00
|
|
|
def install
|
2013-11-17 06:54:22 +00:00
|
|
|
system "autoreconf", "-vfi"
|
2012-08-21 07:24:40 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2014-10-07 22:36:11 +00:00
|
|
|
system "make", "install"
|
2012-08-21 07:24:40 +00:00
|
|
|
end
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2012-08-21 07:24:40 +00:00
|
|
|
system "#{bin}/duti", "-x", "txt"
|
|
|
|
end
|
|
|
|
end
|