# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 120314 2014-05-23 00:11:01Z devans@macports.org $

PortSystem          1.0

name                grsync
version             1.2.4
revision            1
categories          net
platforms           darwin
maintainers         gmail.com:mschamschula openmaintainer
license             GPL-2

description         Grsync is a GUI for rsync.

long_description    Grsync makes use of the GTK libraries to synchronize folders, files and make backups.

homepage            http://www.opbyte.it/grsync/
master_sites        http://www.opbyte.it/release/

checksums           rmd160  26e4763755fb058f67adb0efa488a73435b30797 \
                    sha256  5e74819a9188a5f722b8a692d8df0bc011c3ff1f1e8e4bbd8e5989b76e46c370

depends_build       port:intltool \
                    port:pkgconfig

depends_lib         port:desktop-file-utils \
                    port:rsync \
                    port:gtk2

# autoreconf to fix intltool perl configuration using our intltool.m4

use_autoreconf      yes
autoreconf.args     -fvi

configure.args      --disable-unity

# provides desktop file and hicolor icons

post-activate {
    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
    system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
}
