# -*- 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
# $Id: Portfile 118898 2014-04-13 23:49:25Z devans@macports.org $

PortSystem      1.0

name            libgdata
version         0.15.0
set branch      [join [lrange [split ${version} .] 0 1] .]
description     libgdata is a GLib-based library for accessing online service APIs using the \
                GData protocol --- most notably, Google's services.

long_description \
                ${description} \
                It provides APIs to access the common Google services, and has full asynchronous support.

maintainers     devans openmaintainer
categories      gnome net
license         LGPL-2.1+
platforms       darwin
homepage        https://wiki.gnome.org/Projects/${name}
master_sites    gnome:sources/${name}/${branch}/

use_xz          yes

checksums       rmd160  9455bc88ded1ecf227bef8863ab7c7eaa52750c7 \
                sha256  4845359248d8623d51e766fdc3eceaffaafa7a8a1fe8bec426b7604b711ae198

depends_build   port:pkgconfig \
                port:intltool \
                port:gnome-common \
                port:gtk-doc

depends_lib     port:gtk3 \
                port:gdk-pixbuf2 \
                port:libxml2 \
                port:libsoup \
                port:liboauth \
                port:gnome-online-accounts \
                port:gcr \
                port:uhttpmock

# update m4/intltool.m4 and autoreconf

pre-configure {
    copy -force ${prefix}/share/aclocal/intltool.m4 ${worksrcpath}/m4
}

use_autoreconf  yes
autoreconf.args -fvi

configure.args  --enable-introspection=yes \
                --enable-gnome \
                --enable-goa

livecheck.type  gnome-with-unstable
