aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorCamillo Lugaresi2012-06-08 04:09:29 +0200
committerJack Nagel2012-07-01 12:19:01 -0500
commit4416955495f13396f336186549a558ae2f291801 (patch)
tree7adea195732fd0a9beeb4d7520acc35c5394dfca /Library
parent4c10eaf33243e1af956905acb8035a4fa51d4cac (diff)
downloadbrew-4416955495f13396f336186549a558ae2f291801.tar.bz2
ENV.x11 automatically if depends_on :x11
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Homebrew/build.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/build.rb b/Library/Homebrew/build.rb
index 271e7f141..bad624afc 100755
--- a/Library/Homebrew/build.rb
+++ b/Library/Homebrew/build.rb
@@ -54,6 +54,8 @@ at_exit do
end
def install f
+ ENV.x11 if f.external_deps.any? { |dep| dep.is_a? X11Dependency }
+
f.recursive_deps.uniq.each do |dep|
dep = Formula.factory dep
if dep.keg_only?