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

name                py-liblzma
version             0.5.3
revision            1
categories-append   archivers
platforms           darwin
maintainers         nomaintainer
license	            LGPL-3+

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

homepage            https://launchpad.net/pyliblzma
master_sites        pypi:p/pyliblzma/
use_bzip2           yes
distname            pyliblzma-${version}
checksums           sha256  08d762f36d5e59fb9bb0e22e000c300b21f97e35b713321ee504cfb442667957 \
                    rmd160  b9062beec2bc745ea4fa64aef04f081a33b3d79c \
                    size    43498

python.versions     27

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

    depends_lib-append \
                    port:xz

    patchfiles      pyliblzma-python23.diff

    livecheck.type  none
} else {
    livecheck.name  pyliblzma
}
