# -*- 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 85827 2011-10-16 16:41:25Z snc@macports.org $

PortSystem 1.0

name		drivel
version		3.0.3
license         GPL-2+ GFDL-1.3
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://drivel.sourceforge.net/
master_sites    sourceforge

use_bzip2	yes

checksums       sha1    3be31ee7d8e9236909e1fcfe5db7ec575ec0bcac \
                rmd160  c47c511610e37836c0f894f18ee71c0fece3e290

depends_build   port:pkgconfig \
                port:intltool \
                port:gnome-doc-utils
                
depends_lib     port:libsoup \
                port:gtkspell2 \
                port:gtksourceview2 \
                port:gnome-vfs

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 "${name}-(\\d+(?:\\.\\d+)*)"
