# 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 = ['ftp://ftp.gnu.org/pub/gnu/%(namelower)s/release/%(version)s']
sources = [SOURCELOWER_TAR_BZ2]
checksums = ['8132ff353afaa70e6b19367a25ae3d5a43627279c25647c220641fed00f8e890']

# from: https://sourceforge.net/p/clisp/bugs/688/
patches = ['patch-modules_readline_readline.lisp']

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 = """
    cd src
"""

parallel = 1

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

moduleclass = 'lang'
