# -*- 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
PortGroup           python 1.0
PortGroup           github 1.0

github.setup        urwid urwid 2.0.1 release-
name                py-${name}
revision            0

platforms           darwin
license             LGPL-2.1+
maintainers         nomaintainer

description	        curses-based UI/widget library for Python
long_description    \
    Urwid is a curses-based UI/widget library for Python. It features fluid \
    interface resizing, multiple text layout options, simple markup for \
    attributes, powerful scrolling list boxes and flexible edit boxes.

homepage            http://urwid.org/

checksums           rmd160  35600850053629027be799fa0297a0a3b162063a \
                    sha256  870fa60cb4cc7403be2e5e0d99e04dbe71183a036a6df630146827e64114c951 \
                    size    588040

python.versions     27 35 36 37 38 39

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-setuptools

    test.run        yes

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}/examples
        #xinstall -m 644 ${worksrcpath}/reference.html \
        #    ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath}/examples \
            browse.py calc.py edit.py fib.py tour.py \
            ${destroot}${docdir}/examples
    }

    livecheck.type  none
}
