# -*- 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 114961 2013-12-19 19:02:26Z devans@macports.org $

PortSystem      1.0

name            drwright
version         0.18
revision        1
license         GPL-2
description     A GNOME break reminder!
long_description \
                DrWright is a program that reminds you to take \
                regular breaks from your computer. Its main focus \
                is being usable and to simply work.
maintainers     nomaintainer
categories      gnome
platforms       darwin
homepage        https://wiki.gnome.org/Projects/drwright
master_sites    gnome:sources/${name}/${version}/

use_bzip2       yes

checksums       md5 5056d36520b0a506e5bf3211f08315b8 \
                sha1 e54b7c46e877dcbfa52d2b67935384b6f13a596a

patchfiles      patch_src_dbus.c.diff

depends_build   port:pkgconfig \
                port:intltool

depends_lib     port:gconf \
                port:libglade2 \
                port:libgnomeui \
                port:desktop-file-utils \
                port:xorg-libXScrnSaver

configure.args  --x-includes=${prefix}/include \
                --x-libraries=${prefix}/lib \
                --disable-schemas-install

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

livecheck.type  gnome
