easyblock = 'ConfigureMake'

name = 'M4'
version = '1.4.16'

homepage = 'http://www.gnu.org/software/m4/m4.html'
description = """GNU M4 is an implementation of the traditional Unix macro processor.
It is mostly SVR4 compatible although it has some extensions 
(for example, handling more than 9 positional parameters to macros).
GNU M4 also has built-in functions for including files, running shell commands, doing arithmetic, etc.
"""

toolchain = {'name': 'GCC', 'version': '4.8.1'}

source_urls = [GNU_SOURCE]
sources = [SOURCELOWER_TAR_GZ]
patches = ['M4-%(version)s-no-gets.patch']
checksums = [
    'e9176a35bb13a1b08482359aa554ee8072794f58f00e4827bf0e06b570c827da',  # m4-1.4.16.tar.gz
    '7c223ab254e9ba2d8ad5dc427889b5ad37304917c178ed541b8b95e24d9ee8d5',  # M4-1.4.16-no-gets.patch
]

configopts = "--enable-cxx"

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

moduleclass = 'devel'
