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

name                dconf-editor
version             3.26.2
set branch          [join [lrange [split ${version} .] 0 1] .]
maintainers         {devans @dbevans} openmaintainer
categories          gnome
platforms           darwin
license             GPL-2+
description         The  dconf-editor  program  provides a graphical interface \
                    for editing settings that are stored in the dconf database.

long_description    ${description} \
                    Previously part of dconf, it is now a stand-alone module.
                    
homepage            https://wiki.gnome.org/Projects/dconf
master_sites        gnome:sources/${name}/${branch}/

use_xz              yes

checksums           rmd160  94e4b6cc38619abf512245fd62bb22950724a9a2 \
                    sha256  28b453fe49c49d7dfaf07c85c01d7495913f93ab64a0b223c117eb17d1cb8ad1

depends_build       port:pkgconfig \
                    port:docbook-xsl-nons \
                    port:libxslt \
                    port:appstream-glib

depends_lib         port:desktop-file-utils \
                    path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    port:dconf \
                    path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
                    port:libxml2

depends_run         port:adwaita-icon-theme

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

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

livecheck.type      gnome
