# -*- 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 85714 2011-10-16 03:47:57Z dports@macports.org $

PortSystem 1.0

name		nautilus
version		2.30.1
revision        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
license     GPL-2+
platforms	darwin
homepage	http://www.gnome.org/
master_sites    gnome:sources/${name}/${branch}/

checksums       md5     e1bda55f9c6cd223561da066dbc4e863 \
                sha1    232afa5d7d977714667645adff1f952989edc185 \
                rmd160  285e0b9d000725b11013ed6f8e98db59573b83dc

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

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

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

use_bzip2 	yes

patchfiles      patch-configure.in.diff \
                patch-eel-Makefile.am.diff \
                patch-nautilus-emblem-utils.c.diff \
                patch-nautilus-file.c.diff

use_autoreconf  yes

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

post-activate {
    system "${prefix}/bin/update-desktop-database -q ${prefix}/share/applications; true"
    system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
    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+)*)}
