# -*- 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.6
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  afbd7b23908b7f8950df0bb19dd330de82434135 \
                    sha256  77f4bcbf9339528f166b8073458693f0a20b77b7059dbc2db61746a1928b0293 \
                    size    253324

# 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
