# $Id: Portfile 66539 2010-04-16 11:29:33Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python26 1.0
name                py26-pymongo
version             1.6
categories-append   databases
maintainers         nomaintainer
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     5281eedd759462a7414a9c07a19ce3b5 \
                    sha1    6ad81458c559416d730d3be126ab4c2f2f8240a0 \
                    rmd160  574d4d15e56a0ad4c7c06884e29f1e72c8c50498

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}
