diff options
| author | Jack Nagel | 2013-04-01 11:53:13 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-04-02 13:17:24 -0500 |
| commit | da184c25e9dd8882c7464b891d4349a8aa4c5442 (patch) | |
| tree | e407252edec868072aff29a6917963d50d44f7c6 /Library/Homebrew/requirements.rb | |
| parent | a82080bd2b85bbdc4072373605c94017f43358f8 (diff) | |
| download | homebrew-da184c25e9dd8882c7464b891d4349a8aa4c5442.tar.bz2 | |
Move x86_64 Requirement into core
Closes #18886.
Diffstat (limited to 'Library/Homebrew/requirements.rb')
| -rw-r--r-- | Library/Homebrew/requirements.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Library/Homebrew/requirements.rb b/Library/Homebrew/requirements.rb index 1f58e6b0a..988a0a6c0 100644 --- a/Library/Homebrew/requirements.rb +++ b/Library/Homebrew/requirements.rb @@ -334,3 +334,23 @@ class CLTDependency < Requirement EOS end end + +class ArchRequirement < Requirement + fatal true + + def initialize(arch) + @arch = arch + super + end + + satisfy do + case @arch + when :x86_64 then MacOS.prefer_64_bit? + end + end + + def message; <<-EOS.undent + This formula requires an #{@arch} architecture. + EOS + end +end |
