# -*- 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 73263 2010-11-08 09:12:02Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python26 1.0

name                py26-pylibmc
version             1.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     e43c54e285f8d937a3f1a916256ecc85 \
                    sha1    1edc5af1b8e5f75b4c410443eb3da92cb13f72c6 \
                    rmd160  60951af4be595c1ad2da9b1cb132d2e833adf52c

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}
