# -*- 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 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem 1.0

name                xchat-gnome
version             0.26.1
set branch          [join [lrange [split ${version} .] 0 1] .]
description         xchat-gnome is a new frontend to X-Chat.
long_description \
   xchat-gnome is a new frontend to the popular X-Chat IRC client which is \
   designed with the user interface foremost in mind.
maintainers         nomaintainer
categories          gnome irc

platforms           darwin

homepage            http://xchat-gnome.navi.cx/
master_sites        gnome:sources/${name}/${branch}/

checksums           md5     c9ce3d6e549736edfc1a1dc0282fb363 \
                    sha1    85d205baeca5f10be9245c582ae53fbb40a4ef17 \
                    rmd160  ff2228aa5258a2c5a3bd7c391e83a15b2f030aff

use_bzip2           yes

depends_build       port:pkgconfig \
                    port:intltool \
                    port:p5-xml-parser \
                    port:gnome-doc-utils

depends_lib         port:libgnomeui \
                    port:libglade2 \
                    port:gconf \
                    port:libsexy \
                    port:libnotify \
                    port:libcanberra  \
                    port:openssl

pre-configure {
        reinplace "s|-fgnu89-inline||" ${worksrcpath}/configure
}

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

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

post-activate    {
    system "${prefix}/bin/scrollkeeper-update"
    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+)*)}
