summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/cmockery/package.py
blob: b8bdb7e9386f25f60feea7e7c462334d529625c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# 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 Cmockery(AutotoolsPackage):
    """A lightweight library to simplify and generalize the process of
    writing unit tests for C applications."""

    homepage = "https://github.com/google/cmockery"
    url = "https://github.com/google/cmockery/archive/v0.1.2.tar.gz"

    license("BSD-3-Clause")

    version("0.1.2", sha256="d40135ae9179201c01bde725fa64fc32d86b5899972e0ce4ad51668d261edbae")
    version("0.1.1", sha256="a801d17976f781fff6dc49042ff109e55ca4ebe8efb13757fa1a511ca52316be")
    version("0.1.0", sha256="9e017d48e56ab9d2ebcf5286fa54e37d42fe308d3c01fbc367793da2b9ad95e7")

    depends_on("m4", type="build")
    depends_on("autoconf", type="build")
    depends_on("automake", type="build")
    depends_on("libtool", type="build")

    def autoreconf(self, spec, prefix):
        bash = which("bash")
        bash("./autogen.sh")