26 lines
		
	
	
		
			476 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			476 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| 
 | |
| 
 | |
| import os
 | |
| from SCons.Script import *
 | |
| 
 | |
| 
 | |
| def available(env: Environment):
 | |
|     if os.name != 'posix':
 | |
|         return 'Xft is only available on Linux.'
 | |
| 
 | |
| def versions(env: Environment, update: bool = False):
 | |
|     if os.name == 'posix':
 | |
|         return [(0, 0, 0)]
 | |
|     else:
 | |
|         return []
 | |
| 
 | |
| def dependencies(env: Environment, version) -> 'dict':
 | |
|     return {
 | |
|         'fontconfig': {}
 | |
|     }
 | |
| 
 | |
| def cook(env: Environment, version) -> dict:
 | |
|     return {
 | |
|         'LIBS': ['Xft']
 | |
|     }
 |