| 
									
										
										
										
											2015-08-03 13:09:07 +01:00
										 |  |  | require "requirement" | 
					
						
							| 
									
										
										
										
											2014-10-05 22:17:25 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | class MaximumMacOSRequirement < Requirement | 
					
						
							|  |  |  |   fatal true | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   def initialize(tags) | 
					
						
							|  |  |  |     @version = MacOS::Version.from_symbol(tags.first) | 
					
						
							|  |  |  |     super | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-06-25 23:55:45 -04:00
										 |  |  |   satisfy(:build_env => false) { MacOS.version <= @version } | 
					
						
							| 
									
										
										
										
											2014-10-05 22:17:25 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |   def message | 
					
						
							|  |  |  |     <<-EOS.undent
 | 
					
						
							| 
									
										
										
										
											2015-11-03 23:24:46 +00:00
										 |  |  |       This formula either does not compile or function as expected on OS X | 
					
						
							|  |  |  |       versions newer than #{@version.pretty_name} due to an upstream incompatibility. | 
					
						
							| 
									
										
										
										
											2014-10-05 22:17:25 +01:00
										 |  |  |     EOS | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | end |