# -*- 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 118907 2014-04-14 00:55:41Z devans@macports.org $

PortSystem          1.0

name                frogr
version             0.9
revision            1
license             GPL-3
set branch          [join [lrange [split ${version} .] 0 1] .]
description         Flickr Remote Organizer for GNOME.
long_description    Frogr is a small application for the GNOME desktop that allows users \
                    to manage their accounts in the Flickr image hosting website. It \
                    supports all the basic Flickr features, including uploading pictures, \
                    adding descriptions, setting tags and managing sets and groups pools.

maintainers         gmail.com:juanrgar openmaintainer
categories          gnome
platforms           darwin
homepage            https://wiki.gnome.org/Apps/Frogr
master_sites        gnome:sources/${name}/${branch}/

use_xz              yes

checksums           rmd160  b1bbaa37a1ca3e816c54644f6f091216289dce8d \
                    sha256  7ab2af5936c51d0f37fec04101e20faba288e6df92f723c4671b163e9e689a9f

depends_build       port:pkgconfig \
                    port:intltool \
                    port:itstool \
                    port:yelp-tools

depends_lib         port:desktop-file-utils \
                    port:gnome-icon-theme \
                    port:gsettings-desktop-schemas \
                    port:gtk3 \
                    port:libexif \
                    port:libxml2 \
                    port:json-glib \
                    port:libgcrypt \
                    port:libsoup \
                    port:gstreamer1

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

patchfiles          patch-configure.ac.diff \
                    patch-export-dynamic-Makefile.am.diff

# reconfigure with our intltool.m4

use_autoreconf      yes
autoreconf.args     -fvi

configure.args      --disable-silent-rules

# port installs desktop application file, and hicolor and HighContrast icons
post-activate {
    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
    system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor"
    system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/HighContrast"
}

livecheck.type  gnome-with-unstable
