# -*- 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

PortSystem              1.0

name                    gnomeicu
version                 0.99.16
revision                2
license                 GPL-2+
categories              gnome
platforms               darwin
maintainers             nomaintainer

description             GnomeICU is one of the most popular ICQ programs in the world.

long_description        GnomeICU is one of the most popular UN*X-based \
                        ICQ programs in the world. Internet chatting has \
                        quickly become one of the most popular uses of the \
                        Internet - second only to Email. Instant messaging \
                        allows users to communicate in real time with friends, \
                        family members, and coworkers in an efficient, \
                        unobtrusive manner.

homepage                http://gnomeicu.sourceforge.net/
master_sites            sourceforge

use_bzip2               yes

checksums               rmd160  5afa16342127b361c38beb55c26b8c2d241c9b6c \
                        sha256  abbc21cf1e03892d46f03d2feb3e8576f591b71b67f09fc8445cd4b08ca6a90c

depends_build           port:intltool \
                        port:pkgconfig

depends_lib             port:gtk2 \
                        port:gdbm \
                        port:gconf \
                        port:libgnomeui \
                        port:rarian \
                        port:desktop-file-utils

depends_run             port:yelp

patchfiles              patch_icu_db.c

configure.args          --with-ndbm=no

post-activate {
    system "${prefix}/bin/scrollkeeper-update"
    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
    system "export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` && \
        gconftool-2 --makefile-install-rule ${prefix}/etc/gconf/schemas/*.schemas"
}