Gentoo Archives: gentoo-commits

From: Quentin Retornaz <gentoo@××××××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/libressl:master commit in: app-crypt/qca/files/, app-crypt/qca/
Date: Sun, 05 Jun 2022 01:46:35
Message-Id: 1654393539.896edbbf9188b6770754c75abe2256a803c4fc55.quentin@gentoo
1 commit: 896edbbf9188b6770754c75abe2256a803c4fc55
2 Author: orbea <orbea <AT> riseup <DOT> net>
3 AuthorDate: Sat Jun 4 04:27:18 2022 +0000
4 Commit: Quentin Retornaz <gentoo <AT> retornaz <DOT> com>
5 CommitDate: Sun Jun 5 01:45:39 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=896edbbf
7
8 app-crypt/qca: Remove old versions
9
10 Signed-off-by: orbea <orbea <AT> riseup.net>
11 Closes: https://github.com/gentoo/libressl/pull/416
12 Signed-off-by: Quentin Retornaz <gentoo <AT> retornaz.com>
13
14 app-crypt/qca/Manifest | 2 -
15 app-crypt/qca/files/qca-2.2.0-libressl.patch | 116 ---------------------------
16 app-crypt/qca/files/qca-2.3.0-libressl.patch | 68 ----------------
17 app-crypt/qca/files/qca-2.3.1-libressl.patch | 104 ------------------------
18 app-crypt/qca/qca-2.3.0.ebuild | 87 --------------------
19 app-crypt/qca/qca-2.3.1.ebuild | 87 --------------------
20 6 files changed, 464 deletions(-)
21
22 diff --git a/app-crypt/qca/Manifest b/app-crypt/qca/Manifest
23 index a5a57d8..aad1181 100644
24 --- a/app-crypt/qca/Manifest
25 +++ b/app-crypt/qca/Manifest
26 @@ -1,3 +1 @@
27 -DIST qca-2.3.0.tar.xz 729504 BLAKE2B 71cf9dfae00066c14e1055da1fa1a8e1210f538b1addfde1b99a9b26b1e8f7dd61e289d0f505b5ec04d5f4745216d4fd0f8be8f8de9e9cbf74123907ba703d0e SHA512 ca9251868e073834562fa62ffc64b3e7817c9ddadc6bc3fb99cf8b5c8d859969562170a98874be9590c617b2dd8e5590d2c83792554f54bb880c677902db22fe
28 -DIST qca-2.3.1.tar.xz 725984 BLAKE2B a99121dd95822ef5e1057dc9ad9250bb14486f42b0571936453644bc7c5649f16cbc918fa04d4a5af2c62bc35cc672159a84e27a86e685cfe320518a42076052 SHA512 092704a8d7c5973f05c82584ea55b4f8f874965aea943277e50fde873913a9bdad6a51ea74fc0036bbb632a13141cb4c030504229c06779890286205929f6021
29 DIST qca-2.3.4.tar.xz 737072 BLAKE2B 64e698135f02bf115269203d44a53d40449be1620487340551c1e45f66f042132beb2cfa2363d1249f92de3ffd670f1807219cb3ce3d6e7c05afd8c22242b703 SHA512 af27338b5c018d39c8c745b63691dec3914e29ff79347ab338f4391ee1dc9832d158b222bc9ef6c7681cf4b2893a38829a4daadf1d53622d6947de2efeb880a8
30
31 diff --git a/app-crypt/qca/files/qca-2.2.0-libressl.patch b/app-crypt/qca/files/qca-2.2.0-libressl.patch
32 deleted file mode 100644
33 index 537dd11..0000000
34 --- a/app-crypt/qca/files/qca-2.2.0-libressl.patch
35 +++ /dev/null
36 @@ -1,116 +0,0 @@
37 -From 3cfe5c3a7cfbf0b7351dedb64785b837667fc0b1 Mon Sep 17 00:00:00 2001
38 -From: Stefan Strogin <steils@g.o>
39 -Date: Wed, 2 Oct 2019 17:28:44 +0300
40 -Subject: [PATCH] Fix build with LibreSSL
41 -
42 -Provide RSA_meth_set_{sign,verify} for LibreSSL.
43 -Do not redefine M_ASN1_IA5STRING_new and RSA_F_RSA_EAY_PRIVATE_DECRYPT.
44 -Disable HKDF.
45 -
46 -Upstream-Status: Submitted [https://phabricator.kde.org/D20259]
47 -Signed-off-by: Stefan Strogin <steils@g.o>
48 ----
49 - plugins/qca-ossl/ossl110-compat.h | 35 +++++++++++++++++--------------
50 - plugins/qca-ossl/qca-ossl.cpp | 10 ++++-----
51 - 2 files changed, 24 insertions(+), 21 deletions(-)
52 -
53 -diff --git a/plugins/qca-ossl/ossl110-compat.h b/plugins/qca-ossl/ossl110-compat.h
54 -index b320707..0a8b49b 100644
55 ---- a/plugins/qca-ossl/ossl110-compat.h
56 -+++ b/plugins/qca-ossl/ossl110-compat.h
57 -@@ -205,22 +205,6 @@ static int RSA_meth_set_priv_dec(RSA_METHOD *rsa, int (*priv_dec) (int flen, con
58 - return 1;
59 - }
60 -
61 --static int RSA_meth_set_sign(RSA_METHOD *meth, int (*sign) (int type, const unsigned char *m,
62 -- unsigned int m_length, unsigned char *sigret, unsigned int *siglen, const RSA *rsa))
63 --{
64 -- if (!meth) return 0;
65 -- meth->rsa_sign = sign;
66 -- return 1;
67 --}
68 --
69 --static int RSA_meth_set_verify(RSA_METHOD *meth, int (*verify) (int dtype, const unsigned char *m,
70 -- unsigned int m_length, const unsigned char *sigbuf, unsigned int siglen, const RSA *rsa))
71 --{
72 -- if (!meth) return 0;
73 -- meth->rsa_verify = verify;
74 -- return 1;
75 --}
76 --
77 - static int RSA_meth_set_finish(RSA_METHOD *meth, int (*finish) (RSA *rsa))
78 - {
79 - if (!meth) return 0;
80 -@@ -272,4 +256,23 @@ static void HMAC_CTX_free(HMAC_CTX *ctx)
81 -
82 - #endif // OPENSSL_VERSION_NUMBER < 0x10100000L
83 -
84 -+#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || \
85 -+ (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x3000000fL)
86 -+static int RSA_meth_set_sign(RSA_METHOD *meth, int (*sign) (int type, const unsigned char *m,
87 -+ unsigned int m_length, unsigned char *sigret, unsigned int *siglen, const RSA *rsa))
88 -+{
89 -+ if (!meth) return 0;
90 -+ meth->rsa_sign = sign;
91 -+ return 1;
92 -+}
93 -+
94 -+static int RSA_meth_set_verify(RSA_METHOD *meth, int (*verify) (int dtype, const unsigned char *m,
95 -+ unsigned int m_length, const unsigned char *sigbuf, unsigned int siglen, const RSA *rsa))
96 -+{
97 -+ if (!meth) return 0;
98 -+ meth->rsa_verify = verify;
99 -+ return 1;
100 -+}
101 -+#endif // (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER)
102 -+
103 - #endif // OSSL110COMPAT_H
104 -diff --git a/plugins/qca-ossl/qca-ossl.cpp b/plugins/qca-ossl/qca-ossl.cpp
105 -index 11ecdc9..75c48fc 100644
106 ---- a/plugins/qca-ossl/qca-ossl.cpp
107 -+++ b/plugins/qca-ossl/qca-ossl.cpp
108 -@@ -62,12 +62,12 @@
109 - #endif
110 -
111 - // OpenSSL 1.1.0 compatibility macros
112 --#ifdef OSSL_110
113 -+#if defined(OSSL_110) && !defined(LIBRESSL_VERSION_NUMBER)
114 - #define M_ASN1_IA5STRING_new() ASN1_IA5STRING_new()
115 - #define RSA_F_RSA_EAY_PRIVATE_DECRYPT RSA_F_RSA_OSSL_PRIVATE_DECRYPT
116 - #endif
117 -
118 --#ifdef OSSL_110
119 -+#if defined(OSSL_110) && !defined(LIBRESSL_VERSION_NUMBER)
120 - #include <openssl/kdf.h>
121 - #endif
122 -
123 -@@ -1280,7 +1280,7 @@ public:
124 - protected:
125 - };
126 -
127 --#ifdef OSSL_110
128 -+#if defined(OSSL_110) && !defined(LIBRESSL_VERSION_NUMBER)
129 - class opensslHkdfContext : public HKDFContext
130 - {
131 - public:
132 -@@ -7416,7 +7416,7 @@ public:
133 - #endif
134 - list += "pbkdf1(sha1)";
135 - list += "pbkdf2(sha1)";
136 --#ifdef OSSL_110
137 -+#if defined(OSSL_110) && !defined(LIBRESSL_VERSION_NUMBER)
138 - list += "hkdf(sha256)";
139 - #endif
140 - list += "pkey";
141 -@@ -7489,7 +7489,7 @@ public:
142 - #endif
143 - else if ( type == "pbkdf2(sha1)" )
144 - return new opensslPbkdf2Context( this, type );
145 --#ifdef OSSL_110
146 -+#if defined(OSSL_110) && !defined(LIBRESSL_VERSION_NUMBER)
147 - else if ( type == "hkdf(sha256)" )
148 - return new opensslHkdfContext( this, type );
149 - #endif
150 ---
151 -2.23.0
152 -
153
154 diff --git a/app-crypt/qca/files/qca-2.3.0-libressl.patch b/app-crypt/qca/files/qca-2.3.0-libressl.patch
155 deleted file mode 100644
156 index c06ba60..0000000
157 --- a/app-crypt/qca/files/qca-2.3.0-libressl.patch
158 +++ /dev/null
159 @@ -1,68 +0,0 @@
160 -From c3001c187f91a6eccfcb75828876f03f5310d283 Mon Sep 17 00:00:00 2001
161 -From: Stefan Strogin <steils@g.o>
162 -Date: Wed, 26 Feb 2020 04:41:28 +0200
163 -Subject: [PATCH] Fix build with LibreSSL
164 -
165 -Signed-off-by: Stefan Strogin <steils@g.o>
166 ----
167 - plugins/qca-ossl/qca-ossl.cpp | 12 ++++++++++++
168 - 1 file changed, 12 insertions(+)
169 -
170 -diff --git a/plugins/qca-ossl/qca-ossl.cpp b/plugins/qca-ossl/qca-ossl.cpp
171 -index 559dc3f6..5ba9f1e7 100644
172 ---- a/plugins/qca-ossl/qca-ossl.cpp
173 -+++ b/plugins/qca-ossl/qca-ossl.cpp
174 -@@ -41,7 +41,13 @@
175 - #include <openssl/pkcs12.h>
176 - #include <openssl/ssl.h>
177 -
178 -+#ifndef RSA_F_RSA_OSSL_PRIVATE_DECRYPT
179 -+#define RSA_F_RSA_OSSL_PRIVATE_DECRYPT RSA_F_RSA_EAY_PRIVATE_DECRYPT
180 -+#endif
181 -+
182 -+#ifndef LIBRESSL_VERSION_NUMBER
183 - #include <openssl/kdf.h>
184 -+#endif
185 -
186 - using namespace QCA;
187 -
188 -@@ -1255,6 +1261,7 @@ public:
189 - protected:
190 - };
191 -
192 -+#ifndef LIBRESSL_VERSION_NUMBER
193 - class opensslHkdfContext : public HKDFContext
194 - {
195 - Q_OBJECT
196 -@@ -1284,6 +1291,7 @@ public:
197 - return out;
198 - }
199 - };
200 -+#endif // LIBRESSL_VERSION_NUMBER
201 -
202 - class opensslHMACContext : public MACContext
203 - {
204 -@@ -7268,7 +7276,9 @@ public:
205 - #endif
206 - list += QStringLiteral("pbkdf1(sha1)");
207 - list += QStringLiteral("pbkdf2(sha1)");
208 -+#ifndef LIBRESSL_VERSION_NUMBER
209 - list += QStringLiteral("hkdf(sha256)");
210 -+#endif
211 - list += QStringLiteral("pkey");
212 - list += QStringLiteral("dlgroup");
213 - list += QStringLiteral("rsa");
214 -@@ -7337,8 +7347,10 @@ public:
215 - #endif
216 - else if ( type == QLatin1String("pbkdf2(sha1)") )
217 - return new opensslPbkdf2Context( this, type );
218 -+#ifndef LIBRESSL_VERSION_NUMBER
219 - else if ( type == QLatin1String("hkdf(sha256)") )
220 - return new opensslHkdfContext( this, type );
221 -+#endif
222 - else if ( type == QLatin1String("hmac(md5)") )
223 - return new opensslHMACContext( EVP_md5(), this, type );
224 - else if ( type == QLatin1String("hmac(sha1)") )
225 ---
226 -2.25.1
227 -
228
229 diff --git a/app-crypt/qca/files/qca-2.3.1-libressl.patch b/app-crypt/qca/files/qca-2.3.1-libressl.patch
230 deleted file mode 100644
231 index 0424378..0000000
232 --- a/app-crypt/qca/files/qca-2.3.1-libressl.patch
233 +++ /dev/null
234 @@ -1,104 +0,0 @@
235 -From 56f60bc221d88e0753494c3e7ee320dc0f9de030 Mon Sep 17 00:00:00 2001
236 -From: Stefan Strogin <steils@g.o>
237 -Date: Wed, 26 Feb 2020 04:41:28 +0200
238 -Subject: [PATCH] Fix build with LibreSSL
239 -
240 -Signed-off-by: Stefan Strogin <steils@g.o>
241 ----
242 - plugins/qca-ossl/qca-ossl.cpp | 24 ++++++++++++++++++++++++
243 - 1 file changed, 24 insertions(+)
244 -
245 -diff --git a/plugins/qca-ossl/qca-ossl.cpp b/plugins/qca-ossl/qca-ossl.cpp
246 -index ee872d72..4ee5d7c8 100644
247 ---- a/plugins/qca-ossl/qca-ossl.cpp
248 -+++ b/plugins/qca-ossl/qca-ossl.cpp
249 -@@ -41,7 +41,13 @@
250 - #include <openssl/pkcs12.h>
251 - #include <openssl/ssl.h>
252 -
253 -+#ifndef RSA_F_RSA_OSSL_PRIVATE_DECRYPT
254 -+#define RSA_F_RSA_OSSL_PRIVATE_DECRYPT RSA_F_RSA_EAY_PRIVATE_DECRYPT
255 -+#endif
256 -+
257 -+#ifndef LIBRESSL_VERSION_NUMBER
258 - #include <openssl/kdf.h>
259 -+#endif
260 -
261 - using namespace QCA;
262 -
263 -@@ -1262,6 +1268,7 @@ public:
264 - protected:
265 - };
266 -
267 -+#ifndef LIBRESSL_VERSION_NUMBER
268 - class opensslHkdfContext : public HKDFContext
269 - {
270 - Q_OBJECT
271 -@@ -1291,6 +1298,7 @@ public:
272 - return out;
273 - }
274 - };
275 -+#endif // LIBRESSL_VERSION_NUMBER
276 -
277 - class opensslHMACContext : public MACContext
278 - {
279 -@@ -4990,7 +4998,11 @@ public:
280 - case TLS::TLS_v1:
281 - ctx = SSL_CTX_new(TLS_client_method());
282 - SSL_CTX_set_min_proto_version(ctx, TLS1_VERSION);
283 -+#ifdef TLS1_3_VERSION
284 - SSL_CTX_set_max_proto_version(ctx, TLS1_3_VERSION);
285 -+#else
286 -+ SSL_CTX_set_max_proto_version(ctx, TLS1_2_VERSION);
287 -+#endif
288 - break;
289 - case TLS::DTLS_v1:
290 - default:
291 -@@ -5011,7 +5023,11 @@ public:
292 - QStringList cipherList;
293 - for(int i = 0; i < sk_SSL_CIPHER_num(sk); ++i) {
294 - const SSL_CIPHER *thisCipher = sk_SSL_CIPHER_value(sk, i);
295 -+#ifndef LIBRESSL_VERSION_NUMBER
296 - cipherList += QString::fromLatin1(SSL_CIPHER_standard_name(thisCipher));
297 -+#else
298 -+ cipherList += QString::fromLatin1(SSL_CIPHER_get_name(thisCipher));
299 -+#endif
300 - }
301 - sk_SSL_CIPHER_free(sk);
302 -
303 -@@ -5404,7 +5420,11 @@ public:
304 - sessInfo.version = TLS::TLS_v1;
305 - }
306 -
307 -+#ifndef LIBRESSL_VERSION_NUMBER
308 - sessInfo.cipherSuite = QString::fromLatin1(SSL_CIPHER_standard_name(SSL_get_current_cipher(ssl)));
309 -+#else
310 -+ sessInfo.cipherSuite = QString::fromLatin1(SSL_CIPHER_get_name(SSL_get_current_cipher(ssl)));
311 -+#endif
312 -
313 - sessInfo.cipherMaxBits = SSL_get_cipher_bits(ssl, &(sessInfo.cipherBits));
314 -
315 -@@ -6751,7 +6771,9 @@ public:
316 - #endif
317 - list += QStringLiteral("pbkdf1(sha1)");
318 - list += QStringLiteral("pbkdf2(sha1)");
319 -+#ifndef LIBRESSL_VERSION_NUMBER
320 - list += QStringLiteral("hkdf(sha256)");
321 -+#endif
322 - list += QStringLiteral("pkey");
323 - list += QStringLiteral("dlgroup");
324 - list += QStringLiteral("rsa");
325 -@@ -6820,8 +6842,10 @@ public:
326 - #endif
327 - else if ( type == QLatin1String("pbkdf2(sha1)") )
328 - return new opensslPbkdf2Context( this, type );
329 -+#ifndef LIBRESSL_VERSION_NUMBER
330 - else if ( type == QLatin1String("hkdf(sha256)") )
331 - return new opensslHkdfContext( this, type );
332 -+#endif
333 - else if ( type == QLatin1String("hmac(md5)") )
334 - return new opensslHMACContext( EVP_md5(), this, type );
335 - else if ( type == QLatin1String("hmac(sha1)") )
336 ---
337 -2.27.0
338 -
339
340 diff --git a/app-crypt/qca/qca-2.3.0.ebuild b/app-crypt/qca/qca-2.3.0.ebuild
341 deleted file mode 100644
342 index 049f0e1..0000000
343 --- a/app-crypt/qca/qca-2.3.0.ebuild
344 +++ /dev/null
345 @@ -1,87 +0,0 @@
346 -# Copyright 1999-2021 Gentoo Authors
347 -# Distributed under the terms of the GNU General Public License v2
348 -
349 -EAPI=7
350 -
351 -inherit kde.org cmake qmake-utils
352 -
353 -DESCRIPTION="Qt Cryptographic Architecture (QCA)"
354 -HOMEPAGE="https://userbase.kde.org/QCA"
355 -SRC_URI="mirror://kde/stable/${PN}/${PV}/${P}.tar.xz"
356 -
357 -LICENSE="LGPL-2.1"
358 -SLOT="2"
359 -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris"
360 -IUSE="botan debug doc examples gcrypt gpg logger nss pkcs11 sasl softstore +ssl test"
361 -
362 -RESTRICT="!test? ( test )"
363 -
364 -BDEPEND="
365 - doc? ( app-doc/doxygen )
366 -"
367 -RDEPEND="
368 - dev-qt/qtcore:5
369 - botan? ( dev-libs/botan:= )
370 - gcrypt? ( dev-libs/libgcrypt:= )
371 - gpg? ( app-crypt/gnupg )
372 - nss? ( dev-libs/nss )
373 - pkcs11? (
374 - >=dev-libs/openssl-1.1
375 - dev-libs/pkcs11-helper
376 - )
377 - sasl? ( dev-libs/cyrus-sasl:2 )
378 - ssl? ( >=dev-libs/openssl-1.1:0= )
379 -"
380 -DEPEND="${RDEPEND}
381 - test? (
382 - dev-qt/qtnetwork:5
383 - dev-qt/qttest:5
384 - )
385 -"
386 -
387 -PATCHES=(
388 - "${FILESDIR}/${PN}-disable-pgp-test.patch"
389 - "${FILESDIR}/${P}-libressl.patch"
390 -)
391 -
392 -qca_plugin_use() {
393 - echo -DWITH_${2:-$1}_PLUGIN=$(usex "$1")
394 -}
395 -
396 -src_configure() {
397 - local mycmakeargs=(
398 - -DQCA_FEATURE_INSTALL_DIR="${EPREFIX}$(qt5_get_mkspecsdir)/features"
399 - -DQCA_PLUGINS_INSTALL_DIR="${EPREFIX}$(qt5_get_plugindir)"
400 - $(qca_plugin_use botan)
401 - $(qca_plugin_use gcrypt)
402 - $(qca_plugin_use gpg gnupg)
403 - $(qca_plugin_use logger)
404 - $(qca_plugin_use nss)
405 - $(qca_plugin_use pkcs11)
406 - $(qca_plugin_use sasl cyrus-sasl)
407 - $(qca_plugin_use softstore)
408 - $(qca_plugin_use ssl ossl)
409 - -DBUILD_TESTS=$(usex test)
410 - )
411 - cmake_src_configure
412 -}
413 -
414 -src_test() {
415 - local -x QCA_PLUGIN_PATH="${BUILD_DIR}/lib/qca"
416 - cmake_src_test
417 -}
418 -
419 -src_install() {
420 - cmake_src_install
421 -
422 - if use doc; then
423 - pushd "${BUILD_DIR}" >/dev/null || die
424 - doxygen Doxyfile || die
425 - dodoc -r apidocs/html
426 - popd >/dev/null || die
427 - fi
428 -
429 - if use examples; then
430 - dodoc -r "${S}"/examples
431 - fi
432 -}
433
434 diff --git a/app-crypt/qca/qca-2.3.1.ebuild b/app-crypt/qca/qca-2.3.1.ebuild
435 deleted file mode 100644
436 index 049f0e1..0000000
437 --- a/app-crypt/qca/qca-2.3.1.ebuild
438 +++ /dev/null
439 @@ -1,87 +0,0 @@
440 -# Copyright 1999-2021 Gentoo Authors
441 -# Distributed under the terms of the GNU General Public License v2
442 -
443 -EAPI=7
444 -
445 -inherit kde.org cmake qmake-utils
446 -
447 -DESCRIPTION="Qt Cryptographic Architecture (QCA)"
448 -HOMEPAGE="https://userbase.kde.org/QCA"
449 -SRC_URI="mirror://kde/stable/${PN}/${PV}/${P}.tar.xz"
450 -
451 -LICENSE="LGPL-2.1"
452 -SLOT="2"
453 -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris"
454 -IUSE="botan debug doc examples gcrypt gpg logger nss pkcs11 sasl softstore +ssl test"
455 -
456 -RESTRICT="!test? ( test )"
457 -
458 -BDEPEND="
459 - doc? ( app-doc/doxygen )
460 -"
461 -RDEPEND="
462 - dev-qt/qtcore:5
463 - botan? ( dev-libs/botan:= )
464 - gcrypt? ( dev-libs/libgcrypt:= )
465 - gpg? ( app-crypt/gnupg )
466 - nss? ( dev-libs/nss )
467 - pkcs11? (
468 - >=dev-libs/openssl-1.1
469 - dev-libs/pkcs11-helper
470 - )
471 - sasl? ( dev-libs/cyrus-sasl:2 )
472 - ssl? ( >=dev-libs/openssl-1.1:0= )
473 -"
474 -DEPEND="${RDEPEND}
475 - test? (
476 - dev-qt/qtnetwork:5
477 - dev-qt/qttest:5
478 - )
479 -"
480 -
481 -PATCHES=(
482 - "${FILESDIR}/${PN}-disable-pgp-test.patch"
483 - "${FILESDIR}/${P}-libressl.patch"
484 -)
485 -
486 -qca_plugin_use() {
487 - echo -DWITH_${2:-$1}_PLUGIN=$(usex "$1")
488 -}
489 -
490 -src_configure() {
491 - local mycmakeargs=(
492 - -DQCA_FEATURE_INSTALL_DIR="${EPREFIX}$(qt5_get_mkspecsdir)/features"
493 - -DQCA_PLUGINS_INSTALL_DIR="${EPREFIX}$(qt5_get_plugindir)"
494 - $(qca_plugin_use botan)
495 - $(qca_plugin_use gcrypt)
496 - $(qca_plugin_use gpg gnupg)
497 - $(qca_plugin_use logger)
498 - $(qca_plugin_use nss)
499 - $(qca_plugin_use pkcs11)
500 - $(qca_plugin_use sasl cyrus-sasl)
501 - $(qca_plugin_use softstore)
502 - $(qca_plugin_use ssl ossl)
503 - -DBUILD_TESTS=$(usex test)
504 - )
505 - cmake_src_configure
506 -}
507 -
508 -src_test() {
509 - local -x QCA_PLUGIN_PATH="${BUILD_DIR}/lib/qca"
510 - cmake_src_test
511 -}
512 -
513 -src_install() {
514 - cmake_src_install
515 -
516 - if use doc; then
517 - pushd "${BUILD_DIR}" >/dev/null || die
518 - doxygen Doxyfile || die
519 - dodoc -r apidocs/html
520 - popd >/dev/null || die
521 - fi
522 -
523 - if use examples; then
524 - dodoc -r "${S}"/examples
525 - fi
526 -}