 dc71b7c8f6
			
		
	
	
		dc71b7c8f6
		
			
		
	
	
	
	
		
			
			- move some things out of `extend` that don't really fit there e.g. `Module`s that are included but not doing any overriding/monkeypatching - move some code into `extend/os` to fix all remaining `rubocop:todo Homebrew/MoveToExtendOS`s - remove some unneeded `bundle` skipper code that doesn't really make sense given our current bottling strategy - extract some `Pathname` extensions to `extend/pathname` for separate files - move a `ENV` `Kernel` extension into `kernel.rb` - `odeprecate` a seemingly unused backwards compatibility method - move `readline_nonblock` from a monkeypatch to a `ReadlineNonblock.read` method as its only used in one place - fix up a link in documentation
		
			
				
	
	
		
			28 lines
		
	
	
		
			684 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			684 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| # typed: strict
 | |
| # frozen_string_literal: true
 | |
| 
 | |
| module OS
 | |
|   module Linux
 | |
|     module Bundle
 | |
|       module ClassMethods
 | |
|         sig { returns(T::Boolean) }
 | |
|         def mas_installed?
 | |
|           false
 | |
|         end
 | |
| 
 | |
|         # 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
 | |
|       end
 | |
|     end
 | |
|   end
 | |
| end
 | |
| 
 | |
| Homebrew::Bundle.singleton_class.prepend(OS::Linux::Bundle::ClassMethods)
 |