PortSystem			1.0
PortGroup			python 1.0

name				py-harvestman
version				1.4
revision			1
categories-append	www
license				GPL-2
maintainers			nomaintainer
description			Web crawler
long_description \
	HARVESTMan is an internet offline crawler (robot) program written in \
	python. It helps you to grab pages from the internet and store it in a \
	local directory for offline browsing.

platforms			darwin
supported_archs		noarch

homepage			http://harvestman.freezope.org/
master_sites		http://download.berlios.de/harvestman/
distname			HarvestMan-${version}
use_bzip2			yes

checksums			md5 d1f921a6e045fbe9230fae467be5e9f2 \
					sha1 3642060d1f61e8033c56e089e26b91f4dee5050d

python.versions		27

if {${name} ne ${subport}} {
    depends_lib-append	port:py${python.version}-sgmlop

    patchfiles			patch-setup.py

    post-destroot {
        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 644 -W ${worksrcpath} INSTALL.txt LICENSE.txt Readme.txt \
            ${destroot}${prefix}/share/doc/${subport}
        file copy {*}[glob ${worksrcpath}/doc/*] \
            ${destroot}${prefix}/share/doc/${subport}
    }
}