# -*- 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 85501 2011-10-14 03:35:53Z devans@macports.org $

PortSystem 1.0

name		file-roller
version		2.30.2
revision        4
license         GPL-2+
set branch      [join [lrange [split ${version} .] 0 1] .]
description	An archive manager for GNOME
long_description        File Roller is an archive manager for the GNOME \
			environment. Archive manager means that you can: \
			* Create and modify archives.  \
			* View the content of an archive.  \
			* View a file contained in the archive.  \
			* Extract files from the archive.
maintainers	devans openmaintainer
categories	gnome
platforms	darwin
homepage	http://fileroller.sourceforge.net/
master_sites    gnome:sources/${name}/${branch}/

checksums       md5     c13209518d2e2294ec1fa813e063b0c5 \
                sha1    994ed5d930c4c012004c1c598904335905eea239 \
                rmd160  580bbf929b75835627475dbda69f9872e43c3eb2

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

depends_lib     port:nautilus
depends_run     port:hicolor-icon-theme

use_bzip2 	yes

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

patchfiles fixreturn.patch

post-activate {
	system "${prefix}/bin/scrollkeeper-update"
        system "${prefix}/bin/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 {LATEST-IS-(\d+(?:\.\d+)*)}
