diff options
author | Tom Scogland <scogland1@llnl.gov> | 2015-11-24 09:01:50 -0800 |
---|---|---|
committer | Tom Scogland <scogland1@llnl.gov> | 2015-11-24 09:23:36 -0800 |
commit | a1553dd12b9388277a3cb80cfa861489bd1c865f (patch) | |
tree | 17c811ed4b4043eb975756b383d83f30d99aaab8 /var/spack/packages | |
parent | e2412e3f21150f3f382c780775cf8e3e1e3cf15a (diff) | |
download | spack-a1553dd12b9388277a3cb80cfa861489bd1c865f.tar.gz spack-a1553dd12b9388277a3cb80cfa861489bd1c865f.tar.bz2 spack-a1553dd12b9388277a3cb80cfa861489bd1c865f.tar.xz spack-a1553dd12b9388277a3cb80cfa861489bd1c865f.zip |
adding google sparsehash and cityhash libraries
Diffstat (limited to 'var/spack/packages')
-rw-r--r-- | var/spack/packages/cityhash/package.py | 16 | ||||
-rw-r--r-- | var/spack/packages/jemalloc/package.py | 12 | ||||
-rw-r--r-- | var/spack/packages/sparsehash/package.py | 14 |
3 files changed, 41 insertions, 1 deletions
diff --git a/var/spack/packages/cityhash/package.py b/var/spack/packages/cityhash/package.py new file mode 100644 index 0000000000..1643cc3b42 --- /dev/null +++ b/var/spack/packages/cityhash/package.py @@ -0,0 +1,16 @@ +from spack import * +from spack.util.environment import * + +class Cityhash(Package): + homepage = "https://github.com/google/cityhash" + url = "https://github.com/google/cityhash" + + version('2013-07-31', git='https://github.com/google/cityhash.git', commit='8af9b8c2b889d80c22d6bc26ba0df1afb79a30db') + version('master', branch='master', git='https://github.com/google/cityhash.git') + + def install(self, spec, prefix): + configure('--enable-sse4.2', '--prefix=%s' % prefix) + + make() + make("install") + diff --git a/var/spack/packages/jemalloc/package.py b/var/spack/packages/jemalloc/package.py index ff946ae821..8cec9ea75b 100644 --- a/var/spack/packages/jemalloc/package.py +++ b/var/spack/packages/jemalloc/package.py @@ -7,8 +7,18 @@ class Jemalloc(Package): version('4.0.4', '687c5cc53b9a7ab711ccd680351ff988') + variant('stats', default=False, description='Enable heap statistics') + variant('prof', default=False, description='Enable heap profiling') + def install(self, spec, prefix): - configure('--prefix=%s' % prefix) + configure_args = ['--prefix=%s' % prefix,] + + if '+stats' in spec: + configure_args.append('--enable-stats') + if '+prof' in spec: + configure_args.append('--enable-prof') + + configure(*configure_args) make() make("install") diff --git a/var/spack/packages/sparsehash/package.py b/var/spack/packages/sparsehash/package.py new file mode 100644 index 0000000000..7decaeb89b --- /dev/null +++ b/var/spack/packages/sparsehash/package.py @@ -0,0 +1,14 @@ +from spack import * + +class Sparsehash(Package): + """Sparse and dense hash-tables for C++ by Google""" + homepage = "https://github.com/sparsehash/sparsehash" + url = "https://github.com/sparsehash/sparsehash/archive/sparsehash-2.0.3.tar.gz" + + version('2.0.3', 'd8d5e2538c1c25577b3f066d7a55e99e') + + def install(self, spec, prefix): + configure('--prefix=%s' % prefix) + + make() + make("install") |