# IT4Innovations 2019

name = 'OCaml'
version = '4.09.0'

homepage = 'http://ocaml.org/'
description = """OCaml is a general purpose industrial-strength programming language
 with an emphasis on expressiveness and safety. Developed for more than 20 years at Inria
 it benefits from one of the most advanced type systems and supports functional,
 imperative and object-oriented styles of programming."""

toolchain =  SYSTEM

local_opam_ver = '2.0.3'
source_urls = [
    'http://caml.inria.fr/pub/distrib/ocaml-%s' % '.'.join(version.split('.')[:2]),
    'https://github.com/ocaml/opam/releases/download/%s' % local_opam_ver,
]
sources = [
    SOURCELOWER_TAR_GZ,
    'opam-full-%s.tar.gz' % local_opam_ver,
]

builddependencies = [
    ('Autotools', '20180311', '', True)
]

dependencies = [
    ('ncurses', '6.1', '', True),
    ('libreadline', '7.0', '', True),
    ('GSL', '2.5', '', True),
]

# parallel build tends to break
parallel = 1

# handled by OPAM, order matters!
# see https://opam.ocaml.org/packages
exts_list = [
    ('ocamlfind', '1.8.0',),
    ('batteries', '2.9.0',),
    ('ocaml-twt', '0.94.0',),
    ('gsl', '1.24.0',),
]

moduleclass = 'lang'