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

github.setup    mdbtools gmdb2 0.9.1 v
github.tarball_from releases
categories      gnome x11
license         GPL-2+
maintainers     nomaintainer
description     GUI for inspecting and querying Microsoft Access databases.

long_description \
                gmdb2 is the official GUI of mdbtools, an open-source effort to read \
                data stored in proprietary Microsoft Access databases. It reads files \
                with the .mdb and .accdb extensions, letting the user run queries, \
                export data, and view a list of stored macros.

checksums       rmd160  91b116fef814120802a285b840c2ac5335a65760 \
                sha256  7fc7f98bfd7564e5a0d6cd84318a7a0a2f7fb7929e5204d697e49d9d93e1fe1b \
                size    511414

depends_build   port:gawk \
                port:itstool \
                port:pkgconfig

depends_lib     port:gettext \
                path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
                port:mdbtools

depends_run     port:adwaita-icon-theme

# https://gitlab.gnome.org/GNOME/glib/-/issues/2472
configure.cflags-append -DGLIB_DISABLE_DEPRECATION_WARNINGS

post-activate {
    system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
}