# -*- 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                hscolour
version             1.25
revision            1
categories          devel haskell
maintainers         nomaintainer
license             GPL-3
platforms           macosx
homepage            http://hackage.haskell.org/package/hscolour

description         A small Haskell script to colourise Haskell code

long_description    {*}${description}. It currently has six output \
                    formats: ANSI terminal codes (optionally \
                    XTerm-256colour codes), HTML 3.2 with font tags, \
                    HTML 4.01 with CSS, HTML 4.01 with CSS and \
                    mouseover annotations, XHTML 1.0 with inline CSS \
                    styling, LaTeX, and mIRC chat codes.

checksums           rmd160  1ed500fab6a2dc25421c401a2cd0824816ffd1cf \
                    sha256  54ce30da55599e872fd38d927aa518369e2971b284acc67ed0caac6ae14cc77c \
                    size    28695

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

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

    variant haskell_cabal_use_prebuilt \
        description {Use prebuilt cabal and ghc. This is a necessary\
            default variant because HsColour is used to bootstrap ghc\
            and ghc is used to bootstrap cabal.} {
        haskell_cabal.use_prebuilt  yes
    }
    default_variants-append \
                    +haskell_cabal_use_prebuilt

    build.post_args-append \
                    --bindir=${prefix}/bin \
                    --datadir=${prefix}/share/${name}
}
