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

PortSystem 1.0
PortGroup python 1.0

name			py-url
version			0.15.1
revision		1
license			MIT
platforms		darwin freebsd
maintainers		phw openmaintainer
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}
checksums       md5     ffa18a0ba9512b0d32c3331241c9e751
use_bzip2		yes

python.versions	24

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"}
}
