# -*- 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
PortGroup           github 1.0

github.setup        msgpack msgpack-c 0.5.9 cpp-

name                msgpack
categories          devel
maintainers         hum openmaintainer

description         Library for a binary-based efficient data interchange format
long_description    MessagePack is a binary-based efficient data interchange \
                    format that is focused on high performance. \
                    It is like JSON, but very fast and small.

homepage            http://msgpack.org/
platforms           darwin
license             Apache-2

checksums           rmd160  c708651d37d62fa8e1fb18cadbce129fd838b777 \
                    sha256  edfe42e4a9199b9e6c05d421c087a0de8575d045cae88df0873ed9158a9494e0

conflicts           port:msgpack1

depends_build       port:autoconf port:automake port:libtool

pre-configure {
    system -W ${worksrcpath} "./bootstrap"
}

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 644 -W ${worksrcpath} \
        AUTHORS COPYING ChangeLog LICENSE NOTICE README README.md \
        ${destroot}${docdir}
}

livecheck.regex     archive/[join ${github.tag_prefix} ""](0\[^"\]+)${extract.suffix}