# -*- 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 104496 2013-03-26 07:42:04Z larryv@macports.org $

PortSystem              1.0
PortGroup               haskell 1.0

haskell.setup           vty 4.2.1.0
revision                1
platforms               darwin
license                 BSD
maintainers             nomaintainer

description             A simple terminal UI 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.

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}
