# -*- 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 68350 2010-06-02 00:38:23Z jmr@macports.org $

PortSystem 1.0

name		gucharmap
version         2.30.1
set branch      [join [lrange [split ${version} .] 0 1] .]
description	gucharmap is a featureful unicode character map.
long_description ${description}
maintainers     devans openmaintainer
categories      gnome
platforms       darwin
homepage        http://www.gnome.org/
master_sites    gnome:sources/${name}/${branch}/

checksums       md5     cd3b342fb75b4bd9df2327c247aa457b \
                sha1    f9db12ca1102a245e701b579be1c5d9ebed0cd0d \
                rmd160  c02f0105c8f5dbb769ff2c411e7dc085c87e8bd9

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

depends_lib     port:gconf \
                port:py25-gtk

use_bzip2       yes

configure.args	--disable-gtk-immodules \
                --disable-schemas-install \
                --disable-scrollkeeper \
                --enable-python-bindings

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

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+)*)}
