diff options
Diffstat (limited to 'var')
3 files changed, 58 insertions, 0 deletions
diff --git a/var/spack/repos/builtin.mock/packages/splice-h/package.py b/var/spack/repos/builtin.mock/packages/splice-h/package.py new file mode 100644 index 0000000000..79b91bc963 --- /dev/null +++ b/var/spack/repos/builtin.mock/packages/splice-h/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 SpliceH(AutotoolsPackage): + """Simple package with one optional dependency""" + + homepage = "http://www.example.com" + url = "http://www.example.com/splice-h-1.0.tar.gz" + + version('1.0', '0123456789abcdef0123456789abcdef') + + variant('foo', default=False, description='nope') + variant('bar', default=False, description='nope') + variant('baz', default=False, description='nope') + + depends_on('splice-z') + depends_on('splice-z+foo', when='+foo') diff --git a/var/spack/repos/builtin.mock/packages/splice-t/package.py b/var/spack/repos/builtin.mock/packages/splice-t/package.py new file mode 100644 index 0000000000..ec27fd28b6 --- /dev/null +++ b/var/spack/repos/builtin.mock/packages/splice-t/package.py @@ -0,0 +1,18 @@ +# 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 SpliceT(AutotoolsPackage): + """Simple package with one optional dependency""" + + homepage = "http://www.example.com" + url = "http://www.example.com/splice-t-1.0.tar.gz" + + version('1.0', '0123456789abcdef0123456789abcdef') + + depends_on('splice-h') + depends_on('splice-z') diff --git a/var/spack/repos/builtin.mock/packages/splice-z/package.py b/var/spack/repos/builtin.mock/packages/splice-z/package.py new file mode 100644 index 0000000000..e28d359b66 --- /dev/null +++ b/var/spack/repos/builtin.mock/packages/splice-z/package.py @@ -0,0 +1,18 @@ +# 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 SpliceZ(AutotoolsPackage): + """Simple package with one optional dependency""" + + homepage = "http://www.example.com" + url = "http://www.example.com/splice-z-1.0.tar.gz" + + version('1.0', '0123456789abcdef0123456789abcdef') + + variant('foo', default=False, description='nope') + variant('bar', default=False, description='nope') |