summaryrefslogtreecommitdiffstats
path: root/meta/recipes-gnome/gcr/gcr_4.4.0.1.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-gnome/gcr/gcr_4.4.0.1.bb')
-rw-r--r--meta/recipes-gnome/gcr/gcr_4.4.0.1.bb66
1 files changed, 66 insertions, 0 deletions
diff --git a/meta/recipes-gnome/gcr/gcr_4.4.0.1.bb b/meta/recipes-gnome/gcr/gcr_4.4.0.1.bb
new file mode 100644
index 0000000000..25c394c9d0
--- /dev/null
+++ b/meta/recipes-gnome/gcr/gcr_4.4.0.1.bb
@@ -0,0 +1,66 @@
1SUMMARY = "A library for bits of crypto UI and parsing etc"
2DESCRIPTION = "GCR is a library for displaying certificates, and crypto UI, \
3accessing key stores. It also provides the viewer for crypto files on the \
4GNOME desktop."
5HOMEPAGE = "https://gitlab.gnome.org/GNOME/gcr"
6BUGTRACKER = "https://gitlab.gnome.org/GNOME/gcr/issues"
7
8LICENSE = "LGPL-2.0-only"
9LIC_FILES_CHKSUM = "file://COPYING;md5=55ca817ccb7d5b5b66355690e9abc605"
10
11DEPENDS = "p11-kit glib-2.0 libgcrypt gnupg-native \
12 ${@bb.utils.contains('GI_DATA_ENABLED', 'True', 'libxslt-native', '', d)}"
13
14CFLAGS += "-D_GNU_SOURCE"
15
16GTKDOC_MESON_OPTION = "gtk_doc"
17inherit gnomebase gtk-icon-cache gi-docgen features_check vala gobject-introspection gettext mime mime-xdg
18UPSTREAM_CHECK_REGEX = "gcr-(?P<pver>\d+\.\d+\.(?!9\d+)\d+)"
19
20REQUIRED_DISTRO_FEATURES = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'opengl', '', d)}"
21
22SRC_URI[archive.sha256sum] = "0c3c341e49f9f4f2532a4884509804190a0c2663e6120360bb298c5d174a8098"
23
24PACKAGECONFIG ??= " \
25 ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
26 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'gtk', '', d)} \
27 ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'gtk', '', d)} \
28 ${@bb.utils.contains('GI_DATA_ENABLED', 'True', 'vapi', '', d)} \
29"
30PACKAGECONFIG[gtk] = "-Dgtk4=true,-Dgtk4=false,gtk4"
31PACKAGECONFIG[ssh_agent] = "-Dssh_agent=true,-Dssh_agent=false,libsecret,openssh"
32#'Use systemd socket activation for server programs'
33PACKAGECONFIG[systemd] = "-Dsystemd=enabled,-Dsystemd=disabled,systemd"
34PACKAGECONFIG[vapi] = "-Dvapi=true,-Dvapi=false,"
35
36FILES:${PN} += " \
37 ${datadir}/dbus-1 \
38 ${datadir}/gcr-4 \
39 ${systemd_user_unitdir}/gcr-ssh-agent.socket \
40 ${systemd_user_unitdir}/gcr-ssh-agent.service \
41"
42
43# http://errors.yoctoproject.org/Errors/Details/20229/
44ARM_INSTRUCTION_SET:armv4 = "arm"
45ARM_INSTRUCTION_SET:armv5 = "arm"
46ARM_INSTRUCTION_SET:armv6 = "arm"
47
48EXTRA_OEMESON += "--cross-file=${WORKDIR}/meson-${PN}.cross"
49
50do_write_config:append() {
51 cat >${WORKDIR}/meson-${PN}.cross <<EOF
52[binaries]
53gpg = '${bindir}/gpg'
54ssh-add = '${bindir}/ssh-add'
55ssh-agent = '${bindir}/ssh-agent'
56EOF
57}
58
59# gnome_verdir is coming from gnomebase.bbclass, which seems to work
60# with gcr as long as its version has 3 sections (x.y.z).
61# This version is 4.4.0.1 - add a custom version parser, otherwise the
62# original parser constructs invalid download URL.
63# It can be removed with the next update, when/if the version has only
64# 3 sections again.
65def gnome_verdir(v):
66 return ".".join(v.split(".")[:2]) or v