uthash: add new package (#41732)
This commit is contained in:
		 Christopher Christofi
					Christopher Christofi
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							7a0c4e8017
						
					
				
				
					commit
					59b39f3eba
				
			
							
								
								
									
										20
									
								
								var/spack/repos/builtin/packages/uthash/package.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								var/spack/repos/builtin/packages/uthash/package.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | |||||||
|  | # Copyright 2013-2023 Lawrence Livermore National Security, LLC and other | ||||||
|  | # Spack Project Developers. See the top-level COPYRIGHT file for details. | ||||||
|  | # | ||||||
|  | # SPDX-License-Identifier: (Apache-2.0 OR MIT) | ||||||
|  | 
 | ||||||
|  | from spack.package import * | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | class Uthash(Package): | ||||||
|  |     """C macros for hash tables and more.""" | ||||||
|  | 
 | ||||||
|  |     homepage = "https://troydhanson.github.io/uthash/" | ||||||
|  |     url = "https://github.com/troydhanson/uthash/archive/refs/tags/v2.3.0.tar.gz" | ||||||
|  | 
 | ||||||
|  |     version("2.3.0", sha256="e10382ab75518bad8319eb922ad04f907cb20cccb451a3aa980c9d005e661acc") | ||||||
|  | 
 | ||||||
|  |     def install(self, spec, prefix): | ||||||
|  |         mkdirp(prefix.include) | ||||||
|  |         for header in find(join_path(self.stage.source_path, "src"), "*.h"): | ||||||
|  |             install(header, prefix.include) | ||||||
		Reference in New Issue
	
	Block a user