summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin.mock/packages/dep-with-variants-if-develop/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin.mock/packages/dep-with-variants-if-develop/package.py')
-rw-r--r--var/spack/repos/builtin.mock/packages/dep-with-variants-if-develop/package.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/var/spack/repos/builtin.mock/packages/dep-with-variants-if-develop/package.py b/var/spack/repos/builtin.mock/packages/dep-with-variants-if-develop/package.py
new file mode 100644
index 0000000000..ecb11224b3
--- /dev/null
+++ b/var/spack/repos/builtin.mock/packages/dep-with-variants-if-develop/package.py
@@ -0,0 +1,12 @@
+# 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 DepWithVariantsIfDevelop(Package):
+ """Package that adds a dependency with many variants only at @develop"""
+ homepage = "https://dev.null"
+
+ version('develop')
+ version('1.0')
+
+ depends_on('dep-with-variants', when='@develop')