# -*- 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 59055 2009-10-09 00:21:01Z devans@macports.org $

PortSystem 1.0

name		nautilus
version		2.26.4
set branch  [join [lrange [split ${version} .] 0 1] .]
description	The GNOME filemanager
long_description       	Nautilus is the official file manager for the \
			GNOME desktop. It is designed to be primarly a file manager, \
			but there are support for web and file viewing too.
maintainers	devans openmaintainer
categories	gnome
platforms	darwin
homepage	http://www.gnome.org/
master_sites    gnome:sources/${name}/${branch}/
checksums       md5     cc5bbaf3776662ed45bcf33b3857f662 \
                sha1    7eab587e0b88e3eab8196f64596207a1dc1c4b33 \
                rmd160  4af723021ece1fb9a37bd3bcc2de903b6c7dca61

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

depends_lib	port:gnome-desktop \
                port:libexif \
                port:exempi \
                port:libunique

depends_run	port:desktop-file-utils \
	        port:shared-mime-info

use_bzip2 	yes

patchfiles      patch-nautilus-emblem-utils.c.diff \
                patch-nautilus-file.c.diff

configure.args  --mandir=${prefix}/share/man \
                --x-includes=${prefix}/include \
                --x-libraries=${prefix}/lib \
                --disable-update-mimedb \
                --disable-schemas-install \
                --disable-tracker \
                --disable-packagekit \
                --disable-beagle

post-activate {
    system "${prefix}/bin/update-desktop-database -q ${prefix}/share/applications; true"
    system "${prefix}/bin/update-mime-database ${prefix}/share/mime; true"
    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+)*)}
