easyblock = 'ConfigureMake'

name = 'Rust'
version = '1.12.1'

homepage = 'https://www.rust-lang.org'
description = """Rust is a systems programming language that runs blazingly fast, prevents segfaults,
 and guarantees thread safety."""

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

source_urls = ['https://static.rust-lang.org/dist/']
sources = ['rustc-%(version)s-src.tar.gz']

builddependencies = [('Python', '2.7.12'), ('CMake', '3.6.2')]

sanity_check_paths = {
    'files': ['bin/rustc', 'bin/rustdoc'],
    'dirs': ['share/doc', 'share/man', 'lib/rustlib'],
}

moduleclass = 'lang'
