summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin.mock/packages/variant-on-dependency-condition-a/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin.mock/packages/variant-on-dependency-condition-a/package.py')
-rw-r--r--var/spack/repos/builtin.mock/packages/variant-on-dependency-condition-a/package.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/var/spack/repos/builtin.mock/packages/variant-on-dependency-condition-a/package.py b/var/spack/repos/builtin.mock/packages/variant-on-dependency-condition-a/package.py
new file mode 100644
index 0000000000..f2687d6043
--- /dev/null
+++ b/var/spack/repos/builtin.mock/packages/variant-on-dependency-condition-a/package.py
@@ -0,0 +1,18 @@
+# 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)
+class VariantOnDependencyConditionA(Package):
+ """Test that dependencies that are conditional on the state of
+ other dependencies are added correctly, for instance:
+
+ depends_on('A')
+ depends_on('B', when='^A+x')
+ """
+
+ homepage = 'https://www.example.org'
+ url = 'https://example.org/files/v3.4/cmake-3.4.3.tar.gz'
+
+ version('1.0', '4cb3ff35b2472aae70f542116d616e63')
+
+ variant('x', default=True, description='?')