x11_requirement: move download to base class.

No reason to have it in macOS class and keeps consistent output with
`brew info` on Linux.
This commit is contained in:
Mike McQuaid 2018-04-18 11:18:29 +01:00
parent dcf20682d7
commit 6fab4e1805
2 changed files with 2 additions and 2 deletions

View File

@ -1,8 +1,6 @@
require "requirement"
class X11Requirement < Requirement
download "https://xquartz.macosforge.org"
satisfy build_env: false do
next false unless MacOS::XQuartz.installed?
min_version <= MacOS::XQuartz.version

View File

@ -6,6 +6,8 @@ class X11Requirement < Requirement
fatal true
cask "xquartz"
download "https://xquartz.macosforge.org"
env { ENV.x11 }
def initialize(name = "x11", tags = [])