# $Id: Portfile,v 1.3 2004/12/28 11:34:58 mww Exp $

PortSystem 1.0
PortGroup python24 1.0

name			py-weblib
version			1.3.1
revision		1
categories		python www
platforms		darwin freebsd
maintainers		mww@opendarwin.org
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 75ad0dfd2fd9a6f03fcfb363e70c17c7

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
}
