# -*- 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 53233 2009-07-01 19:28:11Z devans@macports.org $

PortSystem 1.0

name		gucharmap
version         2.26.3.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     3d13ad452860b1facc9765713bc96d33 \
                sha1    ba31edb66224791f183c9e4e1827b6a1216b9d60 \
                rmd160  c63615a6cea8fcccc24ae3df84bb2ee367edbd94

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.check regex
livecheck.url   http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/
livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}
