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: Sat, 27 Apr 2019 14:46:09
Message-Id: 1556376349.e7075302b3782c561b5bf58f0b7b552d4a834a97.asturm@gentoo
1 commit: e7075302b3782c561b5bf58f0b7b552d4a834a97
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 27 13:08:39 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 27 14:45:49 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7075302
7
8 app-crypt/qca: 2.2.1 version bump
9
10 Package-Manager: Portage-2.3.65, Repoman-2.3.12
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 app-crypt/qca/Manifest | 1 +
14 app-crypt/qca/qca-2.2.1.ebuild | 87 ++++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 88 insertions(+)
16
17 diff --git a/app-crypt/qca/Manifest b/app-crypt/qca/Manifest
18 index 03db5e0d5f6..300dfbb1442 100644
19 --- a/app-crypt/qca/Manifest
20 +++ b/app-crypt/qca/Manifest
21 @@ -1,2 +1,3 @@
22 DIST qca-2.1.3.tar.xz 686340 BLAKE2B 60ebf9add907632ed17426ee53c6c35a9aed279a4492012f1c174608cbe9579d366feb7ff7bff551d2e9e4ef2f271e8f340fcb4c9e1f67f209657d388567d44f SHA512 0aec277e0695da2e45298f0a9006213829fe4c449a79969e472947db54f45000ba6e22361b782465bdc03f269b7301d318c843f5a83db459a118e58a03f3116a
23 DIST qca-2.2.0.tar.xz 691264 BLAKE2B 3b9196372c8a8f2e50a86a8a581a549d52a324cbfa919945683222d605747f7127af469a1de0310e24e823243ab4cd884a763b7baac94048e739f49d2a31dcbf SHA512 2a3f73bbd73ae8f74b2b4ec143bc010b7efaba267fc3349fc681623f29a288f69e5c457597f4964f88172a98e0a7eba6d2555675704d5d7026df794b8f772e69
24 +DIST qca-2.2.1.tar.xz 691676 BLAKE2B d5bcc0d6e791811e1efcdbf2e09916fe40ad682b0e59b2993c73a5bd79e09fc28facdec81259a982bee05223c8dfce78b9a6b729ca4e566c0901a13b91575379 SHA512 3a0e8aa7cf3ea9a7244facaf1d521ebca2753af37636e7bf5f21c57ae880ac9682ae7d6d9fa5ce41b73568ff9538214956b89cd41228c2cb828d9068c2031a9c
25
26 diff --git a/app-crypt/qca/qca-2.2.1.ebuild b/app-crypt/qca/qca-2.2.1.ebuild
27 new file mode 100644
28 index 00000000000..d42db14e774
29 --- /dev/null
30 +++ b/app-crypt/qca/qca-2.2.1.ebuild
31 @@ -0,0 +1,87 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit cmake-utils 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 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris"
46 +
47 +IUSE="botan debug doc examples gcrypt gpg libressl logger nss pkcs11 sasl softstore +ssl test"
48 +
49 +BDEPEND="
50 + doc? ( app-doc/doxygen )
51 +"
52 +RDEPEND="
53 + dev-qt/qtcore:5
54 + botan? ( dev-libs/botan:= )
55 + gcrypt? ( dev-libs/libgcrypt:= )
56 + gpg? ( app-crypt/gnupg )
57 + nss? ( dev-libs/nss )
58 + pkcs11? (
59 + !libressl? ( dev-libs/openssl:0 )
60 + libressl? ( dev-libs/libressl )
61 + dev-libs/pkcs11-helper
62 + )
63 + sasl? ( dev-libs/cyrus-sasl:2 )
64 + ssl? (
65 + !libressl? ( >=dev-libs/openssl-1.0.1:0= )
66 + libressl? ( dev-libs/libressl:= )
67 + )
68 +"
69 +DEPEND="${RDEPEND}
70 + test? (
71 + dev-qt/qtnetwork:5
72 + dev-qt/qttest:5
73 + )
74 +"
75 +
76 +PATCHES=( "${FILESDIR}/${PN}-disable-pgp-test.patch" )
77 +
78 +qca_plugin_use() {
79 + echo -DWITH_${2:-$1}_PLUGIN=$(usex "$1")
80 +}
81 +
82 +src_configure() {
83 + local mycmakeargs=(
84 + -DQCA_FEATURE_INSTALL_DIR="${EPREFIX}$(qt5_get_mkspecsdir)/features"
85 + -DQCA_PLUGINS_INSTALL_DIR="${EPREFIX}$(qt5_get_plugindir)"
86 + $(qca_plugin_use botan)
87 + $(qca_plugin_use gcrypt)
88 + $(qca_plugin_use gpg gnupg)
89 + $(qca_plugin_use logger)
90 + $(qca_plugin_use nss)
91 + $(qca_plugin_use pkcs11)
92 + $(qca_plugin_use sasl cyrus-sasl)
93 + $(qca_plugin_use softstore)
94 + $(qca_plugin_use ssl ossl)
95 + -DBUILD_TESTS=$(usex test)
96 + )
97 + cmake-utils_src_configure
98 +}
99 +
100 +src_test() {
101 + local -x QCA_PLUGIN_PATH="${BUILD_DIR}/lib/qca"
102 + cmake-utils_src_test
103 +}
104 +
105 +src_install() {
106 + cmake-utils_src_install
107 +
108 + if use doc; then
109 + pushd "${BUILD_DIR}" >/dev/null || die
110 + doxygen Doxyfile || die
111 + dodoc -r apidocs/html
112 + popd >/dev/null || die
113 + fi
114 +
115 + if use examples; then
116 + dodoc -r "${S}"/examples
117 + fi
118 +}