diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2015-09-23 00:27:27 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2015-09-23 00:27:27 -0700 |
commit | 5f826a0ab7d93bd6c8f9c6117966586f7510247a (patch) | |
tree | 6fe6f4ab3326d0a0cb15c484972a591129fe7fab /var | |
parent | ba83dd56a1d225312843964017c64d3cb89d05cb (diff) | |
parent | 3ade141829bc382cd7d50d02d79967e78d0de147 (diff) | |
download | spack-5f826a0ab7d93bd6c8f9c6117966586f7510247a.tar.gz spack-5f826a0ab7d93bd6c8f9c6117966586f7510247a.tar.bz2 spack-5f826a0ab7d93bd6c8f9c6117966586f7510247a.tar.xz spack-5f826a0ab7d93bd6c8f9c6117966586f7510247a.zip |
Merge pull request #114 from scalability-llnl/features/snappy
Features/snappy
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/packages/leveldb/package.py | 29 | ||||
-rw-r--r-- | var/spack/packages/snappy/package.py | 15 |
2 files changed, 44 insertions, 0 deletions
diff --git a/var/spack/packages/leveldb/package.py b/var/spack/packages/leveldb/package.py new file mode 100644 index 0000000000..da68a9cbcb --- /dev/null +++ b/var/spack/packages/leveldb/package.py @@ -0,0 +1,29 @@ +import os +import glob +from spack import * + +class Leveldb(Package): + """LevelDB is a fast key-value storage library written at Google + that provides an ordered mapping from string keys to string values.""" + + homepage = "https://github.com/google/leveldb" + url = "https://github.com/google/leveldb/archive/v1.18.tar.gz" + + version('1.18', '73770de34a2a5ab34498d2e05b2b7fa0') + + depends_on("snappy") + + def install(self, spec, prefix): + make() + + mkdirp(prefix.include) + mkdirp(prefix.lib) + + cp = which('cp') + + # cp --preserve=links libleveldb.* prefix/lib + args = glob.glob('libleveldb.*') + args.append(prefix + '/lib') + cp('--preserve=links', *args) + + cp('-r', 'include/leveldb', prefix + '/include') diff --git a/var/spack/packages/snappy/package.py b/var/spack/packages/snappy/package.py new file mode 100644 index 0000000000..c8f9ceef7d --- /dev/null +++ b/var/spack/packages/snappy/package.py @@ -0,0 +1,15 @@ +import os +from spack import * + +class Snappy(Package): + """A fast compressor/decompressor: https://code.google.com/p/snappy""" + + homepage = "https://code.google.com/p/snappy" + url = "https://github.com/google/snappy/releases/download/1.1.3/snappy-1.1.3.tar.gz" + + version('1.1.3', '7358c82f133dc77798e4c2062a749b73') + + def install(self, spec, prefix): + configure("--prefix=" + prefix) + make() + make("install") |