summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authoregreen77 <45573926+egreen77@users.noreply.github.com>2019-07-12 13:26:24 -0700
committerAdam J. Stewart <ajstewart426@gmail.com>2019-07-12 15:26:24 -0500
commitd01d79eb5d924d00bd59db2ef37870c4f816fdcc (patch)
treef78bd45677fbfc4b80c99ca75067cda99a4b6c0d /var
parentd615d0a1ec26aca94f7bbb6fd6881527b27d9b47 (diff)
downloadspack-d01d79eb5d924d00bd59db2ef37870c4f816fdcc.tar.gz
spack-d01d79eb5d924d00bd59db2ef37870c4f816fdcc.tar.bz2
spack-d01d79eb5d924d00bd59db2ef37870c4f816fdcc.tar.xz
spack-d01d79eb5d924d00bd59db2ef37870c4f816fdcc.zip
new package: umap (#12000)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/umap/package.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/umap/package.py b/var/spack/repos/builtin/packages/umap/package.py
new file mode 100644
index 0000000000..b6077f1c89
--- /dev/null
+++ b/var/spack/repos/builtin/packages/umap/package.py
@@ -0,0 +1,35 @@
+# Copyright 2013-2019 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 Umap(CMakePackage):
+ """Umap is a library that provides an mmap()-like interface to a
+ simple, user-space page fault handler based on the userfaultfd Linux
+ feature (starting with 4.3 linux kernel)."""
+
+ homepage = "https://github.com/LLNL/umap"
+ url = "https://github.com/LLNL/umap/archive/v2.0.0.tar.gz"
+ git = "https://github.com/LLNL/umap.git"
+
+ version('develop', branch='develop')
+ version('2.0.0', sha256='85c4bc68e8790393847a84eb54eaf6fc321acade382a399a2679d541b0e34150')
+ version('1.0.0', sha256='c746de3fae5bfc5bbf36234d5e888ea45eeba374c26cd8b5a817d0c08e454ed5')
+ version('0.0.4', sha256='bffaa03668c95b608406269cba6543f5e0ba37b04ac08a3fc4593976996bc273')
+ version('0.0.3', sha256='8e80835a85ad69fcd95f963822b1616c782114077d79c350017db4d82871455c')
+ version('0.0.2', sha256='eccc987b414bc568bd33b569ab6e18c328409499f11e65ac5cd5c3e1a8b47509')
+ version('0.0.1', sha256='49020adf55aa3f8f03757373b21ff229d2e8cf4155d54835019cd4745c1291ef')
+
+ variant('logging', default=False, description='Build with logging enabled.')
+ variant('tests', default=False, description='Build test programs.')
+
+ def cmake_args(self):
+ spec = self.spec
+ args = [
+ "-DENABLE_LOGGING=%s" % ('On' if '+logging' in spec else 'Off'),
+ "-DENABLE_TESTS=%s" % ('On' if '+tests' in spec else 'Off'),
+ ]
+ return args