Stop warning in ENV.x11
It has been long enough since `depends_on :x11` was introduced that we can make it the caller's responsibility to ensure X11 is present before invoking ENV.x11, so stop outputting a warning. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
1deb3c0214
commit
33233f5039
@ -246,12 +246,7 @@ module HomebrewEnvExtension
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def x11 silent=false
|
def x11
|
||||||
unless MacOS::X11.installed?
|
|
||||||
opoo "You do not have X11 installed, this formula may not build." unless silent
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
# There are some config scripts here that should go in the PATH
|
# There are some config scripts here that should go in the PATH
|
||||||
prepend 'PATH', MacOS::X11.bin, ':'
|
prepend 'PATH', MacOS::X11.bin, ':'
|
||||||
|
|
||||||
|
|||||||
@ -15,7 +15,6 @@ class EnvironmentTests < Test::Unit::TestCase
|
|||||||
ENV.minimal_optimization
|
ENV.minimal_optimization
|
||||||
ENV.no_optimization
|
ENV.no_optimization
|
||||||
ENV.libxml2
|
ENV.libxml2
|
||||||
ENV.x11 true
|
|
||||||
ENV.enable_warnings
|
ENV.enable_warnings
|
||||||
assert !ENV.cc.empty?
|
assert !ENV.cc.empty?
|
||||||
assert !ENV.cxx.empty?
|
assert !ENV.cxx.empty?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user