# -*- 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 107073 2013-06-17 20:28:37Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0
PortGroup           github 1.0

github.setup        webpy webpy 0.37 webpy-
name                py-webpy
license             Public-domain BSD
categories-append   www
platforms           darwin
supported_archs     noarch
maintainers         nomaintainer
description         web.py is a web framework for Python that is as simple as it is powerful
long_description    $description

checksums           sha1    8102aee9a21f6a57dafce46f877b0407624b6f85 \
                    rmd160  99e5194bb60a95601259c5ad1e0ac61fb16570bf \
                    sha256  0cd5aeea3aef4fceb172470511c0ad54a2780e0f9e82be4c594dc089cce99944

python.versions     25 26 27

if {${subport} != ${name}} {
    post-destroot   {
        xinstall -m 644 -W ${worksrcpath} ChangeLog.txt LICENSE.txt README.md \
            ${destroot}${prefix}/share/doc/${subport}

        xinstall -m 755 -d ${destroot}${prefix}/share/${subport}
        file copy ${worksrcpath}/experimental ${worksrcpath}/test ${worksrcpath}/tools ${destroot}${prefix}/share/${subport}
    }
    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       http://webpy.org
    livecheck.regex     "web.py (\[0-9\.\]+) is the latest released version of web.py"
}
