# $Id: Portfile 56441 2009-08-27 20:00:18Z blb@macports.org $

PortSystem          1.0
PortGroup           python25 1.0
name                py25-pymongo
version             0.15
categories-append   databases
maintainers         blb openmaintainer
description         Python access to mongodb
long_description \
   The PyMongo distribution contains tools for interacting with the Mongo \
   database from Python.

platforms           darwin

homepage            http://www.mongodb.org/
master_sites        http://pypi.python.org/packages/source/p/pymongo/
distname            pymongo-${version}

checksums           md5     d9b8e28dcd735cadab1c0d3664d90988 \
                    sha1    8bbcc91dfa3668ad04c6dff35f593dcc0de8ed1d \
                    rmd160  e3045c078eabb853952a15be3ba4b131baa452f7

post-destroot {
   xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
   xinstall -m 644 -W ${worksrcpath} README.rst \
      ${destroot}${prefix}/share/doc/${name}
}

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

