# -*- 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

PortSystem          1.0
PortGroup           meson 1.0
PortGroup           yelp 1.0

name                frogr
version             1.6
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         {devans @dbevans} openmaintainer
categories          gnome
homepage            https://wiki.gnome.org/Apps/Frogr
master_sites        gnome:sources/${name}/${branch}/

use_xz              yes

checksums           rmd160  26b15983726ecdfcc154aaf8e207b29f8933167b \
                    sha256  3f0065faf4f3b8ce0c1fc9d59b229a8ac16f96f5e86a1280f6d9fe8cebb82ed3 \
                    size    2240748

depends_build-append \
                    port:pkgconfig \
                    port:itstool

depends_lib         port:desktop-file-utils \
                    port:gsettings-desktop-schemas \
                    path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
                    port:libexif \
                    port:libxml2 \
                    port:json-glib \
                    port:libgcrypt \
                    port:libsoup-2.4 \
                    port:gstreamer1

depends_run         port:adwaita-icon-theme \
                    port:epiphany

patchfiles          patch-no-werror.diff

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

livecheck.type      gnome-with-unstable