# -*- 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
# $Id: Portfile 106826 2013-06-09 00:10:53Z cal@macports.org $

PortSystem          1.0
PortGroup           haskell 1.0

haskell.setup       cpphs 1.16
checksums           rmd160  4b8d10b9f52e8bcbc2fa35c398fd853cce37af71 \
                    sha256  b7562ee6dd504f210a363c6bb7ea542e67f0a6ad75aca66080e66801870e69bb

license             LGPL
platforms           darwin
maintainers         nomaintainer

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.

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