Skip to content

Commit

Permalink
Merge pull request #4092 from MikeMcQuaid/x11_requirement_download_base
Browse files Browse the repository at this point in the history
x11_requirement: move download to base class.
  • Loading branch information
MikeMcQuaid authored Apr 18, 2018
2 parents 0a2e381 + 6fab4e1 commit 1d9746d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions Library/Homebrew/requirements/x11_requirement.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ class X11Requirement < Requirement
fatal true

cask "xquartz"
download "https://xquartz.macosforge.org"

env { ENV.x11 }

def initialize(name = "x11", tags = [])
Expand Down

0 comments on commit 1d9746d

Please sign in to comment.