easyblock = 'ConfigureMake'

name = 'XZ'
version = '5.2.2'

homepage = 'http://tukaani.org/xz/'
description = "xz: XZ utilities"

toolchain = {'name': 'foss', 'version': '2016a'}

sources = [SOURCELOWER_TAR_BZ2]
source_urls = ['http://tukaani.org/xz/']

gettext_ver = '0.19.7'
versionsuffix = '-gettext-%s' % gettext_ver

builddependencies = [
    ('Autotools', '20150215'),
    ('gettext', gettext_ver, '', True),
]

# may become useful in non-x86 archs
# configopts = ' --disable-assembler '

sanity_check_paths = {
    'files': ["bin/xz", "bin/lzmainfo"],
    'dirs': []
}

moduleclass = 'tools'
