# -*- 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 77689 2011-04-09 18:28:31Z devans@macports.org $

PortSystem 1.0

name		drivel
version		3.0.2
revision        1
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     0d993bffb0cad23e6262958eff4aab60 \
                sha1    c6e3641c8351d5fd3626d9990193691cf70a9db4 \
                rmd160  355d39cdde9c33030e97658d6529ac666eb1f596

depends_build   port:pkgconfig \
                port:intltool
                
depends_lib     port:libsoup \
                port:gtkspell2 \
                port:gtksourceview2

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.url   http://sourceforge.net/projects/${name}/files/
livecheck.regex "Download ${name}-(\\d+(?:\\.\\d+)*)"
