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

github.setup        lwindolf liferea 1.16.9 v
github.tarball_from releases
use_bzip2           yes
# Note: do not remove the epoch line.
epoch               20090731
description         A feed aggregator for GTK+/GNOME.
long_description    Liferea is an aggregator for online news feeds. \
                    It supports the RSS/RDF, CDF, Atom, OCS and OPML \
                    formats and enclosures (podcasting). It also has \
                    filtering mechanisms.
maintainers         {devans @dbevans} openmaintainer
categories          gnome net
license             GPL-2+
homepage            http://lzone.de/${name}/

checksums           rmd160  90fbb6a224038a68ca8cc1560221329ea19e2757 \
                    sha256  738c924e501f2f511bb35fa92d97792a274edd4705f472a157f46918b45295c6 \
                    size    1781829

depends_build       port:pkgconfig \
                    port:intltool

depends_lib         port:desktop-file-utils \
                    port:fribidi \
                    path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
                    port:libxml2 \
                    port:libxslt \
                    port:sqlite3 \
                    port:libsoup \
                    port:json-glib \
                    port:gsettings-desktop-schemas \
                    port:libpeas \
                    path:lib/pkgconfig/webkit2gtk-4.1.pc:webkit2-gtk

depends_run         port:adwaita-icon-theme

gobject_introspection yes

# blacklist compilers that do not support C11
compiler.blacklist  *gcc-3.* *gcc-4.* {clang < 300}

configure.args      --disable-schemas-compile \
                    --disable-silent-rules

post-activate {
    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
    system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
    system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
}

# restrict livecheck to stable release versions only
github.livecheck.regex  {(\d+\.\d*[02468](?:\.\d+)*)}
