summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin.mock/packages/external-buildable-with-variant/package.py
blob: 1ec1561a679c9a8f2f44dacd1e3d4e63274f7954 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Copyright 2013-2024 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.package import *


class ExternalBuildableWithVariant(Package):
    homepage = "http://somewhere.com"
    url = "http://somewhere.com/module-1.0.tar.gz"

    version("1.0", md5="1234567890abcdef1234567890abcdef")
    version("0.9", md5="1234567890abcdef1234567890abcdef")

    variant("baz", default=False, description="nope")

    depends_on("c@1.0", when="@0.9")