# -*- 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$

PortSystem          1.0

name                jansson
version             2.9
revision            0
categories          devel
platforms           darwin
license             MIT

maintainers         stromnov openmaintainer

description         C library for encoding, decoding and manipulating JSON data.
long_description    ${description}

homepage            http://www.digip.org/jansson/
master_sites        http://www.digip.org/jansson/releases/

checksums           rmd160  5c4bd7bcf4fc75b8166b43d7fc8588a624f1504b \
                    sha256  0ad0d074ca049a36637e7abef755d40849ad73e926b93914ce294927b97bd2a5

post-destroot {
    set docdir ${destroot}${prefix}/share/doc/${subport}
    xinstall -d ${docdir}
    eval xinstall -m 644 [glob ${worksrcpath}/doc/*.rst] ${docdir}
}

livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     {jansson-(\d+(?:\.\d+)*)\.[tz]}