homebrew-core/Formula/osxfuse.rb

53 lines
1.7 KiB
Ruby
Raw Normal View History

class Osxfuse < Formula
homepage "https://osxfuse.github.io/"
url "https://github.com/osxfuse/osxfuse.git", :tag => "osxfuse-2.7.5"
head "https://github.com/osxfuse/osxfuse.git", :branch => "osxfuse-2"
2013-11-17 01:17:15 +00:00
bottle do
2015-02-11 11:53:46 +00:00
sha1 "332ce64ede6db163578ef893be7cbd18e8014b9c" => :mavericks
sha1 "58420e5c9cc687f5ddd6fb670ca25785f3f9468e" => :mountain_lion
2013-11-17 01:17:15 +00:00
end
depends_on :macos => :snow_leopard
depends_on :xcode => :build
2014-12-11 12:14:22 +00:00
# A fairly heinous hack to workaround our dependency resolution getting upset
# See https://github.com/Homebrew/homebrew/issues/35073
depends_on ConflictsWithBinaryOsxfuse => :build
2014-12-11 12:14:22 +00:00
depends_on UnsignedKextRequirement => [ :cask => "osxfuse",
:download => "http://sourceforge.net/projects/osxfuse/files/" ]
2014-12-11 12:14:22 +00:00
2014-04-05 00:38:29 +00:00
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "gettext" => :build
conflicts_with "fuse4x", :because => "both install `fuse.pc`"
2013-11-17 04:24:06 +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:
sudo /bin/cp -RfX #{opt_prefix}/Library/Filesystems/osxfusefs.fs /Library/Filesystems/
sudo chmod +s /Library/Filesystems/osxfusefs.fs/Support/load_osxfusefs
EOS
end
end