summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/half/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/half/package.py')
-rw-r--r--var/spack/repos/builtin/packages/half/package.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/half/package.py b/var/spack/repos/builtin/packages/half/package.py
new file mode 100644
index 0000000000..0c79a53be5
--- /dev/null
+++ b/var/spack/repos/builtin/packages/half/package.py
@@ -0,0 +1,28 @@
+# 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 Half(Package):
+ """This is a C++ header-only library to provide an IEEE-754 conformant
+ half-precision floating point type along with corresponding
+ arithmetic operators, type conversions and common mathematical
+ functions. It aims for both efficiency and ease of use, trying to
+ accurately mimic the behaviour of the builtin floating point types
+ at the best performance possible. It automatically uses and
+ provides C++11 features when possible, but stays completely
+ C++98-compatible when neccessary."""
+
+ homepage = "https://sourceforge.net/projects/half/"
+ url = "https://downloads.sourceforge.net/project/half/half/2.1.0/half-2.1.0.zip"
+
+ maintainers = ['bvanessen']
+
+ version('2.1.0', sha256='ad1788afe0300fa2b02b0d1df128d857f021f92ccf7c8bddd07812685fa07a25')
+
+ def install(self, spec, prefix):
+ mkdirp(prefix.include)
+ install_tree('include', prefix.include)