diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2016-01-26 19:26:16 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2016-01-26 19:26:16 -0700 |
commit | 65b57f0c21b0ffa47d99191e91c4c22376945312 (patch) | |
tree | 342130ec11c6115c5b7ef18f8cdc5baee948f24a | |
parent | c344b30fc4c09cf9258313df2d1bcaedc0af4c65 (diff) | |
parent | 23af31cb1c773cd5a01f93a4896d794ddf908bae (diff) | |
download | spack-65b57f0c21b0ffa47d99191e91c4c22376945312.tar.gz spack-65b57f0c21b0ffa47d99191e91c4c22376945312.tar.bz2 spack-65b57f0c21b0ffa47d99191e91c4c22376945312.tar.xz spack-65b57f0c21b0ffa47d99191e91c4c22376945312.zip |
Merge pull request #401 from trws/cmocka
adding the cmocka unit testing library
-rw-r--r-- | var/spack/repos/builtin/packages/cmocka/package.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/cmocka/package.py b/var/spack/repos/builtin/packages/cmocka/package.py new file mode 100644 index 0000000000..7377016a6b --- /dev/null +++ b/var/spack/repos/builtin/packages/cmocka/package.py @@ -0,0 +1,16 @@ +from spack import * + +class Cmocka(Package): + """Unit-testing framework in pure C""" + homepage = "https://cmocka.org/" + url = "https://cmocka.org/files/1.0/cmocka-1.0.1.tar.xz" + + version('1.0.1', 'ed861e501a21a92b2af63e466df2015e') + parallel = False + + def install(self, spec, prefix): + with working_dir('spack-build', create=True): + cmake('..', *std_cmake_args) + + make() + make("install") |