# -*- 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 108215 2013-07-16 18:43:07Z devans@macports.org $

PortSystem      1.0

name            drivel
version         3.0.5
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    44405fe8b4daab3269789967061004d8f56dc3a6 \
                rmd160  6c326d69a551ad5976eb37975b5d8a5ff9b5d48f

depends_build   port:pkgconfig \
                port:intltool \
                port:gnome-doc-utils
                
depends_lib     port:desktop-file-utils \
                port:gconf \
                port:libsoup \
                port:libpng \
                port:gtkspell2 \
                port:gtksourceview2 \
                port:gnome-vfs \
                port:rarian

depends_run     port:yelp

compiler.blacklist clang

configure.args  --disable-mime-update \
                --disable-desktop-update \
                --disable-schemas-install \
                --disable-error-on-warning

post-activate {
    system "${prefix}/bin/scrollkeeper-update"
    system "${prefix}/bin/update-desktop-database -q ${prefix}/share/applications"
    system "${prefix}/bin/update-mime-database ${prefix}/share/mime"
    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+)*)"
