summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin.mock/packages/ninja/package.py
blob: 1da107f30fafea501630d050a50a993f70b5b6b2 (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 Ninja(Package):
    """Dummy Ninja Package"""

    homepage = "https://ninja-build.org/"
    url = "https://github.com/ninja-build/ninja/archive/v1.7.2.tar.gz"

    version("1.10.2", sha256="ce35865411f0490368a8fc383f29071de6690cbadc27704734978221f25e2bed")

    def setup_dependent_package(self, module, dspec):
        module.ninja = Executable(self.spec.prefix.bin.ninja)