# -*- 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.7
revision        0
maintainers     {gmail.com:rjvbertin @RJVB}
categories      textproc
platforms       darwin
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        http://libwpd.sourceforge.net/
master_sites    sourceforge:project/libwpd/libodfgen/libodfgen-${version}

use_xz          yes

checksums       rmd160  b65e5504731bd0d24e411eb44c6371658c9f42f8 \
                sha256  323e491f956c8ca2abb12c998e350670930a32317bf9662b0615dd4b3922b831 \
                size    384760

depends_build   port: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}
