summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authordarmac <xiaojun2@hisilicon.com>2020-04-22 12:01:49 +0800
committerGitHub <noreply@github.com>2020-04-21 23:01:49 -0500
commit1289d3589aeaf5ad5cc8068ce4851d1fabb72bec (patch)
treeed9b9b266f2e8603af28da1c77fd7a1b7eab62ea /var
parent2f7e940872f0361bc28a21b665ad2986da21d246 (diff)
downloadspack-1289d3589aeaf5ad5cc8068ce4851d1fabb72bec.tar.gz
spack-1289d3589aeaf5ad5cc8068ce4851d1fabb72bec.tar.bz2
spack-1289d3589aeaf5ad5cc8068ce4851d1fabb72bec.tar.xz
spack-1289d3589aeaf5ad5cc8068ce4851d1fabb72bec.zip
Add new package: cmockery (#16225)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/cmockery/package.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/cmockery/package.py b/var/spack/repos/builtin/packages/cmockery/package.py
new file mode 100644
index 0000000000..bb4cf5b22c
--- /dev/null
+++ b/var/spack/repos/builtin/packages/cmockery/package.py
@@ -0,0 +1,27 @@
+# Copyright 2013-2020 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 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"
+
+ 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')