# $Id: Portfile 74083 2010-12-04 19:36:33Z blair@macports.org $

PortSystem          1.0
PortGroup           python26 1.0

name                py26-anyjson
version             0.3
categories          python www
platforms           darwin
maintainers         blair
homepage            http://bitbucket.org/runeh/anyjson/
description         Wrap the best available JSON implementation in a common API
long_description    Anyjson wraps the best available JSON implementation \
                    in a common interface.  Anyjson loads whichever is the \
                    fastest JSON module installed and provides a uniform API \
                    regardless of which JSON implementation is used.

master_sites        http://pypi.python.org/packages/source/a/anyjson
distname            anyjson-${version}
checksums           md5     28124eeb1a96e6631ae67bcb7a30ef48 \
                    sha1    033847e68c8fe9518bc4bcafddc83d472fbc8842 \
                    rmd160  8fe112ffb412b8054c8504ce21632a12855856ea

depends_build-append port:py26-distribute

# Depend upon cjson so that the best JSON module can be used.
depends_lib-append  port:py26-cjson

livecheck.type      regex
livecheck.url       http://pypi.python.org/pypi/anyjson
livecheck.regex     {anyjson ([0-9]+\.[0-9]+(?:\.[0-9]+)?)}
