# $Id: Portfile 86877 2011-11-06 17:56:12Z ram@macports.org $

PortSystem        1.0
PortGroup         python 1.0

name              py-cjson
version           1.0.5
maintainers       ram openmaintainer
platforms         darwin
license           LGPL

description       Fast JSON encoder/decoder for Python
long_description  \
  This module implements a very fast JSON encoder/decoder for Python. \
  \
  JSON stands for JavaScript Object Notation and is a text based \
  lightweight data exchange format which is easy for humans to \
  read/write and for machines to parse/generate. JSON is \
  completely language independent and has multiple implementations \
  in most of the programming languages, making it ideal for data \
  exchange and storage. \
  \
  The module is written in C and it is up to 250 times faster when \
  compared to the other python JSON implementations which are written \
  directly in python. This speed gain varies with the complexity of \
  the data and the operation and is the the range of 10-200 times for \
  encoding operations and in the range of 100-250 times for decoding \
  operations.

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

python.default_version 27
python.versions   25 26 27

checksums         md5 4d55b66ecdf0300313af9d030d9644a3 \
                  sha1 a00519debfdc6dcc33acfe68dc10ee4866fdcd8b \
                  rmd160 c1256cf176af3194233de3704ec07ab4ccfb522c

if {${name} == ${subport}} {
  livecheck.type    regex
  livecheck.url     ${homepage}
  livecheck.regex   {python-cjson (\d+(?:\.\d+)*)}
} else {
  livecheck.type    none
}
