# -*- 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 yelp 1.0 name gnome-photos version 3.24.5 revision 2 license GPL-2 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 categories gnome platforms darwin homepage https://wiki.gnome.org/Apps/Photos master_sites gnome:sources/${name}/${branch}/ use_xz yes checksums rmd160 ebf9c40905bb792ae1ad0bdb9474e8d970312bc1 \ sha256 87ffabb5c6d7a318c0339f4b6f71c08b2a4919f45646314ea51e8acbf0093b0e \ size 985864 depends_build port:pkgconfig \ port:intltool \ port:itstool \ path:lib/pkgconfig/librsvg-2.0.pc:librsvg \ port:yelp-tools \ port:autoconf \ port:automake \ port:libtool depends_lib port:desktop-file-utils \ path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \ path:lib/pkgconfig/cairo.pc:cairo \ path:lib/pkgconfig/babl-0.1.pc:babl \ port:gegl-0.3 \ port:geocode-glib \ port:gfbgraph \ path:lib/pkgconfig/gdk-pixbuf-2.0.pc:gdk-pixbuf2 \ port:gnome-desktop \ port:gnome-online-accounts \ port:grilo \ port:grilo-plugins \ path:include/turbojpeg.h:libjpeg-turbo \ port:tracker depends_run port:adwaita-icon-theme # optional dependencies that require libc++ to build # skip if default C++ stdlib is not libc++ platform darwin { if {${configure.cxx_stdlib} eq "libc++"} { depends_run-append \ port:gnome-online-miners } } patchfiles patch-configure.ac.diff # reconfigure using upstream autogen.sh for intltool 0.51 compatibility post-patch { xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath} } configure.cmd ./autogen.sh configure.args --disable-schemas-compile \ --disable-silent-rules \ --enable-compile-warnings=no # port installs hicolor icons, desktop application file, and gschemas post-activate { 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" } livecheck.type gnome