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

name            desktop-file-utils
version         0.28
revision        0

installs_libs   no

categories      gnome
license         GPL-2+
maintainers     nomaintainer
description     Command line utilities for working with desktop entries.
long_description \
    ${description}
homepage        https://www.freedesktop.org/wiki/Software/desktop-file-utils/

master_sites    https://www.freedesktop.org/software/desktop-file-utils/releases/
use_xz          yes

# Disable unexpected download of subprojects
meson.wrap_mode     nodownload

checksums       rmd160  2e5791b5b14c5b2fa54833f8819281fc37c9a701 \
                sha256  4401d4e231d842c2de8242395a74a395ca468cd96f5f610d822df33594898a70 \
                size    81620

depends_build   port:autoconf \
                port:automake \
                path:bin/pkg-config:pkgconfig

depends_lib     path:lib/pkgconfig/glib-2.0.pc:glib2

# cc1: error: unrecognized command line option "-std=gnu11"
compiler.c_standard 2011

post-activate {
    system "update-desktop-database -q ${prefix}/share/applications; true"
}

livecheck.type  regex
livecheck.url   [lindex ${master_sites} 0]
livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
