# -*- 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 65908 2010-04-02 22:28:17Z jmr@macports.org $

PortSystem          1.0
PortGroup           python26 1.0

name                py26-simplejson
version             2.1.1
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     0bbe3a2e5e4cac040013733aca159d89 \
                    sha1    106fe3481c9a3a9488cbe7d212eca7671837783f \
                    rmd160  7cb7b2b5052bf09ae5010d6d96cba28ebd490aac

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}
