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: Wed, 15 Sep 2021 17:49:49
Message-Id: 1631728044.86acbfdd28a0b69b0a3c744905713de91954e1e6.asturm@gentoo
1 commit: 86acbfdd28a0b69b0a3c744905713de91954e1e6
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 15 14:18:19 2021 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 15 17:47:24 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86acbfdd
7
8 app-crypt/qca: 2.3.4 version bump
9
10 Closes: https://bugs.gentoo.org/805227
11 Package-Manager: Portage-3.0.23, Repoman-3.0.3
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 app-crypt/qca/Manifest | 1 +
15 app-crypt/qca/qca-2.3.4.ebuild | 82 ++++++++++++++++++++++++++++++++++++++++++
16 2 files changed, 83 insertions(+)
17
18 diff --git a/app-crypt/qca/Manifest b/app-crypt/qca/Manifest
19 index ad17e4e1880..9a5a8c25429 100644
20 --- a/app-crypt/qca/Manifest
21 +++ b/app-crypt/qca/Manifest
22 @@ -1 +1,2 @@
23 DIST qca-2.3.3.tar.xz 736456 BLAKE2B f0812fd33bd19293c8034e48bcf214d2d70dc1397860779c2c145fe841365384a8eb6bad9859520d32104010acb0cefb97e3a974b9852a37ca8039d52d9dbd03 SHA512 9a262350502daa1dd10802a7a24f0e4712d87d4ddcf752452a51caa8694a30835672f54f8e600aa8dc4afdac9ef073641deed52a24423e304d18ad2b83deeca6
24 +DIST qca-2.3.4.tar.xz 737072 BLAKE2B 64e698135f02bf115269203d44a53d40449be1620487340551c1e45f66f042132beb2cfa2363d1249f92de3ffd670f1807219cb3ce3d6e7c05afd8c22242b703 SHA512 af27338b5c018d39c8c745b63691dec3914e29ff79347ab338f4391ee1dc9832d158b222bc9ef6c7681cf4b2893a38829a4daadf1d53622d6947de2efeb880a8
25
26 diff --git a/app-crypt/qca/qca-2.3.4.ebuild b/app-crypt/qca/qca-2.3.4.ebuild
27 new file mode 100644
28 index 00000000000..e9d27c4d209
29 --- /dev/null
30 +++ b/app-crypt/qca/qca-2.3.4.ebuild
31 @@ -0,0 +1,82 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +inherit cmake kde.org qmake-utils
38 +
39 +DESCRIPTION="Qt Cryptographic Architecture (QCA)"
40 +HOMEPAGE="https://userbase.kde.org/QCA"
41 +SRC_URI="mirror://kde/stable/${PN}/${PV}/${P}.tar.xz"
42 +
43 +LICENSE="LGPL-2.1"
44 +SLOT="2"
45 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris"
46 +IUSE="botan debug doc examples gcrypt gpg logger nss pkcs11 sasl softstore +ssl test"
47 +
48 +RESTRICT="!test? ( test )"
49 +
50 +RDEPEND="
51 + >=dev-qt/qtcore-5.14:5
52 + botan? ( dev-libs/botan:= )
53 + gcrypt? ( dev-libs/libgcrypt:= )
54 + gpg? ( app-crypt/gnupg )
55 + nss? ( dev-libs/nss )
56 + pkcs11? (
57 + >=dev-libs/openssl-1.1
58 + dev-libs/pkcs11-helper
59 + )
60 + sasl? ( dev-libs/cyrus-sasl:2 )
61 + ssl? ( >=dev-libs/openssl-1.1:= )
62 +"
63 +DEPEND="${RDEPEND}
64 + test? (
65 + dev-qt/qtnetwork:5
66 + dev-qt/qttest:5
67 + )
68 +"
69 +BDEPEND="doc? ( app-doc/doxygen )"
70 +
71 +PATCHES=( "${FILESDIR}/${PN}-disable-pgp-test.patch" )
72 +
73 +qca_plugin_use() {
74 + echo -DWITH_${2:-$1}_PLUGIN=$(usex "$1")
75 +}
76 +
77 +src_configure() {
78 + local mycmakeargs=(
79 + -DQCA_FEATURE_INSTALL_DIR="${EPREFIX}$(qt5_get_mkspecsdir)/features"
80 + -DQCA_PLUGINS_INSTALL_DIR="${EPREFIX}$(qt5_get_plugindir)"
81 + $(qca_plugin_use botan)
82 + $(qca_plugin_use gcrypt)
83 + $(qca_plugin_use gpg gnupg)
84 + $(qca_plugin_use logger)
85 + $(qca_plugin_use nss)
86 + $(qca_plugin_use pkcs11)
87 + $(qca_plugin_use sasl cyrus-sasl)
88 + $(qca_plugin_use softstore)
89 + $(qca_plugin_use ssl ossl)
90 + -DBUILD_TESTS=$(usex test)
91 + )
92 + cmake_src_configure
93 +}
94 +
95 +src_test() {
96 + local -x QCA_PLUGIN_PATH="${BUILD_DIR}/lib/qca"
97 + cmake_src_test
98 +}
99 +
100 +src_install() {
101 + cmake_src_install
102 +
103 + if use doc; then
104 + pushd "${BUILD_DIR}" >/dev/null || die
105 + doxygen Doxyfile || die
106 + dodoc -r apidocs/html
107 + popd >/dev/null || die
108 + fi
109 +
110 + if use examples; then
111 + dodoc -r "${S}"/examples
112 + fi
113 +}