# $Id: Portfile 65054 2010-03-20 14:24:58Z nox@macports.org $

PortSystem      1.0
PortGroup       haskell 1.0

haskell.setup   vty 4.2.1.0
platforms       darwin
categories      devel
maintainers     nox openmaintainer
description     A simple terminal access library

long_description \
    vty is terminal GUI library in the niche of ncurses. It is intended to be \
    easy to use, have no confusing corner cases, and good support for common \
    terminal types. Notable infelicities: sometimes poor efficiency, assumes \
    UTF-8 character encoding support by the terminal.

checksums       md5     3479f1dddaed2db2c8db51a430454f2a \
                sha1    724f66bd88decf3015ba0411784c110cb09be9e4 \
                rmd160  04b5e6105b0197db22ca5fb3e2a0ab01c7ded67d

post-patch {
    reinplace {s/vector-space >= 0\.5 && < 0\.6/vector-space >= 0.5 \&\& < 0.7/} \
        ${worksrcpath}/vty.cabal
}

depends_build-append \
    port:hs-parsec \
    port:hs-terminfo \
    port:hs-utf8-string \
    port:hs-vector-space

configure.args-append \
    --docdir=${prefix}/share/doc/${name}

universal_variant no
