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

name                libsocialweb
version             0.25.21
revision            2
license             LGPL-2.1
set branch          [join [lrange [split ${version} .] 0 1] .]
description         A personal social data server.
long_description    ${description}
maintainers         {devans @dbevans} openmaintainer
categories          gnome devel
homepage            https://wiki.gnome.org/Librest
master_sites        gnome:sources/${name}/${branch}/

use_xz              yes

checksums           rmd160  072dbfbc75cc55bb081694efc63e3f9f86854448 \
                    sha256  f676567640cede66b6ff62f440c968943c2f3a164dd5f26155b6154ab93bf687

depends_build       port:pkgconfig \
                    port:intltool \
                    port:gtk-doc \
                    port:autoconf \
                    port:automake \
                    port:libtool \
                    path:bin/vala:vala

depends_lib         path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    port:gconf \
                    port:dbus-glib \
                    port:json-glib \
                    port:libsoup-2.4 \
                    port:libgnome-keyring \
                    port:rest

gobject_introspection yes

# reconfigure using upstream autogen.sh for intltool 0.51 compatibility

post-patch {
    xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
}

configure.cmd       ./autogen.sh

configure.args      --enable-all-services \
                    --enable-vala-bindings \
                    --disable-silent-rules

livecheck.type      gnome-with-unstable
