# $Id: Portfile 102584 2013-02-05 04:25:13Z larryv@macports.org $

PortSystem 1.0
PortGroup python 1.0

name			py-weblib
version			1.3.4
categories-append	www
license			GPL-2
platforms		darwin freebsd
supported_archs	noarch
maintainers		nomaintainer
description		Python web application library
long_description	Python web application library handling FORM input, \
				sessions, SSL-related environment variables and some \
				basic HTTP functions.

homepage		http://www.stroeder.com/pylib/PyWebLib
master_sites	${homepage}/download/ http://distfiles.macports.org/python
distname		pyweblib-${version}
checksums		md5 762492fb70db7d044e7dc2a420c4f075 \
                sha1 c2839936cc272a5299a5e196bacf536d06b3d7a3 \
                rmd160 4c219f7c5ecacb43324ff86ccd25f3712c685ec9

python.versions	24

if {$subport != $name} {
    post-destroot	{
        xinstall -m 644 ${worksrcpath}/CHANGES \
            ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 644 -W ${worksrcpath}/htdocs/pydoc pyweblib.forms.html \
            pyweblib.helper.html pyweblib.html pyweblib.httphelper.html \
            pyweblib.session.html pyweblib.sslenv.html \
            ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 644 -W ${worksrcpath}/cgi-bin test-forms.py \
            test-session.py ${destroot}${prefix}/share/doc/${subport}/examples
    }
}
