# -*- 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 106911 2013-06-11 14:40:14Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-pylzma
version             0.4.4
categories-append   archivers
license             LGPL-2.1+
platforms           darwin

maintainers         stromnov openmaintainer

description         Python bindings for the LZMA compression library.
long_description    ${description}

homepage            http://www.joachim-bauch.de/projects/pylzma/
master_sites        http://pypi.python.org/packages/source/p/pylzma/
distname            pylzma-${version}

checksums           md5     a2be89cb2288174ebb18bec68fa559fb \
                    sha1    703818c6bbba96dd843b583c3725b07f64ed6e73 \
                    rmd160  a57c7e6a145cd19424b9bbb0ce4da4d20439ada3

python.versions     26

if {$subport != $name} {
    depends_build-append \
                        port:py${python.version}-setuptools

    post-destroot {
        xinstall -m 644 -W ${worksrcpath} LICENSE.txt readme.txt doc/usage.txt \
            ${destroot}${prefix}/share/doc/${subport}
    }
    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${master_sites}
    livecheck.regex     pylzma-(\\d+(\\.\\d+)+)${extract.suffix}
}
