forked from mirrors/gecko-dev
		
	 5caf4ef842
			
		
	
	
		5caf4ef842
		
	
	
	
	
		
			
			The function2 library is a header-only library which provides support for defining move-only function types, similar to the proposed std::move_only_function in C++23, but with support for additional customization. This appears to be the first time we've vendored code using the boost license, so I've added it to license.html and moz_yaml.py, and have requested review to ensure it is OK to use code with this license. Differential Revision: https://phabricator.services.mozilla.com/D145690
		
			
				
	
	
		
			33 lines
		
	
	
	
		
			858 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
	
		
			858 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| #!/usr/bin/env python3
 | |
| # -*- coding: utf-8 -*-
 | |
| 
 | |
| from conans import ConanFile, tools
 | |
| 
 | |
| def get_version():
 | |
|     git = tools.Git()
 | |
|     try:
 | |
|         return git.run("describe --tags --abbrev=0")
 | |
|     except:
 | |
|         return None
 | |
| 
 | |
| class Function2Conan(ConanFile):
 | |
|     name = "function2"
 | |
|     version = get_version()
 | |
|     license = "boost"
 | |
|     url = "https://github.com/Naios/function2"
 | |
|     author = "Denis Blank (denis.blank@outlook.com)"
 | |
|     description = "Improved and configurable drop-in replacement to std::function"
 | |
|     homepage = "http://naios.github.io/function2"
 | |
|     no_copy_source = True
 | |
|     scm = {
 | |
|         "type": "git",
 | |
|         "url": "auto",
 | |
|         "revision": "auto"
 | |
|     }
 | |
| 
 | |
|     def package(self):
 | |
|         self.copy("LICENSE.txt", "licenses")
 | |
|         self.copy("include/function2/function2.hpp")
 | |
| 
 | |
|     def package_id(self):
 | |
|         self.info.header_only()
 |