# $Id: Portfile 67323 2010-05-05 15:51:10Z vinc17@macports.org $

PortSystem 1.0

name                liferea
# Note: do not remove the epoch line.
epoch               20090731
version             1.6.3
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         vinc17 openmaintainer
categories          gnome net
platforms           darwin
homepage            http://liferea.sourceforge.net/
master_sites        sourceforge
checksums           md5     ca354e526bd4e22da0b90083a68b8530 \
                    sha1    ed88a4216f4fb6f7b678044dd7f1b8748c550193 \
                    rmd160  6c67f396823dab5379bbae707aea366f9a8f31db
depends_lib         port:gtk2 port:gconf port:libxml2 port:libxslt \
                    port:sqlite3 port:webkit-gtk

configure.args      --disable-lua

variant lua description {LUA scripting support} {
    depends_lib-append      port:lua
    configure.args-delete   --disable-lua
    configure.args-append   --enable-lua
}

pre-destroot {
    file mkdir "${destroot}${prefix}/share/doc/${name}"
    xinstall -m 644 -v -W ${worksrcpath} AUTHORS ChangeLog README \
      "${destroot}${prefix}/share/doc/${name}"
}

post-activate {
    ui_msg "The date/time format has changed. If you want to override the"
    ui_msg "new one, you need to run"
    ui_msg "  gconftool-2 -s -t string /apps/liferea/date-format <format>"
    ui_msg "where <format> is the format in strftime syntax."
}

livecheck.type      regex
livecheck.url       http://liferea.sourceforge.net/
livecheck.regex     {Liferea Stable/liferea-([1-9.]+)\.tar}
