# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           haskell 1.0

haskell.setup       c2hs 0.16.5 ghc no
revision            3
checksums           rmd160  71d8809a6ed56cffd17bc2bb3f4d3ec95d13eec4 \
                    sha256  1e55b42f1648fbbee290d9316fa7954b40e3b27e33707cdcb8c7e763effd04a6

maintainers         nomaintainer
platforms           darwin
license             GPL-2+

description         C->Haskell FFI tool that gives some cross-language type safety
long_description    \
    C->Haskell assists in the development of Haskell bindings to C libraries. \
    It extracts interface information from C header files and generates Haskell \
    code with foreign imports and marshaling. Unlike writing foreign imports by \
    hand (or using hsch2s), this ensures that C functions are imported with the \
    correct Haskell types.

depends_lib-append  port:hs-language-c

pre-activate {
    # deactivate hack added 2013-06-09
    if {![catch {set installed [lindex [registry_active c2hs] 0]}]} {
        # this port used to be called c2hs
        registry_deactivate_composite c2hs "" [list ports_nodepcheck 1]
    }
}