# $Id: Portfile 102584 2013-02-05 04:25:13Z larryv@macports.org $

PortSystem 1.0
PortGroup python 1.0

name			py-lzma
version			0.0.3
revision		1
categories-append	archivers
license			LGPL-2.1+
platforms		darwin
maintainers		nomaintainer
description		Python bindings for the LZMA compression library.
long_description	${description}

homepage		http://www.joachim-bauch.de/projects/python/pylzma/
master_sites	freebsd
distname		pylzma-${version}
checksums		md5 312416b2cdf6f4b82ec8fc7a816f74a4

python.versions	24

if {$subport != $name} {
    test.run		no
    test.dir		${worksrcpath}/tests
    test.cmd		"ln -s ../build/lib*/pylzma.so && ln -s ../build/lib*/py7zlib.py . && ${python.bin} testall.py"
    test.target

    post-destroot	{
        xinstall -m 644 -W ${worksrcpath} LICENSE.txt readme.txt version.txt \
            ${destroot}${prefix}/share/doc/${subport}
    }
}
