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