# -*- 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 130859 2015-01-02 22:34:12Z larryv@macports.org $

PortSystem          1.0
PortGroup python    1.0

name                py-url
version             0.15.1
revision            1
license             MIT
platforms           darwin freebsd
maintainers         nomaintainer

description         RFC2396 compliant Python implementation of URLs
long_description    This Python module contains an RFC2396 compliant \
                    implementation of URLs (see the class URL) and file \
                    like classes for reading data from URLs and writing \
                    data to URLs

homepage            http://www.livinglogic.de/Python/url/
master_sites        http://ftp.livinglogic.de/url/
distname            ll-url-${version}
use_bzip2           yes

checksums           md5     ffa18a0ba9512b0d32c3331241c9e751

python.versions	    27

if {${name} ne ${subport}} {
    post-destroot	{
        xinstall -m 644 -W ${worksrcpath} HOWTO INSTALL NEWS README \
            ${destroot}${prefix}/share/doc/${subport}
    }
    livecheck.type	none
} else {
    livecheck.type  regex
    livecheck.url   ${master_sites}
    livecheck.regex {"ll-url-([0-9\.]+).tar.gz"}
}
