summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Christofi <77968333+ChristopherChristofi@users.noreply.github.com>2023-12-19 10:26:13 +0000
committerGitHub <noreply@github.com>2023-12-19 11:26:13 +0100
commit59b39f3eba45cc15b5c0d550e2925680c6648189 (patch)
treebe3fc199a2f5f9764ffbd4946c738686972dfa48
parent7a0c4e8017033430e5f15ed628be6b539e935ba9 (diff)
downloadspack-59b39f3eba45cc15b5c0d550e2925680c6648189.tar.gz
spack-59b39f3eba45cc15b5c0d550e2925680c6648189.tar.bz2
spack-59b39f3eba45cc15b5c0d550e2925680c6648189.tar.xz
spack-59b39f3eba45cc15b5c0d550e2925680c6648189.zip
uthash: add new package (#41732)
-rw-r--r--var/spack/repos/builtin/packages/uthash/package.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/uthash/package.py b/var/spack/repos/builtin/packages/uthash/package.py
new file mode 100644
index 0000000000..0e4b042f4d
--- /dev/null
+++ b/var/spack/repos/builtin/packages/uthash/package.py
@@ -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)