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

name                zathura-plugin-djvu
version             0.2.8
categories          office
maintainers         nomaintainer
license             zlib

description         The zathura-djvu plugin adds DjVu support to zathura.

long_description    The zathura-djvu plugin adds DjVu support to zathura by \
                    using the djvulibre library.

homepage            https://git.pwmt.org/pwmt/zathura-djvu
master_sites        ${homepage}/-/archive/${version}
distname            zathura-djvu-${version}

checksums           rmd160  e1a92f743053fe8c68ae9648f46e8b4748d8d21b \
                    sha256  58325958b5aecc4f7cd8281b564aadeea151fafd1de84e4fa269932f96a3a776 \
                    size    9759

depends_build-append \
                    path:bin/pkg-config:pkgconfig

depends_lib         port:desktop-file-utils \
                    port:djvulibre \
                    path:lib/libgirara-gtk3.dylib:girara \
                    path:bin/zathura:zathura

# blacklist compilers that don't support -std=c11
compiler.blacklist  *gcc* {clang < 300}

post-activate {
    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
}

livecheck.type      regex
livecheck.url       ${homepage}/tags
livecheck.regex     zathura-djvu-(\[0-9.\]+)[quotemeta ${extract.suffix}]
