# -*- 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 108067 2013-07-12 00:48:29Z devans@macports.org $

PortSystem      1.0

name            bug-buddy
version         2.32.0
revision        1
license         GPL-2
set branch      [join [lrange [split ${version} .] 0 1] .]
description     A graphical bug reporting tool.
long_description \
                This is a graphical bug reporting tool. It can \
                extract debugging information from a core file \
                or crashed application (via gnome_segv).
maintainers     devans openmaintainer
categories      gnome
platforms       darwin
homepage        http://www.gnome.org/
master_sites    gnome:sources/${name}/${branch}/

use_bzip2       yes

checksums       sha256  ffdc70fe4a59c0aef42b5b0b72b08f17db2b1d9f49ba2b68722334ddbee5e3ca \
                rmd160  286c32db9642ac0468a28605d3fba0b1fa2ba1ff

depends_build   port:pkgconfig \
                port:intltool \
                port:gnome-common \
                port:gnome-doc-utils

depends_lib     port:desktop-file-utils \
                port:gconf \
                port:libelf \
                port:libbonobo \
                port:libsoup \
                port:libgtop

patchfiles      patch-configure.in.diff

use_autoreconf  yes

#
# evolution-data-server is not universal
#

if {[variant_isset eds_mail]} {
    universal_variant no
}

configure.args  --disable-scrollkeeper \
                --disable-schemas-install \
                --disable-eds

variant eds_mail description {Enable getting user email from evolution data server} {
    depends_lib-append port:evolution-data-server
    configure.args-delete --disable-eds
}

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

livecheck.type  gnome
