1 |
commit: 7a82073c1f8e9c2f8b4a6659cf21718406e0ec2c |
2 |
Author: Saki Xi <space_raccoon <AT> riseup <DOT> net> |
3 |
AuthorDate: Wed Nov 30 13:03:10 2022 +0000 |
4 |
Commit: Quentin Retornaz <gentoo <AT> retornaz <DOT> com> |
5 |
CommitDate: Thu Dec 1 18:17:27 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=7a82073c |
7 |
|
8 |
Bump qca, use same patch |
9 |
|
10 |
Signed-off-by: Saki Xi <space_raccoon <AT> riseup.net> |
11 |
Signed-off-by: Quentin Retornaz <gentoo <AT> retornaz.com> |
12 |
|
13 |
app-crypt/qca/Manifest | 1 + |
14 |
app-crypt/qca/qca-2.3.5.ebuild | 90 ++++++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 91 insertions(+) |
16 |
|
17 |
diff --git a/app-crypt/qca/Manifest b/app-crypt/qca/Manifest |
18 |
index aad1181..4dcbbe8 100644 |
19 |
--- a/app-crypt/qca/Manifest |
20 |
+++ b/app-crypt/qca/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST qca-2.3.4.tar.xz 737072 BLAKE2B 64e698135f02bf115269203d44a53d40449be1620487340551c1e45f66f042132beb2cfa2363d1249f92de3ffd670f1807219cb3ce3d6e7c05afd8c22242b703 SHA512 af27338b5c018d39c8c745b63691dec3914e29ff79347ab338f4391ee1dc9832d158b222bc9ef6c7681cf4b2893a38829a4daadf1d53622d6947de2efeb880a8 |
23 |
+DIST qca-2.3.5.tar.xz 741036 BLAKE2B 3948dc9b58a8ef03eec246cc14c7582d30e2513ea4b8f457a44d4a0c8f91fdb10af041f7cc342a0c8d9540a43cb47b4ca5b35641dfc3716c065fc3a1d6ff227a SHA512 656e44d4f30c3c0e1a8c04f2703484e3cff2d962b12c6ff9891b9f28127cd61ed30dcd248c059bf9066ac645bf53a9b7c14bdb413a7766c8b3f3d37426478d96 |
24 |
|
25 |
diff --git a/app-crypt/qca/qca-2.3.5.ebuild b/app-crypt/qca/qca-2.3.5.ebuild |
26 |
new file mode 100644 |
27 |
index 0000000..2991efa |
28 |
--- /dev/null |
29 |
+++ b/app-crypt/qca/qca-2.3.5.ebuild |
30 |
@@ -0,0 +1,90 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+inherit cmake kde.org 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 ~loong ~ppc ~ppc64 ~riscv ~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.14: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:= ) |
61 |
+" |
62 |
+DEPEND="${RDEPEND} |
63 |
+ test? ( |
64 |
+ dev-qt/qtnetwork:5 |
65 |
+ dev-qt/qttest:5 |
66 |
+ ) |
67 |
+" |
68 |
+BDEPEND=" |
69 |
+ doc? ( |
70 |
+ app-doc/doxygen[dot] |
71 |
+ virtual/latex-base |
72 |
+ ) |
73 |
+" |
74 |
+ |
75 |
+PATCHES=( |
76 |
+ "${FILESDIR}/${PN}-disable-pgp-test.patch" |
77 |
+ "${FILESDIR}/${PN}-2.3.4-libressl.patch" |
78 |
+) |
79 |
+ |
80 |
+qca_plugin_use() { |
81 |
+ echo -DWITH_${2:-$1}_PLUGIN=$(usex "$1") |
82 |
+} |
83 |
+ |
84 |
+src_configure() { |
85 |
+ local mycmakeargs=( |
86 |
+ -DQCA_FEATURE_INSTALL_DIR="${EPREFIX}$(qt5_get_mkspecsdir)/features" |
87 |
+ -DQCA_PLUGINS_INSTALL_DIR="${EPREFIX}$(qt5_get_plugindir)" |
88 |
+ $(qca_plugin_use botan) |
89 |
+ $(qca_plugin_use gcrypt) |
90 |
+ $(qca_plugin_use gpg gnupg) |
91 |
+ $(qca_plugin_use logger) |
92 |
+ $(qca_plugin_use nss) |
93 |
+ $(qca_plugin_use pkcs11) |
94 |
+ $(qca_plugin_use sasl cyrus-sasl) |
95 |
+ $(qca_plugin_use softstore) |
96 |
+ $(qca_plugin_use ssl ossl) |
97 |
+ -DBUILD_TESTS=$(usex test) |
98 |
+ ) |
99 |
+ cmake_src_configure |
100 |
+} |
101 |
+ |
102 |
+src_test() { |
103 |
+ local -x QCA_PLUGIN_PATH="${BUILD_DIR}/lib/qca" |
104 |
+ cmake_src_test |
105 |
+} |
106 |
+ |
107 |
+src_install() { |
108 |
+ cmake_src_install |
109 |
+ |
110 |
+ if use doc; then |
111 |
+ pushd "${BUILD_DIR}" >/dev/null || die |
112 |
+ doxygen Doxyfile || die |
113 |
+ dodoc -r apidocs/html |
114 |
+ popd >/dev/null || die |
115 |
+ fi |
116 |
+ |
117 |
+ if use examples; then |
118 |
+ dodoc -r "${S}"/examples |
119 |
+ fi |
120 |
+} |