# $Id: Portfile 114324 2013-12-05 08:44:51Z ryandesign@macports.org $

PortSystem 1.0
PortGroup python 1.0

name			py-pullparser
version			0.0.6
categories-append	www
license			BSD
platforms		darwin
supported_archs	noarch
maintainers		nomaintainer
description		python module providing a simple pull API for HTML parsing
long_description	A simple "pull API" for HTML parsing, after Perl's \
				HTML::TokeParser. Many simple HTML parsing tasks are \
				simpler this way than with the HTMLParser module. \
				pullparser.PullParser is a subclass of \
				HTMLParser.HTMLParser.

homepage		http://wwwsearch.sourceforge.net/old/pullparser/
master_sites	${homepage}src/
distname		pullparser-${version}
checksums		md5 e7074a671ced63ca019d00e1a1b25ca4

python.versions	24

if {${name} ne ${subport}} {
    test.run		yes
    test.cmd		${python.bin}
    test.target		test.py

    post-destroot	{
        xinstall -m 644 -W ${worksrcpath} COPYING ChangeLog \
            INSTALL README.html README.txt \
            ${destroot}${prefix}/share/doc/${subport}
    }
}
