name = 'GHC'
version = '7.6.2'

homepage = 'http://www.haskell.org/ghc'
description = """GHC is the Glasgow Haskell Compiler."""
toolchain = {'name': 'goolf', 'version': '1.4.10'}

sources = ['%(namelower)s-%(version)s-src.tar.bz2']
source_urls = ['http://www.haskell.org/ghc/dist/%(version)s/']

dependencies = [
    ('GMP', '5.0.5'),
    ('zlib', '1.2.7'),
    ('ncurses', '5.9'),
]

builddependencies = [
    ('GHC', '7.4.2'),
    ('libxslt', '1.1.28'),
]

configopts = " --enable-error-on-warning=no"

sanity_check_paths = {
    'files': ["bin/%s" % x for x in ['ghc', 'ghc-%(version)s', 'ghci', 'ghci-%(version)s', 'ghc-pkg',
                                     'ghc-pkg-%(version)s', 'haddock', 'haddock-ghc-%(version)s',
                                     'hp2ps', 'hpc', 'hsc2hs', 'runghc', 'runghc-%(version)s',
                                     'runhaskell']],
    'dirs': [],
}

moduleclass = 'compiler'
