summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin.mock/packages/hash-test2/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin.mock/packages/hash-test2/package.py')
-rw-r--r--var/spack/repos/builtin.mock/packages/hash-test2/package.py33
1 files changed, 33 insertions, 0 deletions
diff --git a/var/spack/repos/builtin.mock/packages/hash-test2/package.py b/var/spack/repos/builtin.mock/packages/hash-test2/package.py
new file mode 100644
index 0000000000..de08125bf6
--- /dev/null
+++ b/var/spack/repos/builtin.mock/packages/hash-test2/package.py
@@ -0,0 +1,33 @@
+# Copyright 2013-2018 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 *
+
+import os
+
+
+class HashTest2(Package):
+ """Used to test package hashing
+ """
+
+ homepage = "http://www.hashtest2.org"
+ url = "http://www.hashtest1.org/downloads/hashtest2-1.1.tar.bz2"
+
+ version('1.1', 'a' * 32)
+ version('1.2', 'b' * 32)
+ version('1.3', 'c' * 31 + 'x') # Source hash differs from hash-test1@1.3
+ version('1.4', 'd' * 32)
+
+ patch('patch1.patch', when="@1.1")
+
+ variant('variantx', default=False, description='Test variant X')
+ variant('varianty', default=False, description='Test variant Y')
+
+ def setup_dependent_environment(self, spack_env, run_env, dependent_spec):
+ pass
+
+ def install(self, spec, prefix):
+ print("install 1")
+ os.listdir(os.getcwd())