| 
									
										
										
										
											2025-03-18 17:38:37 +00:00
										 |  |  | # typed: strict | 
					
						
							|  |  |  | # frozen_string_literal: true | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | module OS | 
					
						
							|  |  |  |   module Linux | 
					
						
							|  |  |  |     module Bundle | 
					
						
							|  |  |  |       module ClassMethods | 
					
						
							|  |  |  |         sig { returns(T::Boolean) } | 
					
						
							|  |  |  |         def mas_installed? | 
					
						
							|  |  |  |           false | 
					
						
							|  |  |  |         end | 
					
						
							| 
									
										
										
										
											2025-06-09 19:06:16 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |         # Setup pkg-config, if present, to help locate packages | 
					
						
							|  |  |  |         # Only need this on Linux as Homebrew provides a shim on macOS | 
					
						
							|  |  |  |         sig { void } | 
					
						
							|  |  |  |         def prepend_pkgconf_path_if_needed! | 
					
						
							|  |  |  |           pkgconf = Formulary.factory("pkgconf") | 
					
						
							|  |  |  |           return unless pkgconf.any_version_installed? | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |           ENV.prepend_path "PATH", pkgconf.opt_bin.to_s | 
					
						
							|  |  |  |         end | 
					
						
							| 
									
										
										
										
											2025-03-18 17:38:37 +00:00
										 |  |  |       end | 
					
						
							|  |  |  |     end | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | end | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Homebrew::Bundle.singleton_class.prepend(OS::Linux::Bundle::ClassMethods) |