# -*- 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

PortSystem          1.0
PortGroup           python 1.0
PortGroup           deprecated 1.0

name                py-harvestman
version             1.4
revision            1

categories-append   www
platforms           darwin
supported_archs     noarch
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.

homepage            https://web.archive.org/web/20070329050324/http://harvestman.freezope.org/
master_sites        macports_distfiles
distname            HarvestMan-${version}
use_bzip2           yes

checksums           md5     d1f921a6e045fbe9230fae467be5e9f2 \
                    sha1    3642060d1f61e8033c56e089e26b91f4dee5050d \
                    rmd160  909d546fda6e796ea6eaac27db0c04d22f278e3a \
                    sha256  38e92efbf7bd0046fe32a1cbf42f512de04ae3e0906905fc7c9f5a90b7a8fd1a \
                    size    532912

deprecated.upstream_support no
livecheck.type      none
python.versions     27

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

    patchfiles      patch-setup.py

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