# -*- 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                baobab
version             3.26.1
license             GPL-2+
set branch          [join [lrange [split ${version} .] 0 1] .]
description         GNOME disk usage analyzer.
long_description    Disk Usage Analyzer is a graphical, menu-driven application to analyse \
                    disk usage in a GNOME environment. It can easily scan either the whole \
                    filesystem tree, or a specific user-requested directory branch (local or remote). \
                    It also auto-detects in real-time any changes made to your home directory as far \
                    as any mounted/unmounted device. Disk Usage Analyzer also provides a full graphical \
                    treemap window for each selected folder.

maintainers         {devans @dbevans} openmaintainer
categories          gnome
platforms           darwin
homepage            https://wiki.gnome.org/Apps/Baobab
master_sites        gnome:sources/${name}/${branch}/

use_xz              yes

checksums           rmd160  72598c0a0213abc4b332fab405dd47f976fa2bbe \
                    sha256  7a59ab5945f5d90725231b10d85a1893403f56660b1627c111d2b4eeb1ef787e

depends_build       port:pkgconfig \
                    port:itstool \
                    port:yelp-tools \
                    port:appstream-glib

depends_lib         port:desktop-file-utils \
                    port:gdk-pixbuf2 \
                    port:gtk3 \
                    port:vala

depends_run         port:adwaita-icon-theme \
                    port:yelp

patchfiles          patch-warning-flags.diff

use_autoreconf      yes
autoreconf.args     -fvi

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-3.0 -f -t ${prefix}/share/icons/hicolor"
    system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
}

livecheck.type      gnome