diff options
author | citibeth <rpf2116@columbia.edu> | 2016-03-26 20:42:35 -0400 |
---|---|---|
committer | citibeth <rpf2116@columbia.edu> | 2016-03-26 20:42:35 -0400 |
commit | 9b130e1d199bcff10903e981bd7592ed941d0107 (patch) | |
tree | 4806c7d2b249de5d10f20371312c5f02388b100c | |
parent | 11ca06b1045283e2c89dc84a91ceb88fcadb6163 (diff) | |
download | spack-9b130e1d199bcff10903e981bd7592ed941d0107.tar.gz spack-9b130e1d199bcff10903e981bd7592ed941d0107.tar.bz2 spack-9b130e1d199bcff10903e981bd7592ed941d0107.tar.xz spack-9b130e1d199bcff10903e981bd7592ed941d0107.zip |
Added googletest package.
-rw-r--r-- | var/spack/repos/builtin/packages/googletest/package.py | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/googletest/package.py b/var/spack/repos/builtin/packages/googletest/package.py new file mode 100644 index 0000000000..ed27afa10c --- /dev/null +++ b/var/spack/repos/builtin/packages/googletest/package.py @@ -0,0 +1,40 @@ +# FIXME: +# This is a template package file for Spack. We've conveniently +# put "FIXME" labels next to all the things you'll want to change. +# +# Once you've edited all the FIXME's, delete this whole message, +# save this file, and test out your package like this: +# +# spack install googletest +# +# You can always get back here to change things with: +# +# spack edit googletest +# +# See the spack documentation for more information on building +# packages. +# +from spack import * + +class Googletest(Package): + """Google test framework for C++. Also called gtest.""" + homepage = "https://github.com/google/googletest" + url = "https://github.com/google/googletest/tarball/release-1.7.0" + + version('1.7.0', '5eaf03ed925a47b37c8e1d559eb19bc4') + + depends_on("cmake") + + def install(self, spec, prefix): + which('cmake')('.', *std_cmake_args) + + make() + + # Google Test doesn't have a make install + # We have to do our own install here. + install_tree('include', prefix.include) + + mkdirp(prefix.lib) + install('./libgtest.a', '%s' % prefix.lib) + install('./libgtest_main.a', '%s' % prefix.lib) + |