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

name                gnome-characters
version             3.28.2
revision            2
license             GPL-2+
set branch          [join [lrange [split ${version} .] 0 1] .]
description         A simple utility application to find and insert unusual characters.
long_description    ${description}
maintainers         {devans @dbevans} openmaintainer
categories          gnome
platforms           darwin
homepage            https://wiki.gnome.org/Design/Apps/CharacterMap
master_sites        gnome:sources/${name}/${branch}/

use_xz              yes

checksums           rmd160  b5dce68a633a66a4d14ba01afc4de195dbf37b17 \
                    sha256  8016f974f4fcdd207f1a3784b2e82c66ebe62451ced0d03fd3bc181e87b0d512 \
                    size    1565148

depends_build       port:pkgconfig \
                    port:appstream-glib \
                    port:gettext

depends_lib         port:desktop-file-utils \
                    port:gettext-runtime \
                    path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
                    path:lib/pkgconfig/gjs-1.0.pc:gjs \
                    port:gnome-desktop \
                    port:libunistring

depends_run         port:adwaita-icon-theme

gobject_introspection yes

configure.args      --disable-schemas-compile \
                    --disable-silent-rules

post-activate {
   system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
   system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
   system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
}

livecheck.type      gnome
