# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- 
# $Id: Portfile 62001 2009-12-27 13:48:29Z krischik@macports.org $
# vim: set fileencoding=utf-8 tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab filetype=tcl :

PortSystem	    1.0
PortGroup python26  1.0

name		    py26-clientform
version		    0.2.9
categories	    python www
platforms	    darwin
maintainers	    openmaintainer krischik
description	    python module for handling HTML forms
long_description    ClientForm is a Python module for handling HTML forms \
		    on the client side, useful for parsing HTML forms, \
		    filling them in and returning the completed forms to \
		    the server.

homepage	    http://wwwsearch.sourceforge.net/ClientForm/
master_sites	    ${homepage}/src/
distname	    ClientForm-${version}
checksums	    md5 21e68d52cc5939ab3345b97e09f0a25a \
		    sha1 ab07cf5bc293ffa1676bb7f4c5c756cb2907d782 \
		    rmd160 f82975f171ef3c673d78fa08f7ade3205a0cc87a

test.run	    yes
test.cmd	    ${python.bin}
test.target	    test.py

post-destroot {
    foreach f [glob -directory ${worksrcpath}/ *.txt *.html] {
	copy $f ${destroot}${prefix}/share/doc/${name}/[file tail $f]
    }
    foreach f [glob -directory ${worksrcpath}/examples *] {
	copy $f ${destroot}${prefix}/share/doc/${name}/examples/[file tail $f]
    }
}
