diff options
| author | Jack Nagel | 2014-03-05 20:12:51 -0600 |
|---|---|---|
| committer | Jack Nagel | 2014-03-05 20:45:44 -0600 |
| commit | 7c6cc92c76a4dba0100394c601b6717060d337c2 (patch) | |
| tree | b72c7d762151fd6d96d1c1cd36c60ec77d42d308 /Library/Homebrew/requirements | |
| parent | ad7ff7992c6ca693914aedca7a7cec63476a42e1 (diff) | |
| download | homebrew-7c6cc92c76a4dba0100394c601b6717060d337c2.tar.bz2 | |
Remove special X11 proxy deps
Diffstat (limited to 'Library/Homebrew/requirements')
| -rw-r--r-- | Library/Homebrew/requirements/x11_dependency.rb | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/Library/Homebrew/requirements/x11_dependency.rb b/Library/Homebrew/requirements/x11_dependency.rb index 4b030445c..c493d4521 100644 --- a/Library/Homebrew/requirements/x11_dependency.rb +++ b/Library/Homebrew/requirements/x11_dependency.rb @@ -39,44 +39,4 @@ class X11Dependency < Requirement min_version <=> other.min_version end end - - # When X11Dependency is subclassed, the new class should - # also inherit the information specified in the DSL above. - def self.inherited(mod) - instance_variables.each do |ivar| - mod.instance_variable_set(ivar, instance_variable_get(ivar)) - end - end - - # X11Dependency::Proxy is a base class for the X11 pseudo-deps. - # Rather than instantiate it directly, a separate class is built - # for each of the packages that we proxy to X11Dependency. - class Proxy < self - PACKAGES = [:libpng, :freetype, :fontconfig] - - class << self - def defines_const?(const) - if ::RUBY_VERSION >= "1.9" - const_defined?(const, false) - else - const_defined?(const) - end - end - - def for(name, tags=[]) - constant = name.capitalize - - if defines_const?(constant) - klass = const_get(constant) - else - klass = Class.new(self) do - def initialize(name, tags) super end - end - - const_set(constant, klass) - end - klass.new(name, tags) - end - end - end end |
