# -*- 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 62671 2010-01-13 18:40:50Z raimue@macports.org $

PortSystem  1.0

name		gnome-terminal
version		2.26.3.1
revision    1
set branch      [join [lrange [split ${version} .] 0 1] .]
description	Terminal component for the GNOME 2 Desktop
long_description        Terminal component for the GNOME 2 Desktop
maintainers	devans openmaintainer
categories	gnome
platforms	darwin
homepage	http://www.gnome.org/
master_sites    gnome:sources/${name}/${branch}/

checksums       md5     b6c6c0f5f3e061da7e56f3a04385bb7b \
                sha1    68dc9739b4d35c0647596b1773c5da76782f1164 \
                rmd160  db6b5ba601c3c74e3424e88119501b9414e1f37d

depends_lib     port:gconf \
	        port:startup-notification \
	        port:vte
depends_run     port:libgnome

use_bzip2 	yes

patchfiles      patch-src-terminal.c.diff

configure.python ${prefix}/bin/python2.5

configure.args \
	--mandir=${prefix}/share/man \
	--disable-schemas-install \
        --disable-scrollkeeper

post-activate	{
	system "${prefix}/bin/scrollkeeper-update"
	system "${prefix}/bin/update-desktop-database -q ${prefix}/share/applications; true"
        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+)*)}
