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