# -*- 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

PortSystem          1.0
PortGroup           active_variants 1.1
PortGroup           yelp 1.0

name                gnotime
version             2.4.1
revision            0
checksums           rmd160  3164fc896a74f491956961d07e10b59c894bd025 \
                    sha256  b25a9d94cdb7e08c18f115eddddd32a6e23834416355fcaed852260b6b2f6410 \
                    size    1767643

description         A GNOME project manager.
long_description    GnoTime is a combination stop-watch, diary, \
                    consultant billing system and project manager. \
                    You can measure the amount of time you spend on a \
                    task, associate a memo with it, set a billing rate, \
                    print an invoice, as well as track that status of \
                    other projects.

maintainers         nomaintainer
categories          gnome
license             GPL-2+

homepage            http://gttr.sourceforge.net/
master_sites        sourceforge:project/gttr/${name}/${name}-${version}/

depends_build       port:pkgconfig \
                    port:intltool \
                    port:gnome-common \
                    port:autoconf \
                    port:automake \
                    port:libtool

depends_lib         port:desktop-file-utils \
                    port:gconf \
                    path:lib/pkgconfig/gtk+-2.0.pc:gtk2 \
                    port:guile-2.2 \
                    port:libglade2 \
                    port:libgnome \
                    port:libgnomeui \
                    port:libgtkhtml3 \
                    port:libxml2 \
                    port:qof \
                    port:rarian \
                    port:xorg-libX11 \
                    port:xorg-libXScrnSaver

patchfiles          patch-configure.in.diff \
                    guile-2.2.patch \
                    patch-src-main.c.diff

# only builds with X11

require_active_variants gtk2 x11

# reconfigure using distributed autogen.sh for intltool 0.51 compatibility

configure.cmd       ./autogen.sh

configure.args      --enable-compile-warnings=minimum \
                    --disable-silent-rules \
                    --x-includes=${prefix}/include \
                    --x-libraries=${prefix}/lib

post-activate {
    system "${prefix}/bin/scrollkeeper-update"
    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.regex     "/${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
