# -*- 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

name                cpphs
version             1.20.9.1
revision            5
categories          devel haskell
maintainers         nomaintainer
license             GPL-3
platforms           macosx

description         A liberalised re-implementation of cpp, the C pre-processor.
long_description    Cpphs is a re-implementation of the C \
                    pre-processor that is both more compatible with \
                    Haskell, and itself written in Haskell so that it \
                    can be distributed with compilers.

homepage            http://projects.haskell.org/cpphs/

checksums           rmd160  96be359b6b9e8572124d137dcab90ee04632a0c7 \
                    sha256  7f59b10bc3374004cee3c04fa4ee4a1b90d0dca84a3d0e436d5861a1aa3b919f \
                    size    45496

installs_libs       no

variant stack \
    description {Use stack to build.} {}

if { [variant_isset "stack"] } {
    PortGroup       haskell_stack 1.0
} else {
    PortGroup       haskell_cabal 1.0

    depends_build-append \
                    port:alex \
                    port:cctools \
                    port:happy \
                    port:hscolour \
                    port:ld64 \
                    port:pkgconfig

    build.target    exe:${name}
}
