diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin.mock/packages/some-virtual-mv/package.py | 22 | ||||
-rw-r--r-- | var/spack/repos/builtin.mock/packages/some-virtual-preferred/package.py | 17 |
2 files changed, 39 insertions, 0 deletions
diff --git a/var/spack/repos/builtin.mock/packages/some-virtual-mv/package.py b/var/spack/repos/builtin.mock/packages/some-virtual-mv/package.py new file mode 100644 index 0000000000..0aeb6d0c0a --- /dev/null +++ b/var/spack/repos/builtin.mock/packages/some-virtual-mv/package.py @@ -0,0 +1,22 @@ +# 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) + +from spack import * + + +class SomeVirtualMv(Package): + """Package providing a virtual dependency and with a multivalued variant.""" + + homepage = "http://www.example.com" + url = "http://www.example.com/foo-1.0.tar.gz" + + version('1.0', '0123456789abcdef0123456789abcdef') + + provides('somevirtual') + + # This multi valued variant is needed to trigger an optimization + # criteria for clingo + variant('libs', default='shared,static', values=('shared', 'static'), + multi=True, description='Build shared libs, static libs or both') diff --git a/var/spack/repos/builtin.mock/packages/some-virtual-preferred/package.py b/var/spack/repos/builtin.mock/packages/some-virtual-preferred/package.py new file mode 100644 index 0000000000..1e8ba80526 --- /dev/null +++ b/var/spack/repos/builtin.mock/packages/some-virtual-preferred/package.py @@ -0,0 +1,17 @@ +# 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) + +from spack import * + + +class SomeVirtualPreferred(Package): + """Package providing a virtual dependency with a preference in packages.yaml""" + + homepage = "http://www.example.com" + url = "http://www.example.com/foo-1.0.tar.gz" + + version('1.0', '0123456789abcdef0123456789abcdef') + + provides('somevirtual') |