# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 108088 2013-07-12 19:48:20Z devans@macports.org $

PortSystem      1.0

name            gnopernicus
version         1.1.2
revision        1
license         GPL-2
set branch      [join [lrange [split ${version} .] 0 1] .]
description     Collection of accessibility apps for GNOME 2.
long_description \
                Gnopernicus provides Assistive Technologies (AT) \
                for blind and visually impaired persons through \
                modules for text-to-speech, braille, etc.
maintainers     nomaintainer
categories      gnome
platforms       darwin
homepage        http://www.baum.ro/gnopernicus.html
master_sites    gnome:sources/${name}/${branch}/

use_bzip2       yes

checksums       md5 64677df8961a68a73003393166f710bd \
                sha1 161bf9b96330db01028c267b3885d7b734ceef71 \
                rmd160 1b5b34f4fa085b4e6fb12650326704e3863dbf55

depends_build   port:intltool \
                port:pkgconfig

depends_lib     port:desktop-file-utils \
                port:rarian \
                port:gtk2 \
                port:gconf \
                port:libglade2 \
                port:libgnomeui \
                port:libxml2 \
                port:at-spi \
                port:gnome-speech \
                port:gnome-mag \
                port:popt

patchfiles      patch_sercomm.c

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

post-destroot   {
    file delete -force ${destroot}${prefix}/var/scrollkeeper
}

post-activate   {
    system "scrollkeeper-update"
    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
    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  gnome-with-unstable
