Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/qca/
Date: Tue, 09 Apr 2019 15:14:22
Message-Id: 1554822816.bfb5b62beb453f8aee57c12cda260e3b75f0f980.asturm@gentoo
1 commit: bfb5b62beb453f8aee57c12cda260e3b75f0f980
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 9 13:26:42 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 9 15:13:36 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bfb5b62b
7
8 app-crypt/qca: 2.2.0 version bump
9
10 Bug: https://bugs.gentoo.org/679680
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12 Package-Manager: Portage-2.3.62, Repoman-2.3.11
13
14 app-crypt/qca/Manifest | 1 +
15 app-crypt/qca/qca-2.2.0.ebuild | 87 ++++++++++++++++++++++++++++++++++++++++++
16 2 files changed, 88 insertions(+)
17
18 diff --git a/app-crypt/qca/Manifest b/app-crypt/qca/Manifest
19 index b88e6a5d11a..e52e4a900e5 100644
20 --- a/app-crypt/qca/Manifest
21 +++ b/app-crypt/qca/Manifest
22 @@ -1,2 +1,3 @@
23 DIST qca-2.1.3.tar.xz 686340 BLAKE2B 60ebf9add907632ed17426ee53c6c35a9aed279a4492012f1c174608cbe9579d366feb7ff7bff551d2e9e4ef2f271e8f340fcb4c9e1f67f209657d388567d44f SHA512 0aec277e0695da2e45298f0a9006213829fe4c449a79969e472947db54f45000ba6e22361b782465bdc03f269b7301d318c843f5a83db459a118e58a03f3116a
24 +DIST qca-2.2.0.tar.xz 691264 BLAKE2B 3b9196372c8a8f2e50a86a8a581a549d52a324cbfa919945683222d605747f7127af469a1de0310e24e823243ab4cd884a763b7baac94048e739f49d2a31dcbf SHA512 2a3f73bbd73ae8f74b2b4ec143bc010b7efaba267fc3349fc681623f29a288f69e5c457597f4964f88172a98e0a7eba6d2555675704d5d7026df794b8f772e69
25 DIST qca-2.2.0_pre20180606.tar.xz 700756 BLAKE2B 0204854a664f211e9289cd4609938fd21e62de5bec5d7f5a99843a12483c960b6f8cc7392dc84bcf0676220411106bf7f23c5059d4f7031791fe9a3259d21d2c SHA512 78f9f8ebc726e95768034c580d5ac30933f7c06e026b7daad04f11477dc623e4267895e409f7830c5149e620876dcc524278ef569956d03820b0864d629c4df8
26
27 diff --git a/app-crypt/qca/qca-2.2.0.ebuild b/app-crypt/qca/qca-2.2.0.ebuild
28 new file mode 100644
29 index 00000000000..d42db14e774
30 --- /dev/null
31 +++ b/app-crypt/qca/qca-2.2.0.ebuild
32 @@ -0,0 +1,87 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit cmake-utils qmake-utils
39 +
40 +DESCRIPTION="Qt Cryptographic Architecture (QCA)"
41 +HOMEPAGE="https://userbase.kde.org/QCA"
42 +SRC_URI="mirror://kde/stable/${PN}/${PV}/${P}.tar.xz"
43 +
44 +LICENSE="LGPL-2.1"
45 +SLOT="2"
46 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris"
47 +
48 +IUSE="botan debug doc examples gcrypt gpg libressl logger nss pkcs11 sasl softstore +ssl test"
49 +
50 +BDEPEND="
51 + doc? ( app-doc/doxygen )
52 +"
53 +RDEPEND="
54 + dev-qt/qtcore:5
55 + botan? ( dev-libs/botan:= )
56 + gcrypt? ( dev-libs/libgcrypt:= )
57 + gpg? ( app-crypt/gnupg )
58 + nss? ( dev-libs/nss )
59 + pkcs11? (
60 + !libressl? ( dev-libs/openssl:0 )
61 + libressl? ( dev-libs/libressl )
62 + dev-libs/pkcs11-helper
63 + )
64 + sasl? ( dev-libs/cyrus-sasl:2 )
65 + ssl? (
66 + !libressl? ( >=dev-libs/openssl-1.0.1:0= )
67 + libressl? ( dev-libs/libressl:= )
68 + )
69 +"
70 +DEPEND="${RDEPEND}
71 + test? (
72 + dev-qt/qtnetwork:5
73 + dev-qt/qttest:5
74 + )
75 +"
76 +
77 +PATCHES=( "${FILESDIR}/${PN}-disable-pgp-test.patch" )
78 +
79 +qca_plugin_use() {
80 + echo -DWITH_${2:-$1}_PLUGIN=$(usex "$1")
81 +}
82 +
83 +src_configure() {
84 + local mycmakeargs=(
85 + -DQCA_FEATURE_INSTALL_DIR="${EPREFIX}$(qt5_get_mkspecsdir)/features"
86 + -DQCA_PLUGINS_INSTALL_DIR="${EPREFIX}$(qt5_get_plugindir)"
87 + $(qca_plugin_use botan)
88 + $(qca_plugin_use gcrypt)
89 + $(qca_plugin_use gpg gnupg)
90 + $(qca_plugin_use logger)
91 + $(qca_plugin_use nss)
92 + $(qca_plugin_use pkcs11)
93 + $(qca_plugin_use sasl cyrus-sasl)
94 + $(qca_plugin_use softstore)
95 + $(qca_plugin_use ssl ossl)
96 + -DBUILD_TESTS=$(usex test)
97 + )
98 + cmake-utils_src_configure
99 +}
100 +
101 +src_test() {
102 + local -x QCA_PLUGIN_PATH="${BUILD_DIR}/lib/qca"
103 + cmake-utils_src_test
104 +}
105 +
106 +src_install() {
107 + cmake-utils_src_install
108 +
109 + if use doc; then
110 + pushd "${BUILD_DIR}" >/dev/null || die
111 + doxygen Doxyfile || die
112 + dodoc -r apidocs/html
113 + popd >/dev/null || die
114 + fi
115 +
116 + if use examples; then
117 + dodoc -r "${S}"/examples
118 + fi
119 +}