# -*- 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.1.2 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  4d8666717bee9d9fdabcc1c7b551ff583a28e307 \
                    sha256  c21112c3c524110dd5cad78f7987a9fe0c57a66b756e1e0385e572b946ec86d1 \
                    size    607749

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
}
