# -*- 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 76592 2011-03-01 15:44:19Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python26 1.0

name                py26-simplejson
version             2.1.3
categories-append   www
maintainers         nomaintainer
description         simplejson is a JSON encoder and decoder.
long_description    ${description}

platforms           darwin

homepage            http://undefined.org/python/#simplejson
master_sites        http://cheeseshop.python.org/packages/source/s/simplejson/
distname            simplejson-${version}

depends_lib         port:py26-distribute

checksums           md5     58d9b1d8fa17ea4ce205cea088607e02 \
                    sha1    ab9b677d1d14c9fd8283132ea1fe9cefcf1a67e3 \
                    rmd160  850b2a2bac644440043a8ad9756c9d9444ff0c17

post-destroot {
    xinstall -m 644 -W ${worksrcpath} \
        LICENSE.txt \
        ${destroot}${prefix}/share/doc/${name}
    foreach f [glob -directory ${worksrcpath}/docs *] {
        copy $f ${destroot}${prefix}/share/doc/${name}/[file tail $f]
    }
}

livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     {simplejson-([0-9.]+)\.tar\.gz}
