# -*- 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 73821 2010-11-26 09:54:40Z afb@macports.org $

PortSystem          1.0
PortGroup           python26 1.0

name                py26-urlgrabber
version             3.9.1
revision            1
maintainers         stromnov openmaintainer

description         High-level cross-protocol url-grabber

long_description    Urlgrabber is a high-level cross-protocol url-grabber for python \
                    supporting HTTP, FTP and file locations. Features include keepalive, \
                    byte ranges, throttling, authentication, proxies and more.

platforms           darwin

homepage            http://urlgrabber.baseurl.org/
master_sites        http://urlgrabber.baseurl.org/download/
distname            urlgrabber-${version}

checksums           md5     00c8359bf71062d0946bacea521f80b4 \
                    sha1    937c7ad3177539c337d4010e0175b2c7bd874938 \
                    rmd160  377196ddb01f6cd4903e063e8e9cba40a0f80fff

depends_lib         port:py26-curl

post-patch {
    reinplace "s|/usr/bin/python|${python.bin}|g" ${worksrcpath}/scripts/urlgrabber
}

livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     "urlgrabber-(\\d+(?:\\.\\d+)*)${extract.suffix}"
