2014-07-15 08:08:37 +00:00
|
|
|
require "formula"
|
2013-07-10 22:02:57 +00:00
|
|
|
|
|
|
|
class Osxfuse < Formula
|
2014-07-15 08:08:37 +00:00
|
|
|
homepage "http://osxfuse.github.io"
|
2014-09-15 04:03:34 +00:00
|
|
|
url "https://github.com/osxfuse/osxfuse.git", :tag => "osxfuse-2.7.1"
|
2013-07-10 22:02:57 +00:00
|
|
|
|
2014-07-15 08:08:37 +00:00
|
|
|
head "https://github.com/osxfuse/osxfuse.git", :branch => "osxfuse-2"
|
2013-07-10 22:02:57 +00:00
|
|
|
|
2013-11-17 01:17:15 +00:00
|
|
|
bottle do
|
2014-09-15 04:11:27 +00:00
|
|
|
sha1 "4bd80122d662bf283fb400f3ea6cfe5369f9af7f" => :mavericks
|
|
|
|
sha1 "f9b3687629cdd8fa92e2805e1e4b4b63521bcaf5" => :mountain_lion
|
|
|
|
sha1 "81de3186770d7c93dfa6cd8626016c78bf0b1ee2" => :lion
|
2013-11-17 01:17:15 +00:00
|
|
|
end
|
|
|
|
|
2013-07-10 22:02:57 +00:00
|
|
|
depends_on :macos => :snow_leopard
|
2014-05-30 20:35:03 +00:00
|
|
|
depends_on :xcode => :build
|
2014-08-29 19:05:12 +00:00
|
|
|
depends_on ConflictsWithBinaryOsxfuse
|
2014-04-05 00:38:29 +00:00
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
|
|
|
depends_on "gettext" => :build
|
2013-07-10 22:02:57 +00:00
|
|
|
|
2014-07-15 08:08:37 +00:00
|
|
|
conflicts_with "fuse4x", :because => "both install `fuse.pc`"
|
2013-11-17 04:24:06 +00:00
|
|
|
|
2013-07-10 22:02:57 +00:00
|
|
|
def install
|
|
|
|
# Do not override Xcode build settings
|
|
|
|
ENV.remove_cc_etc
|
|
|
|
|
|
|
|
system "./build.sh", "-t", "homebrew", "-f", prefix
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
If upgrading from a previous version of osxfuse, the previous kernel extension
|
|
|
|
will need to be unloaded before installing the new version. First, check that
|
|
|
|
no FUSE-based file systems are running:
|
|
|
|
|
|
|
|
mount -t osxfusefs
|
|
|
|
|
|
|
|
Unmount all FUSE file systems and then unload the kernel extension:
|
|
|
|
|
|
|
|
sudo kextunload -b com.github.osxfuse.filesystems.osxfusefs
|
|
|
|
|
|
|
|
The new osxfuse file system bundle needs to be installed by the root user:
|
|
|
|
|
2014-08-19 03:13:26 +00:00
|
|
|
sudo /bin/cp -RfX #{opt_prefix}/Library/Filesystems/osxfusefs.fs /Library/Filesystems/
|
2013-07-10 22:02:57 +00:00
|
|
|
sudo chmod +s /Library/Filesystems/osxfusefs.fs/Support/load_osxfusefs
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|