summaryrefslogblamecommitdiff
path: root/var/spack/repos/builtin.mock/packages/conditional-provider/package.py
blob: 45bedd56b37b4cbea98577883ff26e330352e3ee (plain) (tree)
1
                                                                         
















                                                                         
# Copyright 2013-2022 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 ConditionalProvider(Package):
    """Mimic the real netlib-lapack, that may be built on top of an
    optimized blas.
    """
    homepage = "https://dev.null"

    version('1.0')

    variant('disable-v1', default=False, description='nope')

    provides('v2')
    provides('v1', when='~disable-v1')

    depends_on('v1', when='+disable-v1')