# -*- 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 52595 2009-06-19 14:49:44Z devans@macports.org $

PortSystem 1.0

name		nautilus
version		2.26.3
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     e05f1b61c27f506451f7d46509631e7b \
                sha1    e9ec2daac93eac185cef42a688c3ebefcca1f7fe \
                rmd160  ba8b6dcd14c9d8615900d5ec236555223b3c315e

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.check regex
livecheck.url   http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/
livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}
