easyblock = 'ConfigureMake'

name = 'ANTLR'
version = '2.7.7'

homepage = "http://www.antlr2.org"
description = """ANother Tool for Language Recognition"""

toolchain = {'name': 'ictce', 'version': '5.4.0'}

source_urls = ['http://www.antlr2.org/download']
sources = [SOURCELOWER_TAR_GZ]

patches = ['ANTLR-%(version)s_cpp-headers.patch']

dependencies = [('Java', '1.7.0_60', '', True)]

configopts = "--disable-examples --disable-csharp"

sanity_check_paths = {
    'files': ['bin/antlr'],
    'dirs': [],
}

moduleclass = 'lang'
