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