easyblock = 'ConfigureMake'

name = "Lmod"
version = "7.2.2"

homepage = "http://sourceforge.net/projects/lmod/"
description = """Lmod is a Lua based module system. Modules allow for dynamic modification
 of a user's environment under Unix systems. See www.tacc.utexas.edu/tacc-projects/lmod
 for a local_complete description. Lmod is a new implementation that easily handles the MODULEPATH
 Hierarchical problem. It is drop-in replacement for TCL/C modules and reads TCL modulefiles directly."""

toolchain = SYSTEM

sources = ['%(version)s.tar.gz']
source_urls = [
    'https://github.com/TACC/Lmod/archive',
    'http://sourceforge.net/projects/lmod/files/',
    'http://sourceforge.net/projects/lmod/files/Testing'
]

dependencies = [("Lua", "5.1.4-8")]

sanity_check_paths = {
    'files': [
        "lmod/%(version)s/libexec/lmod",
        "lmod/%(version)s/init/profile"],
    'dirs': []}

moduleclass = "tools"
