# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 118642 2014-04-06 17:59:47Z devans@macports.org $

PortSystem      1.0

name            planner
license         GPL-2
version         0.14.6
revision        4
set branch	[join [lrange [split ${version} .] 0 1] .]
categories      gnome
maintainers     billitch
description     Project management application for GNOME 2
long_description \
    Planner is a tool for planning, scheduling and tracking \
    projects for the GNOME Desktop. Planner is an open source \
    project aiming at being a better alternative than the \
    available proprietary tools. \
    Planner is part of GNOME Office, a productivity suite \
    composed of entirely free software, integrated with the \
    GNOME Desktop.
homepage        https://wiki.gnome.org/Apps/Planner
platforms       darwin
master_sites    gnome:sources/${name}/${branch}/
checksums       rmd160 edfb1df0158695d918a6848b7e62ebed8830a210 \
                sha256 130d29e6d6b8c1994017deba2acca05a4bf83ba1e169635ec8c5c7878abe0696

distname        planner-${version}
use_xz          yes

depends_build   port:pkgconfig \
                port:intltool \
                port:gtk-doc

depends_lib     port:gtk2 \
                port:gconf \
                port:libgnomeui \
                port:libgnomecanvas \
                port:rarian \
                port:libxslt

# autoreconf to reconfigure with our intltool.m4

use_autoreconf  yes
autoreconf.args -fvi

configure.args  --disable-python \
                --disable-update-mimedb \
                --disable-eds \
                --mandir=${prefix}/share/man

variant eds description {Enable evolution-data-server support} {
                depends_lib-append port:evolution-data-server
                configure.args-delete --disable-eds
                configure.args-append --enable-eds
}

variant debug description {Enable debug} {
                configure.cflags-delete -O2
                configure.cflags-append -O0 -g
}

# evolution-data-server is not universal

if {[variant_isset eds]} {
                universal_variant no
}

post-activate {
    system "update-mime-database ${prefix}/share/mime"
}

livecheck.type  gnome
