# -*- 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 91412 2012-04-01 04:09:21Z dports@macports.org $

PortSystem        1.0
PortGroup         python 1.0

name              py-demjson
version           1.6
categories        python
license           LGPL-3+
platforms         darwin
maintainers       nomaintainer

python.versions         24 25 26 27
python.default_version  27

description       encoder, decoder, and validator for JSON compliant with RFC 4627
long_description  encoder, decoder, and lint/validator for JSON (JavaScript \
                  Object Notation) compliant with RFC 4627. This module \
                  provides classes and functions for encoding or decoding data \
                  represented in the language-neutral JSON format. This \
                  implementation tries to be as compliant to the JSON \
                  specification (RFC 4627) as possible, while still providing \
                  many optional extensions to allow less restrictive \
                  JavaScript syntax. It includes complete Unicode support, \
                  including UTF-32, BOM, and surrogate pair processing. It can \
                  also support JavaScript's NaN and Infinity numeric types as \
                  well as its 'undefined' type. It also includes a lint-like \
                  JSON syntax validator which tests JSON text for strict \
                  compliance to the standard.

homepage          http://deron.meranda.us/python/demjson/
master_sites      http://pypi.python.org/packages/source/d/demjson/
distname          demjson-${version}

checksums         rmd160  42dc86629d1be2ace32d562680786c678c09c1bd \
                  sha256  1d989c310e33569ecc178b8182e53bde8f748bf5ea10cfbc0e331f8c313f6e29

if {$subport != $name} {
    depends_build-append port:py${python.version}-distribute
}

livecheck.type    regex
livecheck.url     http://pypi.python.org/pypi/demjson/
livecheck.regex   "demjson-(\\d+(?:\\.\\d+)*)${extract.suffix}"
