diff options
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.bb | 66 |
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 @@ | |||
| 1 | SUMMARY = "A library for bits of crypto UI and parsing etc" | ||
| 2 | DESCRIPTION = "GCR is a library for displaying certificates, and crypto UI, \ | ||
| 3 | accessing key stores. It also provides the viewer for crypto files on the \ | ||
| 4 | GNOME desktop." | ||
| 5 | HOMEPAGE = "https://gitlab.gnome.org/GNOME/gcr" | ||
| 6 | BUGTRACKER = "https://gitlab.gnome.org/GNOME/gcr/issues" | ||
| 7 | |||
| 8 | LICENSE = "LGPL-2.0-only" | ||
| 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=55ca817ccb7d5b5b66355690e9abc605" | ||
| 10 | |||
| 11 | DEPENDS = "p11-kit glib-2.0 libgcrypt gnupg-native \ | ||
| 12 | ${@bb.utils.contains('GI_DATA_ENABLED', 'True', 'libxslt-native', '', d)}" | ||
| 13 | |||
| 14 | CFLAGS += "-D_GNU_SOURCE" | ||
| 15 | |||
| 16 | GTKDOC_MESON_OPTION = "gtk_doc" | ||
| 17 | inherit gnomebase gtk-icon-cache gi-docgen features_check vala gobject-introspection gettext mime mime-xdg | ||
| 18 | UPSTREAM_CHECK_REGEX = "gcr-(?P<pver>\d+\.\d+\.(?!9\d+)\d+)" | ||
| 19 | |||
| 20 | REQUIRED_DISTRO_FEATURES = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'opengl', '', d)}" | ||
| 21 | |||
| 22 | SRC_URI[archive.sha256sum] = "0c3c341e49f9f4f2532a4884509804190a0c2663e6120360bb298c5d174a8098" | ||
| 23 | |||
| 24 | PACKAGECONFIG ??= " \ | ||
| 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 | " | ||
| 30 | PACKAGECONFIG[gtk] = "-Dgtk4=true,-Dgtk4=false,gtk4" | ||
| 31 | PACKAGECONFIG[ssh_agent] = "-Dssh_agent=true,-Dssh_agent=false,libsecret,openssh" | ||
| 32 | #'Use systemd socket activation for server programs' | ||
| 33 | PACKAGECONFIG[systemd] = "-Dsystemd=enabled,-Dsystemd=disabled,systemd" | ||
| 34 | PACKAGECONFIG[vapi] = "-Dvapi=true,-Dvapi=false," | ||
| 35 | |||
| 36 | FILES:${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/ | ||
| 44 | ARM_INSTRUCTION_SET:armv4 = "arm" | ||
| 45 | ARM_INSTRUCTION_SET:armv5 = "arm" | ||
| 46 | ARM_INSTRUCTION_SET:armv6 = "arm" | ||
| 47 | |||
| 48 | EXTRA_OEMESON += "--cross-file=${WORKDIR}/meson-${PN}.cross" | ||
| 49 | |||
| 50 | do_write_config:append() { | ||
| 51 | cat >${WORKDIR}/meson-${PN}.cross <<EOF | ||
| 52 | [binaries] | ||
| 53 | gpg = '${bindir}/gpg' | ||
| 54 | ssh-add = '${bindir}/ssh-add' | ||
| 55 | ssh-agent = '${bindir}/ssh-agent' | ||
| 56 | EOF | ||
| 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. | ||
| 65 | def gnome_verdir(v): | ||
| 66 | return ".".join(v.split(".")[:2]) or v | ||
