# -*- 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$ PortSystem 1.0 PortGroup active_variants 1.1 PortGroup gobject_introspection 1.0 name gcr version 3.20.0 revision 1 license LGPL-2 set branch [join [lrange [split ${version} .] 0 1] .] description GCR is a library for displaying certificates, and crypto UI, accessing \ key stores. long_description ${description} \ It also provides the viewer for crypto files on the GNOME \ desktop and a library for accessing PKCS#11 modules like smart cards, in a \ (G)object oriented way. maintainers devans openmaintainer categories gnome security platforms darwin homepage https://wiki.gnome.org/Projects/GnomeKeyring master_sites gnome:sources/${name}/${branch}/ use_xz yes checksums rmd160 7ece08c6fa1545ff498c4225171f505324ae65ff \ sha256 90572c626d8a708225560c42b4421f7941315247fa1679d4ef569bde7f4bb379 depends_build port:pkgconfig \ port:intltool \ port:gtk-doc \ port:gnome-common \ port:autoconf \ port:automake \ port:libtool depends_lib port:desktop-file-utils \ path:lib/pkgconfig/glib-2.0.pc:glib2 \ port:gtk3 \ port:p11-kit \ port:libgcrypt \ port:vala gobject_introspection yes patchfiles patch-egg-egg-asn1x.h.diff \ patch-egg-egg-armor.c.diff \ patch-ui-gcr.pc.in.diff # gcr uses X11 specific code in UI (#41839) # https://bugzilla.gnome.org/show_bug.cgi?id=734366 # https://bugzilla.gnome.org/show_bug.cgi?id=688678 require_active_variants port:gtk3 x11 # 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 --enable-vala=yes \ --disable-schemas-compile \ --disable-update-mime \ --disable-update-icon-cache \ --disable-silent-rules pre-activate { if {![catch {set installed [lindex [registry_active gnome-keyring] 0]}]} { set _version [lindex $installed 1] if {[vercmp $_version 3.0.0] < 0} { registry_deactivate_composite gnome-keyring "" [list ports_nodepcheck 1] } } } post-activate { system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas" 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/update-mime-database ${prefix}/share/mime" } livecheck.type gnome