diff options
Diffstat (limited to 'meta/recipes-gnome/gcr')
-rw-r--r-- | meta/recipes-gnome/gcr/gcr_3.38.1.bb | 40 | ||||
-rw-r--r-- | meta/recipes-gnome/gcr/gcr_4.3.0.bb | 58 |
2 files changed, 58 insertions, 40 deletions
diff --git a/meta/recipes-gnome/gcr/gcr_3.38.1.bb b/meta/recipes-gnome/gcr/gcr_3.38.1.bb deleted file mode 100644 index fe80439b00..0000000000 --- a/meta/recipes-gnome/gcr/gcr_3.38.1.bb +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
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 = "GPLv2" | ||
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=55ca817ccb7d5b5b66355690e9abc605" | ||
10 | |||
11 | DEPENDS = "gtk+3 p11-kit glib-2.0 libgcrypt gnupg-native \ | ||
12 | ${@bb.utils.contains('GI_DATA_ENABLED', 'True', 'libxslt-native', '', d)}" | ||
13 | |||
14 | CACHED_CONFIGUREVARS += "ac_cv_path_GPG='gpg2'" | ||
15 | |||
16 | GNOMEBASEBUILDCLASS = "meson" | ||
17 | GTKDOC_MESON_OPTION = "gtk_doc" | ||
18 | inherit gnomebase gtk-icon-cache gtk-doc features_check upstream-version-is-even vala gobject-introspection gettext mime mime-xdg | ||
19 | # depends on gtk+3, but also x11 through gtk+-x11 | ||
20 | REQUIRED_DISTRO_FEATURES = "x11" | ||
21 | |||
22 | SRC_URI[archive.sha256sum] = "17fcaf9c4a93a65fb1c72b82643bb102c13344084687d5886ea66313868d9ec9" | ||
23 | |||
24 | FILES_${PN} += " \ | ||
25 | ${datadir}/dbus-1 \ | ||
26 | ${datadir}/gcr-3 \ | ||
27 | " | ||
28 | |||
29 | # http://errors.yoctoproject.org/Errors/Details/20229/ | ||
30 | ARM_INSTRUCTION_SET_armv4 = "arm" | ||
31 | ARM_INSTRUCTION_SET_armv5 = "arm" | ||
32 | ARM_INSTRUCTION_SET_armv6 = "arm" | ||
33 | |||
34 | EXTRA_OEMESON += "--cross-file ${WORKDIR}/meson-${PN}.cross" | ||
35 | do_write_config_append() { | ||
36 | cat >${WORKDIR}/meson-${PN}.cross <<EOF | ||
37 | [binaries] | ||
38 | gpg2 = '${bindir}/gpg2' | ||
39 | EOF | ||
40 | } | ||
diff --git a/meta/recipes-gnome/gcr/gcr_4.3.0.bb b/meta/recipes-gnome/gcr/gcr_4.3.0.bb new file mode 100644 index 0000000000..73b36a3dea --- /dev/null +++ b/meta/recipes-gnome/gcr/gcr_4.3.0.bb | |||
@@ -0,0 +1,58 @@ | |||
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 | CACHED_CONFIGUREVARS += "ac_cv_path_GPG='gpg2'" | ||
15 | |||
16 | CFLAGS += "-D_GNU_SOURCE" | ||
17 | |||
18 | GTKDOC_MESON_OPTION = "gtk_doc" | ||
19 | inherit gnomebase gtk-icon-cache gi-docgen features_check vala gobject-introspection gettext mime mime-xdg | ||
20 | |||
21 | REQUIRED_DISTRO_FEATURES = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'opengl', '', d)}" | ||
22 | |||
23 | SRC_URI[archive.sha256sum] = "c3ee8728e4364b0397f435fa20f92f901ab139d2b264f4e059d67b3c0f43cd36" | ||
24 | |||
25 | PACKAGECONFIG ??= " \ | ||
26 | ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ | ||
27 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'gtk', '', d)} \ | ||
28 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'gtk', '', d)} \ | ||
29 | ${@bb.utils.contains('GI_DATA_ENABLED', 'True', 'vapi', '', d)} \ | ||
30 | " | ||
31 | PACKAGECONFIG[gtk] = "-Dgtk4=true,-Dgtk4=false,gtk4" | ||
32 | PACKAGECONFIG[ssh_agent] = "-Dssh_agent=true,-Dssh_agent=false,libsecret,openssh" | ||
33 | #'Use systemd socket activation for server programs' | ||
34 | PACKAGECONFIG[systemd] = "-Dsystemd=enabled,-Dsystemd=disabled,systemd" | ||
35 | PACKAGECONFIG[vapi] = "-Dvapi=true,-Dvapi=false," | ||
36 | |||
37 | FILES:${PN} += " \ | ||
38 | ${datadir}/dbus-1 \ | ||
39 | ${datadir}/gcr-4 \ | ||
40 | ${systemd_user_unitdir}/gcr-ssh-agent.socket \ | ||
41 | ${systemd_user_unitdir}/gcr-ssh-agent.service \ | ||
42 | " | ||
43 | |||
44 | # http://errors.yoctoproject.org/Errors/Details/20229/ | ||
45 | ARM_INSTRUCTION_SET:armv4 = "arm" | ||
46 | ARM_INSTRUCTION_SET:armv5 = "arm" | ||
47 | ARM_INSTRUCTION_SET:armv6 = "arm" | ||
48 | |||
49 | EXTRA_OEMESON += "--cross-file=${WORKDIR}/meson-${PN}.cross" | ||
50 | |||
51 | do_write_config:append() { | ||
52 | cat >${WORKDIR}/meson-${PN}.cross <<EOF | ||
53 | [binaries] | ||
54 | gpg2 = '${bindir}/gpg2' | ||
55 | ssh-add = '${bindir}/ssh-add' | ||
56 | ssh-agent = '${bindir}/ssh-agent' | ||
57 | EOF | ||
58 | } | ||