# -*- 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 88973 2012-01-15 17:09:46Z phw@macports.org $

PortSystem 1.0
PortGroup python 1.0

name			py-urwid
version			1.0.1
platforms		darwin
license			LGPL-2.1+
maintainers		phw openmaintainer
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://excess.org/urwid/
master_sites	${homepage}
distname		urwid-${version}

checksums           sha1    c3b53d07e14f35c6b30441dc971c6b5b02176c77 \
                    rmd160  d362f83e73c164e8bc02b5851986394114c4faae

python.versions 24 25 26 27 31 32

if {$subport != $name} {
    post-destroot {
        xinstall -m 644 ${worksrcpath}/reference.html \
            ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 644 -W ${worksrcpath} browse.py calc.py edit.py fib.py tour.py \
            ${destroot}${prefix}/share/doc/${subport}/examples
    }
}

livecheck.type  regex
livecheck.regex {urwid-([0-9.]+)\.tar}
