PortSystem          1.0
PortGroup           python 1.0

name                py-couchdb
version             0.9
categories          python www
license             BSD
platforms           darwin
supported_archs     noarch
maintainers         nomaintainer
homepage            https://code.google.com/p/couchdb-python/
description         Python library for working with CouchDB
long_description    Python library for working with CouchDB.  This package \
                    currently encompasses four primary modules: \
                    1) couchdb.client: the basic client library, \
                    2) couchdb.design: management of design documents, \
                    3) couchdb.schema: a higher-lever API for mapping between \
                       CouchDB documents and Python objects, \
                    4) couchdb.view: a CouchDB view server that allows \
                       writing view functions in Python

master_sites        pypi:C/CouchDB
distname            CouchDB-${version}
checksums           md5    67afd226fed4c641eeb13a9930d334f7 \
                    rmd160 f581679a63834890ac00d6d0dee89c13de24359e \
                    sha256 a1cf5071b5adb47048199bbfbaf1500e69c88b27afe14ba26efa0f4044c3baee

python.versions     27

if {${name} ne ${subport}} {
    # Use py-setuptools as a library dependency instead of a build
    # dependency because couchdb/__init__.py uses setuptools's
    # pkg_resources module.
    depends_lib-append  port:py${python.version}-cjson \
                        port:py${python.version}-httplib2 \
                        port:py${python.version}-setuptools
    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       https://pypi.python.org/pypi/CouchDB
    livecheck.regex     {CouchDB ([0-9]+\.[0-9]+(?:\.[0-9]+)?)}
}