# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 68455 2010-06-03 21:16:06Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python26 1.0

name                py26-pylibmc
version             1.1
maintainers         openmaintainer voldmar.ru:voldmar
description         python memcached client wrapped on libmemcached
long_description    pylibmc is a Python wrapper around the accompanying \
                    C Python extension _pylibmc, which is a wrapper around \
                    libmemcached from TangentOrg
platforms           darwin
homepage            http://pypi.python.org/pypi/pylibmc
master_sites        http://pypi.python.org/packages/source/p/pylibmc/
distname            pylibmc-${version}

checksums           md5     f418ccb0e3b753d1304e618b6a688176 \
                    sha1    0ff1e143dfc78c5497148cad390d8aa4d6da896b \
                    rmd160  e5c91e0438e8bb8426f36936e6b8d9a86d2dbaf3

depends_lib-append  port:libmemcached

build.target        build_ext
build.args          --with-libmemcached=${prefix}

post-destroot {
    xinstall -m 644 -W ${worksrcpath} \
         LICENSE README.rst pooling.rst tests.py \
         ${destroot}${prefix}/share/doc/${name}
}

livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     pylibmc-(\\d+(?:\\.\\d+)*)${extract.suffix}
