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

PortSystem      1.0

name            libodfgen
version         0.1.8
revision        0
maintainers     {gmail.com:rjvbertin @RJVB}
categories      textproc
license         LGPL-2+

description     libodfgen is a library for generating documents in Open Document Format (ODF).
                long_description ${description} It provides generator implementation for \
                the following libraries: \
                * libwpd (::WPXDocumentInterface): text documents \
                * libwpg (libwpg::WPGPaintInterface): vector drawings \
                * libetonyek (libetonyek::KEYPresentationInterface): presentations \
                As these APIs are used by multiple libraries, libodfgen can be used to \
                generate ODF from many sources.

homepage        https://libwpd.sourceforge.net
master_sites    sourceforge:project/libwpd/libodfgen/libodfgen-${version}

use_xz          yes

checksums       rmd160  945017380cfcc4858a0bc8eb380a2cd3a8a917ce \
                sha256  55200027fd46623b9bdddd38d275e7452d1b0ff8aeddcad6f9ae6dc25f610625 \
                size    386156

depends_build   path:bin/pkg-config:pkgconfig

depends_lib     port:libwpd-0.10 \
                port:libwpg-0.3

compiler.cxx_standard   2011

configure.args  --without-docs --disable-werror

variant docs description {Build API documentation} {
    depends_build-append    path:bin/doxygen:doxygen
    configure.args-delete   --without-docs
}

livecheck.regex /${name}-(\[0-9.\]+)${extract.suffix}
