# -*- 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 87219 2011-11-14 07:31:35Z devans@macports.org $

PortSystem              1.0

name                    gthumb
version                 2.12.4
license                 GPL-2+
set branch              [join [lrange [split ${version} .] 0 1] .]
description             Image viewer and browser for the gnome desktop.
long_description        ${description}
maintainers             nomaintainer
categories              gnome
platforms               darwin
homepage                http://gthumb.sourceforge.net/
master_sites            gnome:sources/gthumb/${branch}
use_bzip2               yes

checksums               sha1    2fac9fde2e89f90aea7174158990ca61bd95e2a5 \
                        rmd160  dee727570c53f6bf700287853dee74efd233d497

depends_build           port:gnome-doc-utils \
                        port:intltool \
                        port:pkgconfig

depends_lib             port:gconf \
                        port:gst-plugins-base \
                        port:libgnome-keyring \
                        port:libsoup \
                        port:libunique \
                        port:clutter-gtk \
                        port:exiv2 \
                        port:libopenraw

configure.args          --enable-libopenraw \
                        --disable-scrollkeeper \
                        --disable-schemas-install \
                        --disable-silent-rules

universal_variant no

post-activate {
    system "scrollkeeper-update"
    system "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         ${name}-(\[0-9.\]+)\\.tar
