# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 78371 2011-05-05 09:54:56Z ryandesign@macports.org $

PortSystem          1.0

name                json-glib
version             0.12.4
set branch          [join [lrange [split ${version} .] 0 1] .]
categories          devel
maintainers         otherware.org:nefar openmaintainer
homepage            http://live.gnome.org/JsonGlib
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.

platforms           darwin
depends_build       port:pkgconfig port:gtk-doc
depends_lib         path:lib/pkgconfig/glib-2.0.pc:glib2

# https://trac.macports.org/ticket/26783
#                    port:gobject-introspection

master_sites        gnome:sources/${name}/${branch}/

checksums           sha1    948e647c74fd4f1dd4eeca31b2c8fad68047f7f1 \
                    rmd160  1c9932e4e30312b8a82d7933b5915a2263c60dab

configure.args      --enable-introspection=no

# https://trac.macports.org/ticket/26783
#platform darwin 8 {
#        configure.args-delete --enable-introspection=yes
#        configure.args-append --enable-introspection=no
#        depends_lib-delete    port:gobject-introspection
#}

livecheck.type      regex
livecheck.url       http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/
livecheck.regex     {LATEST-IS-(\d+(?:\.\d+)*)}
