add missing test_repo package

Signed-off-by: Gregory Becker <becker33@llnl.gov>
This commit is contained in:
Gregory Becker 2025-05-18 11:45:50 -07:00
parent 66bb19084c
commit 6737591016
No known key found for this signature in database
GPG Key ID: 2362541F6D14ED84

View File

@ -0,0 +1,20 @@
# Copyright Spack Project Developers. See COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class ConditionalLanguages(Package):
"""Conditional depends on c/cxx/fortran with a variant for each"""
homepage = "https://dev.null"
version("1.0")
variant("c", default=False, description="depend on c")
variant("cxx", default=False, description="depend on cxx")
variant("fortran", default=False, description="depend on fortran")
depends_on("c", type="build", when="+c")
depends_on("cxx", type="build", when="+cxx")
depends_on("fortran", type="build", when="+fortran")