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

name                json-glib
version             1.10.8
revision            0

categories          devel gnome
license             LGPL-2.1+
maintainers         otherware.org:nefar {mascguy @mascguy} openmaintainer
description         Provides JSON support
long_description    JSON-GLib is a library providing serialization and \
                    deserialization support for the JavaScript Object Notation \
                    (JSON) format described by RFC 4627.
homepage            https://wiki.gnome.org/Projects/JsonGlib

set branch          [join [lrange [split ${version} .] 0 1] .]
master_sites        gnome:sources/${name}/${branch}/
use_xz              yes

checksums           rmd160  9608f47f2964f62951f9c3e16a52b88797fe8122 \
                    sha256  55c5c141a564245b8f8fbe7698663c87a45a7333c2a2c56f06f811ab73b212dd \
                    size    1294096

# Disable unexpected download of subprojects
meson.wrap_mode     nodownload

depends_build-append \
                    port:gettext \
                    path:bin/pkg-config:pkgconfig

depends_lib-append \
                    port:gettext-runtime \
                    path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    path:lib/pkgconfig/gobject-introspection-1.0.pc:gobject-introspection

configure.args-append \
                    -Dconformance=false \
                    -Ddocumentation=disabled \
                    -Dintrospection=enabled \
                    -Dinstalled_tests=false \
                    -Dman=false \
                    -Dnls=enabled \
                    -Dtests=false

livecheck.type      gnome
