# Authors:: Jack Perdue <j-perdue@tamu.edu> - TAMU HPRC - http://hprc.tamu.edu

easyblock = 'ConfigureMake'

name = 'CLISP'
version = '2.49'

homepage = 'http://www.clisp.org/'

description = """
 Common Lisp is a high-level, general-purpose, object-oriented, dynamic,
 functional programming language.
"""

toolchain = {'name': 'GCCcore', 'version': '6.4.0'}

source_urls = [GNU_SOURCE + '/release/%(version)s']
sources = [SOURCELOWER_TAR_BZ2]

patches = ['CLISP-%(version)s_fix-readline.patch']

checksums = [
    '8132ff353afaa70e6b19367a25ae3d5a43627279c25647c220641fed00f8e890',  # clisp-2.49.tar.bz2
    '903ca7367721e5bfe216fd8151659c4d127739311fac61f812e0031faec100ea',  # CLISP-2.49_fix-readline.patch
]


builddependencies = [
    ('binutils', '2.28'),
]

dependencies = [
    ('DB', '6.2.32'),
    ('libffcall', '1.13'),
    ('libreadline', '7.0'),
    ('libsigsegv', '2.11'),
    ('PCRE', '8.41'),
    ('zlib', '1.2.11'),
]

prebuildopts = "cd src && "
preinstallopts = prebuildopts

parallel = 1

sanity_check_paths = {
    'files': ['bin/clisp', 'lib/%(namelower)s-%(version)s/base/lisp.a'],
    'dirs': ['share/aclocal', 'share/doc'],
}

moduleclass = 'lang'
