# -*- 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
# $Id: Portfile 52769 2009-06-23 01:16:51Z devans@macports.org $

PortSystem 1.0

name		drivel
version		2.0.4
description	Drivel is a GNOME client for working with online journals, weblogs or just blogs.
long_description \
                Drivel is a GNOME client for working with online journals, also known as weblogs \
                or simply 'blogs'. It retains a simple and elegant design while providing many powerful \
                features including support for LiveJournal, Blogger, MovableType, Advogato, and Atom journals.
maintainers	devans openmaintainer
categories	gnome
platforms	darwin
homepage	http://www.dropline.net/drivel/
master_sites    sourceforge

use_bzip2	yes

checksums       md5     9e6e4b2eb0912669461eb338d2bdc08d \
                sha1    8524d274c72264414c43d42ad4236edc501326d6 \
                rmd160  28221060427d1a2cf7915f592b1ca9f01a33e145

depends_build   port:pkgconfig \
                port:intltool \
                port:p5-xml-parser
                
depends_lib     port:libgnomeui \
                port:gtksourceview \
                port:gtkspell2 \
                port:curl

configure.args  --disable-mime-update \
                --disable-desktop-update \
                --disable-schemas-install

post-activate {
    system "${prefix}/bin/update-desktop-database -q ${prefix}/share/applications; true"
    system "${prefix}/bin/update-mime-database ${prefix}/share/mime; true"
    system "export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` && \
        gconftool-2 --makefile-install-rule ${prefix}/etc/gconf/schemas/*.schemas"
}

livecheck.regex "(?i)<title>drivel .* (\\d+(?:\\.\\d+)*) released.*</title>"
