easyblock = 'ConfigureMake'

name = 'Bison'
version = '2.5'

homepage = 'http://www.gnu.org/software/bison'
description = """Bison is a general-purpose parser generator that converts an annotated context-free grammar
 into a deterministic LR or generalized LR (GLR) parser employing LALR(1) parser tables."""

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

source_urls = [GNU_SOURCE]
sources = [SOURCELOWER_TAR_GZ]
patches = ['Bison-%(version)s_fix-gets.patch']
checksums = [
    '722def46e4a19a5b7a579ef30db1965f86c37c1a20a5f0113743a2e4399f7c99',  # bison-2.5.tar.gz
    'a048873fe6491e7c97bb380e9df5e6869089719166a4d73424edd00628b830b2',  # Bison-2.5_fix-gets.patch
]

builddependencies = [('M4', '1.4.16')]

sanity_check_paths = {
    'files': ["bin/%s" % x for x in ["bison", "yacc"]] + ["lib/liby.a"],
    'dirs': [],
}

moduleclass = 'lang'
