| 
									
										
										
										
											2013-05-09 23:53:26 -05:00
										 |  |  | module FormulaCompat | 
					
						
							|  |  |  |   def x11_installed? | 
					
						
							|  |  |  |     MacOS::X11.installed? | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   def snow_leopard_64? | 
					
						
							|  |  |  |     MacOS.prefer_64_bit? | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | end | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class Formula | 
					
						
							|  |  |  |   include FormulaCompat | 
					
						
							|  |  |  |   extend FormulaCompat | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   def std_cmake_parameters | 
					
						
							|  |  |  |     "-DCMAKE_INSTALL_PREFIX='#{prefix}' -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -Wno-dev" | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-03 13:09:07 +01:00
										 |  |  |   def cxxstdlib_check(check_type) | 
					
						
							| 
									
										
										
										
											2014-04-21 18:50:22 +01:00
										 |  |  |     self.class.cxxstdlib_check check_type | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-05-09 23:53:26 -05:00
										 |  |  |   def self.bottle_sha1(*) | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   def self.all | 
					
						
							|  |  |  |     opoo "Formula.all is deprecated, use Formula.map instead" | 
					
						
							|  |  |  |     map | 
					
						
							|  |  |  |   end | 
					
						
							| 
									
										
										
										
											2014-06-22 15:00:15 -05:00
										 |  |  | 
 | 
					
						
							|  |  |  |   def self.canonical_name(name) | 
					
						
							|  |  |  |     Formulary.canonical_name(name) | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   def self.class_s(name) | 
					
						
							|  |  |  |     Formulary.class_s(name) | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   def self.factory(name) | 
					
						
							|  |  |  |     Formulary.factory(name) | 
					
						
							|  |  |  |   end | 
					
						
							| 
									
										
										
										
											2014-08-16 01:33:41 -05:00
										 |  |  | 
 | 
					
						
							|  |  |  |   def self.require_universal_deps | 
					
						
							|  |  |  |     define_method(:require_universal_deps?) { true } | 
					
						
							|  |  |  |   end | 
					
						
							| 
									
										
										
										
											2015-07-21 21:57:14 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-03 13:09:07 +01:00
										 |  |  |   def self.path(name) | 
					
						
							| 
									
										
										
										
											2015-07-21 21:57:14 +08:00
										 |  |  |     Formulary.core_path(name) | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   DATA = :DATA | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-03 13:09:07 +01:00
										 |  |  |   def patches | 
					
						
							|  |  |  |     {} | 
					
						
							|  |  |  |   end | 
					
						
							| 
									
										
										
										
											2015-07-21 21:57:14 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-03 13:09:07 +01:00
										 |  |  |   def python(_options = {}, &block) | 
					
						
							|  |  |  |     opoo "Formula#python is deprecated and will go away shortly." | 
					
						
							| 
									
										
										
										
											2015-07-21 21:57:14 +08:00
										 |  |  |     block.call if block_given? | 
					
						
							|  |  |  |     PythonRequirement.new | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  |   alias_method :python2, :python | 
					
						
							|  |  |  |   alias_method :python3, :python | 
					
						
							| 
									
										
										
										
											2013-05-09 23:53:26 -05:00
										 |  |  | end |