# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           meson 1.0
PortGroup           yelp 1.0

name                gnome-dictionary
version             3.26.1
license             GPL-2 GFDL-1.1 LGPL-2.1
set branch          [join [lrange [split ${version} .] 0 1] .]
description         GNOME dictionary application.
long_description    GNOME Dictionary can look for the definition or translation \
                    of a word in existing databases over the Internet.

maintainers         {devans @dbevans} openmaintainer
categories          gnome
homepage            https://www.gnome.org
master_sites        gnome:sources/${name}/${branch}/

use_xz              yes

checksums           rmd160  2cc3598c4edc75e0fce395d272b86470dc595633 \
                    sha256  16b8bc248dcf68987826d5e39234b1bb7fd24a2607fcdbf4258fde88f012f300 \
                    size    662048

depends_build-append \
                    path:bin/pkg-config:pkgconfig \
                    port:itstool \
                    port:docbook-xsl-nons \
                    port:libxslt

depends_lib         port:desktop-file-utils \
                    path:lib/pkgconfig/gobject-introspection-1.0.pc:gobject-introspection \
                    path:lib/pkgconfig/gtk+-3.0.pc:gtk3

depends_run         port:adwaita-icon-theme

patchfiles          meson.build.patch

# port installs desktop application file, and gschemas
post-activate {
    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
    system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
}

livecheck.type      gnome