summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin.mock/packages/parent-foo-bar/package.py
blob: 14516566a9f7d4f3e41fd1b9ae285b1945ce6f49 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 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 ParentFooBar(Package):
    """This package has a variant "bar", which is True by default, and depends on another
    package which has the same variant defaulting to False.
    """

    homepage = "http://www.example.com"
    url = "http://www.example.com/parent-foo-bar-1.0.tar.gz"

    version("1.0", md5="abcdefg0123456789abcdefghfedcba0")

    variant("foo", default=True, description="")
    variant("bar", default=True, description="")

    depends_on("dependency-foo-bar")