# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem 1.0

name		drwright
version		0.18
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	http://www.imendio.com/
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 \
                port:p5-xml-parser

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 "export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` && \
        gconftool-2 --makefile-install-rule ${prefix}/etc/gconf/schemas/*.schemas"
}

livecheck.type  regex
livecheck.url   http://ftp.gnome.org/pub/gnome/sources/${name}/${version}/
livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}
