diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2019-05-12 16:16:26 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-05-12 17:55:11 +0100 |
commit | 0ac1bb797a0793f8835f4da64c361dcb820f2ee1 (patch) | |
tree | 3cf6592cb42dd59a8c0751fca7403ca47116e581 /meta/recipes-support/gpgme/gpgme_1.13.0.bb | |
parent | 91227184b59df30222e45abf2edf13e4e65164a1 (diff) | |
download | poky-0ac1bb797a0793f8835f4da64c361dcb820f2ee1.tar.gz |
gpgme: upgrade 1.12.0 -> 1.13.0
- Revert gpgrt-config support which oe-core does not support it
- Rebase 0002-gpgme-lang-python-gpg-error-config-should-not-be-use.patch
and 0001-pkgconfig.patch
- Tweak LANGUAGES, since upstream auto check the version of python rather
than specify option
[ff6ff61 python: Auto-check for all installed python versions.]
License-update: SPDX identifiers site and formats
[8d91c0f Add SPDX identifiers to most source files]
"s/LGPL-2.1+/LGPL-2.1-or-later/"
"s#https://www.gnu.org/licenses#https://gnu.org/licenses#"
(From OE-Core rev: 991d374edd6fc66400dad0c54f007bfaaa46e47a)
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/gpgme/gpgme_1.13.0.bb')
-rw-r--r-- | meta/recipes-support/gpgme/gpgme_1.13.0.bb | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/meta/recipes-support/gpgme/gpgme_1.13.0.bb b/meta/recipes-support/gpgme/gpgme_1.13.0.bb new file mode 100644 index 0000000000..cbd37da303 --- /dev/null +++ b/meta/recipes-support/gpgme/gpgme_1.13.0.bb | |||
@@ -0,0 +1,85 @@ | |||
1 | SUMMARY = "High-level GnuPG encryption/signing API" | ||
2 | DESCRIPTION = "GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG easier for applications. It provides a High-Level Crypto API for encryption, decryption, signing, signature verification and key management" | ||
3 | HOMEPAGE = "http://www.gnupg.org/gpgme.html" | ||
4 | BUGTRACKER = "https://bugs.g10code.com/gnupg/index" | ||
5 | |||
6 | LICENSE = "GPLv2+ & LGPLv2.1+" | ||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ | ||
8 | file://COPYING.LESSER;md5=bbb461211a33b134d42ed5ee802b37ff \ | ||
9 | file://src/gpgme.h.in;endline=23;md5=2f0bf06d1c7dcb28532a9d0f94a7ca1d \ | ||
10 | file://src/engine.h;endline=22;md5=4b6d8ba313d9b564cc4d4cfb1640af9d" | ||
11 | |||
12 | UPSTREAM_CHECK_URI = "https://gnupg.org/download/index.html" | ||
13 | SRC_URI = "${GNUPG_MIRROR}/gpgme/${BP}.tar.bz2 \ | ||
14 | file://0001-Revert-build-Make-gpgme.m4-use-gpgrt-config-with-.pc.patch \ | ||
15 | file://0001-pkgconfig.patch \ | ||
16 | file://0002-gpgme-lang-python-gpg-error-config-should-not-be-use.patch \ | ||
17 | file://0003-Correctly-install-python-modules.patch \ | ||
18 | file://0004-python-import.patch \ | ||
19 | file://0005-gpgme-config-skip-all-lib-or-usr-lib-directories-in-.patch \ | ||
20 | file://0006-fix-build-path-issue.patch \ | ||
21 | file://0007-python-Add-variables-to-tests.patch \ | ||
22 | file://0008-do-not-auto-check-var-PYTHON.patch \ | ||
23 | " | ||
24 | |||
25 | SRC_URI[md5sum] = "e511a0d95c507ab87e713140c82fc7d0" | ||
26 | SRC_URI[sha256sum] = "d4b23e47a9e784a63e029338cce0464a82ce0ae4af852886afda410f9e39c630" | ||
27 | |||
28 | DEPENDS = "libgpg-error libassuan" | ||
29 | RDEPENDS_${PN}-cpp += "libstdc++" | ||
30 | |||
31 | RDEPENDS_python2-gpg += "python-unixadmin" | ||
32 | RDEPENDS_python3-gpg += "python3-unixadmin" | ||
33 | |||
34 | BINCONFIG = "${bindir}/gpgme-config" | ||
35 | |||
36 | # Note select python2 or python3, but you can't select both at the same time | ||
37 | PACKAGECONFIG ??= "python3" | ||
38 | PACKAGECONFIG[python2] = ",,python swig-native," | ||
39 | PACKAGECONFIG[python3] = ",,python3 swig-native," | ||
40 | |||
41 | # Default in configure.ac: "cl cpp python qt" | ||
42 | # Supported: "cl cpp python python2 python3 qt" | ||
43 | # python says 'search and find python2 or python3' | ||
44 | |||
45 | # Building the C++ bindings for native requires a C++ compiler with C++11 | ||
46 | # support. Since these bindings are currently not needed, we can disable them. | ||
47 | DEFAULT_LANGUAGES = "" | ||
48 | DEFAULT_LANGUAGES_class-target = "cpp" | ||
49 | LANGUAGES ?= "${DEFAULT_LANGUAGES} python" | ||
50 | |||
51 | PYTHON_INHERIT = "${@bb.utils.contains('PACKAGECONFIG', 'python2', 'pythonnative', '', d)}" | ||
52 | PYTHON_INHERIT .= "${@bb.utils.contains('PACKAGECONFIG', 'python3', 'python3native', '', d)}" | ||
53 | |||
54 | EXTRA_OECONF += '--enable-languages="${LANGUAGES}" \ | ||
55 | --disable-gpgconf-test \ | ||
56 | --disable-gpg-test \ | ||
57 | --disable-gpgsm-test \ | ||
58 | --disable-g13-test \ | ||
59 | --disable-lang-python-test \ | ||
60 | ' | ||
61 | |||
62 | inherit autotools texinfo binconfig-disabled pkgconfig distutils-common-base ${PYTHON_INHERIT} | ||
63 | |||
64 | export PKG_CONFIG='pkg-config' | ||
65 | |||
66 | BBCLASSEXTEND = "native nativesdk" | ||
67 | |||
68 | PACKAGES =+ "${PN}-cpp" | ||
69 | PACKAGES =. "${@bb.utils.contains('PACKAGECONFIG', 'python2', 'python2-gpg ', '', d)}" | ||
70 | PACKAGES =. "${@bb.utils.contains('PACKAGECONFIG', 'python3', 'python3-gpg ', '', d)}" | ||
71 | |||
72 | FILES_${PN}-cpp = "${libdir}/libgpgmepp.so.*" | ||
73 | FILES_python2-gpg = "${PYTHON_SITEPACKAGES_DIR}/*" | ||
74 | FILES_python3-gpg = "${PYTHON_SITEPACKAGES_DIR}/*" | ||
75 | FILES_${PN}-dev += "${datadir}/common-lisp/source/gpgme/* \ | ||
76 | ${libdir}/cmake/* \ | ||
77 | " | ||
78 | |||
79 | CFLAGS_append_libc-musl = " -D__error_t_defined " | ||
80 | do_configure_prepend () { | ||
81 | # Else these could be used in preference to those in aclocal-copy | ||
82 | rm -f ${S}/m4/gpg-error.m4 | ||
83 | rm -f ${S}/m4/libassuan.m4 | ||
84 | rm -f ${S}/m4/python.m4 | ||
85 | } | ||