# -*- 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 87627 2011-11-29 17:39:34Z devans@macports.org $

PortSystem 1.0

name		bug-buddy
version		2.30.0
revision        2
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}/

checksums       md5     da34ace8a806cd1c901ae960184e2997 \
                sha1    8e4c3b783ffb51e459598da33007741d6cefaa64 \
                rmd160  4ff2a458167ad0f999a5636281d5df76802e0bd8

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

depends_lib     port:gconf \
                port:libelf \
		port:libbonobo \
                port:libsoup \
                port:libgtop \
                port:rarian

use_bzip2 	yes

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-google-breakpad \
                --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/scrollkeeper-update"
        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"
}

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