# -*- 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 118796 2014-04-11 00:14:47Z sean@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-lz4
version             0.6.1
license             BSD
maintainers         sean openmaintainer
description         LZ4 bindings for python
long_description    ${description} By Steeve Morin
platforms           darwin
supported_archs     noarch
homepage            http://pypi.python.org/pypi/lz4
master_sites        http://pypi.python.org/packages/source/l/lz4/
distname            lz4-${version}

checksums           rmd160  2e43d3028152a153d2e31ba923c09f327a09b64b \
                    sha256  590d1dca53b743e7fc38190fa674b20eea87d793a70910984ff58a6f6cf20160

python.versions     26 27

if {${name} ne ${subport}} {
    depends_build-append        port:py${python.version}-setuptools
    livecheck.type              none
} else {
    livecheck.type              regex
    livecheck.regex             {lz4/(\d+(?:\.\d+)*)}
}
