# -*- 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$

PortSystem          1.0
PortGroup           gobject_introspection 1.0

name                libgrss
version             0.7.0
license             LGPL-3
set branch          [join [lrange [split ${version} .] 0 1] .]
description         Glib abstaction to handle feeds in RSS, Atom and other formats.
long_description    ${description}

maintainers         juanrgar devans openmaintainer
categories          net gnome
platforms           darwin
homepage            https://wiki.gnome.org/Projects/Libgrss
master_sites        gnome:sources/${name}/${branch}/

use_xz              yes

checksums           rmd160  1dbdfd426bb028cc1ea9d920d732859887b6a5b7 \
                    sha256  6709c0f630a915ea7d5f1ac88ac173ef974d8d7406f43bd4be70d3e71fd554d9

depends_build       port:pkgconfig \
                    port:intltool \
                    port:gtk-doc \
                    port:autoconf \
                    port:automake \
                    port:libtool \
                    port:gnome-common

depends_lib         path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    port:libxml2 \
                    port:libsoup

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-append \
                    --disable-silent-rules

livecheck.type      gnome-with-unstable