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

PortSystem 1.0

name            ristretto
version         0.13.2
set branch      [join [lrange [split ${version} .] 0 1] .]
categories      xfce
platforms       darwin
license         GPL-2+
maintainers     nomaintainer
description     Ristretto is a fast and lightweight picture-viewer \
                for the Xfce desktop environment.
long_description ${description}
homepage        https://www.xfce.org
master_sites    https://archive.xfce.org/src/apps/${name}/${branch}/
use_bzip2       yes
checksums       sha256  779f5ede3016019eec01d64a025583078d3936e35d4288ec2e8433494d757dd9 \
                rmd160  09815b6fbb23c2692197322f7e2bf5a121011ef7 \
                size    852320

depends_build   port:intltool port:pkgconfig
depends_lib     path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
                port:xfconf \
                path:lib/pkgconfig/cairo.pc:cairo \
                port:libxfce4util \
                port:libxfce4ui \
                port:libexif \
                port:dbus-glib \
                port:desktop-file-utils

# wallpaper_manager.h: error: redefinition of typedef ‘RsttoWallpaperManagerInterface’
compiler.blacklist-append \
                *gcc-4.0 *gcc-4.2

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