 38ce994007
			
		
	
	
		38ce994007
		
	
	
	
	
		
			
			These are ones that were either already deprecated due to audit rules or are just a simple `which` with a `default_formula` so should just be a dependency.
		
			
				
	
	
		
			22 lines
		
	
	
		
			371 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			371 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| require "requirement"
 | |
| 
 | |
| class ArchRequirement < Requirement
 | |
|   fatal true
 | |
| 
 | |
|   def initialize(arch)
 | |
|     @arch = arch.pop
 | |
|     super
 | |
|   end
 | |
| 
 | |
|   satisfy(build_env: false) do
 | |
|     case @arch
 | |
|     when :x86_64 then MacOS.prefer_64_bit?
 | |
|     when :intel, :ppc then Hardware::CPU.type == @arch
 | |
|     end
 | |
|   end
 | |
| 
 | |
|   def message
 | |
|     "This formula requires an #{@arch} architecture."
 | |
|   end
 | |
| end
 |