Class: OsxfuseRequirement

Inherits:
Requirement show all
Defined in:
Library/Homebrew/requirements/osxfuse_requirement.rb,
Library/Homebrew/extend/os/mac/requirements/osxfuse_requirement.rb,
Library/Homebrew/extend/os/linux/requirements/osxfuse_requirement.rb

Constant Summary

Constants included from Dependable

Dependable::RESERVED_TAGS

Instance Attribute Summary

Attributes inherited from Requirement

#cask, #download, #name, #tags

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Requirement

#==, default_formula, #display_s, #env, env, #env_proc, expand, #fatal?, #hash, #initialize, #inspect, #modify_build_environment, #option_names, prune, prune?, #satisfied?, #satisfied_result_parent, satisfy

Methods included from BuildEnvironment::DSL

#env

Methods included from Dependable

#build?, #option_tags, #optional?, #options, #recommended?, #required?, #run?

Constructor Details

This class inherits a constructor from Requirement

Class Method Details

.binary_osxfuse_installed?Boolean

Returns:

  • (Boolean)


9
10
11
12
# File 'Library/Homebrew/extend/os/mac/requirements/osxfuse_requirement.rb', line 9

def self.binary_osxfuse_installed?
  File.exist?("/usr/local/include/osxfuse/fuse.h") &&
    !File.symlink?("/usr/local/include/osxfuse")
end

Instance Method Details

#messageObject



18
19
20
21
22
23
24
25
26
27
# File 'Library/Homebrew/extend/os/linux/requirements/osxfuse_requirement.rb', line 18

def message
  msg = "libfuse is required to install this formula.\n"
  if libfuse_formula_exists?
    msg + <<~EOS
      Run "brew install libfuse" to install it.
    EOS
  else
    msg + super
  end
end