summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/byte-unixbench/package.py
diff options
context:
space:
mode:
authordarmac <xiaojun2@hisilicon.com>2020-08-31 23:28:53 +0800
committerGitHub <noreply@github.com>2020-08-31 10:28:53 -0500
commitc4e966f16283ad1e7c1c9816e0c5138e18d953e9 (patch)
treea183764c8a0f1b510ddbeefe245b2f8349b7fb59 /var/spack/repos/builtin/packages/byte-unixbench/package.py
parentb0a1a7e9aa1cfd36a521653e10901831f5afd136 (diff)
downloadspack-c4e966f16283ad1e7c1c9816e0c5138e18d953e9.tar.gz
spack-c4e966f16283ad1e7c1c9816e0c5138e18d953e9.tar.bz2
spack-c4e966f16283ad1e7c1c9816e0c5138e18d953e9.tar.xz
spack-c4e966f16283ad1e7c1c9816e0c5138e18d953e9.zip
Add new package: byte-unixbench (#18257)
* Add new package: byte-unixbench * refine install flow * Update var/spack/repos/builtin/packages/byte-unixbench/package.py Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com> Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
Diffstat (limited to 'var/spack/repos/builtin/packages/byte-unixbench/package.py')
-rw-r--r--var/spack/repos/builtin/packages/byte-unixbench/package.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/byte-unixbench/package.py b/var/spack/repos/builtin/packages/byte-unixbench/package.py
new file mode 100644
index 0000000000..96aecd8fa4
--- /dev/null
+++ b/var/spack/repos/builtin/packages/byte-unixbench/package.py
@@ -0,0 +1,21 @@
+# 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 ByteUnixbench(MakefilePackage):
+ """UnixBench is the original BYTE UNIX benchmark suite."""
+
+ homepage = "https://code.google.com/archive/p/byte-unixbench"
+ url = "https://github.com/kdlucas/byte-unixbench/archive/v5.1.3.tar.gz"
+
+ version('5.1.3', sha256='3a6bb00f270a5329682dff20fd2c1ab5332ef046eb54a96a0d7bd371005d31a3')
+
+ build_directory = 'UnixBench'
+
+ def install(self, spec, prefix):
+ with working_dir(self.build_directory):
+ install_tree('.', prefix)