summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authordarmac <xiaojun2@hisilicon.com>2020-08-10 03:05:28 +0800
committerGitHub <noreply@github.com>2020-08-09 14:05:28 -0500
commit6309c5eff538af5a08012bbf7a9fac391717ae42 (patch)
tree62c1bdb75d70b9e2ab621cfa5c2d94215fd19684 /var
parentc015b8538d616ebf451746fe500de99e3847c36d (diff)
downloadspack-6309c5eff538af5a08012bbf7a9fac391717ae42.tar.gz
spack-6309c5eff538af5a08012bbf7a9fac391717ae42.tar.bz2
spack-6309c5eff538af5a08012bbf7a9fac391717ae42.tar.xz
spack-6309c5eff538af5a08012bbf7a9fac391717ae42.zip
Add new package: libhugetlbfs (#17904)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/libhugetlbfs/package.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libhugetlbfs/package.py b/var/spack/repos/builtin/packages/libhugetlbfs/package.py
new file mode 100644
index 0000000000..9a9ac380aa
--- /dev/null
+++ b/var/spack/repos/builtin/packages/libhugetlbfs/package.py
@@ -0,0 +1,19 @@
+# Copyright 2013-2020 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 import *
+
+
+class Libhugetlbfs(MakefilePackage):
+ """libhugetlbfs is a library which provides easy access
+ to huge pages of memory."""
+
+ homepage = "https://github.com/libhugetlbfs/libhugetlbfs"
+ url = "https://github.com/libhugetlbfs/libhugetlbfs/releases/download/2.22/libhugetlbfs-2.22.tar.gz"
+
+ version('2.22', sha256='94dca9ea2c527cd77bf28904094fe4708865a85122d416bfccc8f4b73b9a6785')
+
+ def install(self, spec, prefix):
+ make('install', "PREFIX=%s" % prefix)