# -*- 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
set branch [join [lrange [split ${version} .] 0 1] .]
description Photo manager for GNOME.
long_description GNOME Photos is a simple standalone application to find, organize and view your photos.
maintainers {devans @dbevans} openmaintainer
homepage https://wiki.gnome.org/Apps/Photos
master_sites gnome:sources/${name}/${branch}/
checksums rmd160 ebf9c40905bb792ae1ad0bdb9474e8d970312bc1 \
sha256 87ffabb5c6d7a318c0339f4b6f71c08b2a4919f45646314ea51e8acbf0093b0e
depends_build port:pkgconfig \
depends_lib port:desktop-file-utils \
path:lib/pkgconfig/cairo.pc:cairo \
port:gnome-online-accounts \
depends_run port:adwaita-icon-theme \
# optional dependencies that require libc++ to build
# skip if default C++ stdlib is not libc++
if {${configure.cxx_stdlib} eq "libc++"} {
patchfiles patch-configure.ac.diff
# reconfigure using upstream autogen.sh for intltool 0.51 compatibility
xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
configure.cmd ./autogen.sh
configure.args --disable-schemas-compile \
--enable-compile-warnings=no
# port installs hicolor icons, desktop application file, and gschemas
system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor"
system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"