# $Id: Portfile 107434 2013-06-29 08:06:06Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-couchdbkit
version             0.2.1
categories          python www
platforms           darwin
maintainers         blair
homepage            http://couchdbkit.org/
description         Python library for working with CouchDB
long_description    Couchdbkit provides you a full featured and easy client \
                    to access and manage CouchDB.  It allow you to manage a \
                    CouchDB server, databases, doc managements and view \
                    access.  All objects mostly reflect python objects for \
                    convenience.  Server and databases objects could be used \
                    for example as easy as using a dict.

master_sites        https://pypi.python.org/packages/source/c/couchdbkit
distname            couchdbkit-${version}
checksums           md5 76f5a90bfc7b91f65079e76edcd54c5b \
                    sha1 df1ef7a0836d4f4988e36bd268bb32c6acd38c0e \
                    rmd160 bc80ddb3eb02c16b9b9cc5c8b810d61616f4d382

python.versions     25 26

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

    post-destroot {
        delete ${destroot}${python.pkgd}/tests
    }
    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       https://pypi.python.org/pypi/couchdbkit
    livecheck.regex     {couchdbkit ([0-9]+\.[0-9]+(?:\.[0-9]+)?)}
}
