# -*- 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 85518 2011-10-14 05:03:41Z jmr@macports.org $

PortSystem 1.0
PortGroup python24 1.0

name                py-clientform
version             0.2.9
categories          python www
platforms           darwin
maintainers         openmaintainer akitada
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

depends_build       port:py24-distribute

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]
    }
}
