# -*- 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
PortGroup active_variants 1.1
PortGroup gobject_introspection 1.0
set branch [join [lrange [split ${version} .] 0 1] .]
description GCR is a library for displaying certificates, and crypto UI, accessing \
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 \
maintainers {devans @dbevans} openmaintainer
categories gnome security
homepage https://wiki.gnome.org/Projects/GnomeKeyring
master_sites gnome:sources/${name}/${branch}/
checksums rmd160 8180637d78b7ca893aff5bca6d6050fb7e14d4be \
sha256 15e175d1da7ec486d59749ba34906241c442898118ce224a7b70bf2e849faf0b \
depends_build port:pkgconfig \
depends_lib port:desktop-file-utils \
path:lib/pkgconfig/glib-2.0.pc:glib2 \
gobject_introspection yes
patchfiles patch-egg-egg-armor.c.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
xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
configure.cmd ./autogen.sh
configure.args --enable-vala=yes \