easyblock = 'ConfigureMake'

name = 'snappy'
version = '1.1.2'

# snappy was migrated from code.google.com to github.com and this commit
# corresponds to release 1.1.2 (which they haven't tagged).
# see https://github.com/google/snappy/commit/1ff9be9
commit = '1ff9be9'

homepage = 'http://code.google.com/p/snappy/'
description = """Snappy is a compression/decompression library. It does not aim
for maximum compression, or compatibility with any other compression library;
instead, it aims for very high speeds and reasonable compression."""

toolchain = {'name': 'GCC', 'version': '4.9.2'}

source_urls = ['https://github.com/google/snappy/archive']
sources = ['%s.tar.gz' % commit]

preconfigopts = "./autogen.sh && "

sanity_check_paths = {
    'files': ['lib/libsnappy.%s' % SHLIB_EXT],
    'dirs': ['include', 'share']
}

moduleclass = 'lib'
