# -*- 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                libmspub
version             0.1.2
categories          graphics
license             {GPL-2.1+ LGPL-2.1+ MPL-1.1+}
maintainers         zip.com.au:cbradney openmaintainer
platforms           darwin
homepage            https://wiki.documentfoundation.org/DLP/Libraries/${name}
master_sites        http://dev-www.libreoffice.org/src/${name}

description         libmspub is a library and a set of tools for reading and converting binary files \
                    produced by Microsoft Publisher.

long_description    ${description}

use_xz              yes

checksums           rmd160  d7b57b74503fab484d694042af109febaec57bb4 \
                    sha256  b0baabf82d20c08ad000e80fa02154ce2f2ffde1ee60240d6e3a917c3b35560f

depends_build       port:pkgconfig

depends_lib         port:librevenge \
                    port:boost \
                    port:icu \
                    port:zlib

configure.args      --disable-werror \
                    --disable-silent-rules \
                    --without-docs

variant docs description {Build API documentation} {
    depends_build-append  port:doxygen
    configure.args-replace --without-docs --with-docs
}

livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"