##
# This file is an EasyBuild reciPY as per https://github.com/easybuilders/easybuild
#
##

easyblock = 'ConfigureMake'

name = 'bc'
version = '1.06.95'

homepage = 'https://www.gnu.org/software/bc/'
description = """bc is an arbitrary precision numeric processing language."""

source_urls = ['http://alpha.gnu.org/gnu/bc/']
sources = [SOURCELOWER_TAR_BZ2]

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

dependencies = [
    ('libreadline', '6.3'),
    ('flex', '2.5.38'),
    ('Bison', '3.0.2'),
]
builddependencies = [
    ('texinfo', '5.2'),
]

configopts = ['--with-readline']

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

moduleclass = 'system'
