# -*- 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 107682 2013-07-04 08:39:23Z jeremyhu@macports.org $

PortSystem      1.0

name            file-roller
version         2.32.2
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}/

use_bzip2       yes

checksums       rmd160  cbeb4f8dc83db87338735e57c4f87333c4b018f4 \
                sha256  3ddbe4e4134eab4ff8e97789a1626aec6cbc588190f2f520850d0697037e5755

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

depends_lib     port:desktop-file-utils \
                port:gtk2 \
                port:gconf \
                port:nautilus

depends_run     port:gnome-settings-daemon \
                port:yelp

patchfiles      patch-src-fr-command-lrzip.c.diff

configure.args  --with-gtk=2.0 \
                --disable-packagekit \
                --disable-schemas-install \
                --disable-scrollkeeper \
                --disable-silent-rules

# Don't do intltool's INTLTOOL_PERL dance
use_autoreconf  yes
autoreconf.args -fvi

post-activate {
    system "${prefix}/bin/scrollkeeper-update"
    system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
    system "export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` && \
        gconftool-2 --makefile-install-rule ${prefix}/etc/gconf/schemas/*.schemas"
}

livecheck.type  gnome
