Index pkgconfig directories by MacOS.version
This commit is contained in:
		
							parent
							
								
									23575f3c7f
								
							
						
					
					
						commit
						878747d458
					
				
							
								
								
									
										1
									
								
								Library/ENV/pkgconfig/10.4
									
									
									
									
									
										Symbolic link
									
								
							
							
						
						
									
										1
									
								
								Library/ENV/pkgconfig/10.4
									
									
									
									
									
										Symbolic link
									
								
							@ -0,0 +1 @@
 | 
			
		||||
10.5
 | 
			
		||||
@ -69,8 +69,7 @@ module HomebrewEnvExtension
 | 
			
		||||
    paths = []
 | 
			
		||||
    paths << HOMEBREW_PREFIX/'lib/pkgconfig'
 | 
			
		||||
    paths << HOMEBREW_PREFIX/'share/pkgconfig'
 | 
			
		||||
    paths << HOMEBREW_REPOSITORY/'Library/ENV/pkgconfig/mountain_lion' if MacOS.version >= :mountain_lion
 | 
			
		||||
    paths << HOMEBREW_REPOSITORY/'Library/ENV/pkgconfig/leopard' if MacOS.version <= :leopard
 | 
			
		||||
    paths << HOMEBREW_REPOSITORY/"Library/ENV/pkgconfig/#{MacOS.version}"
 | 
			
		||||
    paths << '/usr/lib/pkgconfig'
 | 
			
		||||
    paths.select { |d| File.directory? d }.join(':')
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
@ -127,8 +127,7 @@ class << ENV
 | 
			
		||||
    paths << "#{HOMEBREW_PREFIX}/share/pkgconfig"
 | 
			
		||||
    # we put our paths before X because we dupe some of the X libraries
 | 
			
		||||
    paths << "#{MacSystem.x11_prefix}/lib/pkgconfig" << "#{MacSystem.x11_prefix}/share/pkgconfig" if x11?
 | 
			
		||||
    # Mountain Lion no longer ships some .pcs; ensure we pick up our versions
 | 
			
		||||
    paths << "#{HOMEBREW_REPOSITORY}/Library/ENV/pkgconfig/mountain_lion" if MacOS.version >= :mountain_lion
 | 
			
		||||
    paths << "#{HOMEBREW_REPOSITORY}/Library/ENV/pkgconfig/#{MacOS.version}"
 | 
			
		||||
    paths.to_path_s
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user