# -*- 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 92909 2012-05-10 15:37:57Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-pymongo
version             2.2
revision            0
categories-append   databases
license             Apache
platforms           darwin

maintainers         stromnov openmaintainer

description         Python access to mongodb
long_description \
        The PyMongo distribution contains tools for interacting with \
        the Mongo database from Python.

homepage            http://www.mongodb.org/
master_sites        http://pypi.python.org/packages/source/p/pymongo/

distname            pymongo-${version}

checksums           rmd160  ca4e74a325691c98dd06d90fd9bc6b4471a44cd5 \
                    sha256  ac7952896ecfd5d9b4b9d8bb0077c95a0296ea21374df85e2ca32c237c0be57f

python.versions     25 26 27
python.default_version  27

if {$subport != $name} {
    depends_build-append    port:py${python.version}-distribute
    post-destroot {
        xinstall -m 755 -d ${destroot}${python.prefix}/share/doc/${subport}
        xinstall -m 644 -W ${worksrcpath} README.rst \
            ${destroot}${python.prefix}/share/doc/${subport}
    }
}

livecheck.url       [lindex ${master_sites} 0]
livecheck.regex     {pymongo-([.\d]+)\.tar\.gz}
