# $Id: Portfile 34407 2008-02-23 15:22:57Z jmr@macports.org $

PortSystem 1.0
PortGroup python24 1.0

name			py-weblib
version			1.3.4
categories		python www
platforms		darwin freebsd
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/
distname		pyweblib-${version}
checksums		md5 762492fb70db7d044e7dc2a420c4f075 \
                sha1 c2839936cc272a5299a5e196bacf536d06b3d7a3 \
                rmd160 4c219f7c5ecacb43324ff86ccd25f3712c685ec9

post-destroot	{
	xinstall -m 644 ${worksrcpath}/CHANGES \
		${destroot}${prefix}/share/doc/${name}
	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/${name}
	xinstall -m 644 -W ${worksrcpath}/cgi-bin test-forms.py \
		test-session.py ${destroot}${prefix}/share/doc/${name}/examples
}
