aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/requirements.rb
diff options
context:
space:
mode:
authorJack Nagel2013-01-27 15:41:45 -0600
committerJack Nagel2013-01-28 10:35:14 -0600
commitca134adfbb6518c02903ce5305c74b2403688149 (patch)
treecb922f106a18fdafb2fd0d90b6b326dd5c010412 /Library/Homebrew/requirements.rb
parentba2fbca4ba367a3082986fbb6c6588e395aad976 (diff)
downloadhomebrew-ca134adfbb6518c02903ce5305c74b2403688149.tar.bz2
Allow specifying a name attribute for X11Dependency
Diffstat (limited to 'Library/Homebrew/requirements.rb')
-rw-r--r--Library/Homebrew/requirements.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Homebrew/requirements.rb b/Library/Homebrew/requirements.rb
index 4ca9496eb..946fc055f 100644
--- a/Library/Homebrew/requirements.rb
+++ b/Library/Homebrew/requirements.rb
@@ -59,10 +59,11 @@ class X11Dependency < Requirement
env { x11 }
- def initialize(*tags)
+ def initialize(name="x11", *tags)
tags.flatten!
+ @name = name
@min_version = tags.shift if /(\d\.)+\d/ === tags.first
- super
+ super(tags)
end
satisfy :build_env => false do