diff options
Diffstat (limited to 'var')
3 files changed, 28 insertions, 0 deletions
diff --git a/var/spack/repos/builtin.mock/packages/gmt/package.py b/var/spack/repos/builtin.mock/packages/gmt/package.py new file mode 100644 index 0000000000..444c3d3d95 --- /dev/null +++ b/var/spack/repos/builtin.mock/packages/gmt/package.py @@ -0,0 +1,10 @@ +# Copyright 2013-2021 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 Gmt(Package): + + version('2.0', 'abcdef') + version('1.0', 'abcdef') + + depends_on('mvdefaults', when='@1.0') diff --git a/var/spack/repos/builtin.mock/packages/mvdefaults/package.py b/var/spack/repos/builtin.mock/packages/mvdefaults/package.py new file mode 100644 index 0000000000..d6f7e7e0db --- /dev/null +++ b/var/spack/repos/builtin.mock/packages/mvdefaults/package.py @@ -0,0 +1,10 @@ +# Copyright 2013-2021 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 Mvdefaults(Package): + + version('1.0', 'abcdef') + + variant('foo', values=('a', 'b', 'c'), default=('a', 'b', 'c'), + multi=True, description='') diff --git a/var/spack/repos/builtin.mock/packages/root/package.py b/var/spack/repos/builtin.mock/packages/root/package.py new file mode 100644 index 0000000000..b0de915b29 --- /dev/null +++ b/var/spack/repos/builtin.mock/packages/root/package.py @@ -0,0 +1,8 @@ +# Copyright 2013-2021 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 Root(Package): + version('1.0', 'abcdef') + + depends_on('gmt') |