Class: X11Requirement

Inherits:
Requirement show all
Includes:
Comparable
Defined in:
brew/Library/Homebrew/requirements/x11_requirement.rb,
brew/Library/Homebrew/extend/os/mac/requirements/x11_requirement.rb

Constant Summary

Constants included from Dependable

Dependable::RESERVED_TAGS

Instance Attribute Summary

Attributes inherited from Requirement

#cask, #download, #name, #tags

Instance Method Summary collapse

Methods inherited from Requirement

#==, #display_s, #env, env, #env_proc, expand, #fatal?, #hash, #initialize, #mktemp, #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, #prune_from_option?, #prune_if_build_and_not_dependent?, #recommended?, #required?, #test?

Constructor Details

This class inherits a constructor from Requirement

Instance Method Details

#<=>(other) ⇒ Object



42
43
44
45
46
# File 'brew/Library/Homebrew/requirements/x11_requirement.rb', line 42

def <=>(other)
  return unless other.is_a? X11Requirement

  0
end

#inspectObject



48
49
50
# File 'brew/Library/Homebrew/requirements/x11_requirement.rb', line 48

def inspect
  "#<#{self.class.name}: #{tags.inspect}>"
end

#messageObject



37
38
39
40
# File 'brew/Library/Homebrew/requirements/x11_requirement.rb', line 37

def message
  "X11 is required to install this formula, either Xorg #{min_version} or " \
  "xdpyinfo #{min_xdpyinfo_version}, or newer. #{super}"
end

#min_versionObject



15
16
17
# File 'brew/Library/Homebrew/requirements/x11_requirement.rb', line 15

def min_version
  "1.12.2"
end

#min_xdpyinfo_versionObject



19
20
21
# File 'brew/Library/Homebrew/requirements/x11_requirement.rb', line 19

def min_xdpyinfo_version
  "1.3.0"
end