diff options
author | Michael Kuhn <suraia@ikkoku.de> | 2017-09-26 19:00:21 +0200 |
---|---|---|
committer | Christoph Junghans <christoph.junghans@gmail.com> | 2017-09-26 11:00:21 -0600 |
commit | 86d681be6e9506f8b048afc9f0a4087111926539 (patch) | |
tree | e62856d0d8381bf50dfb527992bc6d829ef6d484 | |
parent | 733965b3c6fdc9bb16b5c9985fe5ff35d31a5a22 (diff) | |
download | spack-86d681be6e9506f8b048afc9f0a4087111926539.tar.gz spack-86d681be6e9506f8b048afc9f0a4087111926539.tar.bz2 spack-86d681be6e9506f8b048afc9f0a4087111926539.tar.xz spack-86d681be6e9506f8b048afc9f0a4087111926539.zip |
snappy: Update to 1.1.7 (#5477)
Convert to CMakePackage and add a pkg-config file (otherwise libmongoc's
pkg-config file does not contain all required flags).
-rw-r--r-- | var/spack/repos/builtin/packages/snappy/package.py | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/snappy/package.py b/var/spack/repos/builtin/packages/snappy/package.py index ce110344ff..ba13a90e5c 100644 --- a/var/spack/repos/builtin/packages/snappy/package.py +++ b/var/spack/repos/builtin/packages/snappy/package.py @@ -25,10 +25,26 @@ from spack import * -class Snappy(AutotoolsPackage): +class Snappy(CMakePackage): """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" + homepage = "https://github.com/google/snappy" + url = "https://github.com/google/snappy/archive/1.1.7.tar.gz" - version('1.1.3', '7358c82f133dc77798e4c2062a749b73') + version('1.1.7', 'ee9086291c9ae8deb4dac5e0b85bf54a') + + @run_after('install') + def install_pkgconfig(self): + mkdirp(self.prefix.lib.pkgconfig) + + with open(join_path(self.prefix.lib.pkgconfig, 'snappy.pc'), 'w') as f: + f.write('prefix={0}\n'.format(self.prefix)) + f.write('exec_prefix=${prefix}\n') + f.write('libdir={0}\n'.format(self.prefix.lib)) + f.write('includedir={0}\n'.format(self.prefix.include)) + f.write('\n') + f.write('Name: Snappy\n') + f.write('Description: A fast compressor/decompressor.\n') + f.write('Version: {0}\n'.format(self.spec.version)) + f.write('Cflags: -I${includedir}\n') + f.write('Libs: -L${libdir} -lsnappy\n') |