# -*- 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 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem 1.0

name		eog
version		2.26.3
set branch	[join [lrange [split ${version} .] 0 1] .]
description	An image viewing program.
long_description        This is the Eye of Gnome, an image viewer program. \
			It is meant to be a fast and functional image viewer \
			as well as an image cataloging program.
maintainers	devans openmaintainer
categories	gnome
platforms	darwin
homepage	http://www.gnome.org/
master_sites    gnome:sources/${name}/${branch}/

checksums       md5     0660a0ce0fa4a46656fad84d61895917 \
                sha1    dce3dc99d3df80bcfad1401bd6efdcd7dfc88e30 \
                rmd160  53710759e71a304789eaaeeddefa56ac80af8494

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

depends_lib     port:gnome-desktop \
                port:gconf \
                port:libart_lgpl \
                port:gnome-icon-theme \
                port:shared-mime-info \
                port:libexif \
                port:lcms \
                port:exempi \
                port:py25-gtk \
                port:py25-gobject
               
use_bzip2 	yes

configure.args  --mandir=${prefix}/share/man \
                --disable-scrollkeeper \
                --disable-schemas-install

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

post-activate {
   system "scrollkeeper-update"
   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+)*)}
