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, 03 Jun 2017 21:51:29
Message-Id: 1496526674.caebd13188f7462130c2f2d6d825c1ea21a6e229.asturm@gentoo
1 commit: caebd13188f7462130c2f2d6d825c1ea21a6e229
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 3 21:49:55 2017 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 3 21:51:14 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=caebd131
7
8 app-crypt/qca: DEPEND on >=Qt-4.8.7
9
10 Ensure rebuild after Qt-4.8.7 stabilisation.
11
12 Gentoo-bug: 595618, 619326
13
14 Package-Manager: Portage-2.3.5, Repoman-2.3.1
15
16 app-crypt/qca/qca-2.1.3-r1.ebuild | 122 ++++++++++++++++++++++++++++++++++++++
17 1 file changed, 122 insertions(+)
18
19 diff --git a/app-crypt/qca/qca-2.1.3-r1.ebuild b/app-crypt/qca/qca-2.1.3-r1.ebuild
20 new file mode 100644
21 index 00000000000..1bdc07abea3
22 --- /dev/null
23 +++ b/app-crypt/qca/qca-2.1.3-r1.ebuild
24 @@ -0,0 +1,122 @@
25 +# Copyright 1999-2017 Gentoo Foundation
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=6
29 +
30 +inherit cmake-utils multibuild qmake-utils
31 +
32 +DESCRIPTION="Qt Cryptographic Architecture (QCA)"
33 +HOMEPAGE="https://userbase.kde.org/QCA"
34 +SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz"
35 +
36 +LICENSE="LGPL-2.1"
37 +SLOT="2"
38 +KEYWORDS="alpha amd64 ~arm ~arm64 hppa ~ia64 ppc ~ppc64 ~sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris"
39 +
40 +IUSE="botan debug doc examples gcrypt gpg libressl logger nss pkcs11 +qt4 qt5 sasl softstore +ssl test"
41 +REQUIRED_USE="|| ( qt4 qt5 )"
42 +
43 +RDEPEND="
44 + !app-crypt/qca-cyrus-sasl
45 + !app-crypt/qca-gnupg
46 + !app-crypt/qca-logger
47 + !app-crypt/qca-ossl
48 + !app-crypt/qca-pkcs11
49 + botan? ( dev-libs/botan:0 )
50 + gcrypt? ( dev-libs/libgcrypt:= )
51 + gpg? ( app-crypt/gnupg )
52 + nss? ( dev-libs/nss )
53 + pkcs11? (
54 + !libressl? ( dev-libs/openssl:0 )
55 + libressl? ( dev-libs/libressl )
56 + dev-libs/pkcs11-helper
57 + )
58 + qt4? ( >=dev-qt/qtcore-4.8.7-r2:4 )
59 + qt5? (
60 + dev-qt/qtcore:5
61 + dev-qt/qtconcurrent:5
62 + dev-qt/qtnetwork:5
63 + )
64 + sasl? ( dev-libs/cyrus-sasl:2 )
65 + ssl? (
66 + !libressl? ( >=dev-libs/openssl-1.0.1:0= )
67 + libressl? ( dev-libs/libressl:= )
68 + )
69 +"
70 +DEPEND="${RDEPEND}
71 + doc? ( app-doc/doxygen )
72 + test? (
73 + qt4? ( dev-qt/qttest:4 )
74 + qt5? ( dev-qt/qttest:5 )
75 + )
76 +"
77 +
78 +DOCS=( README TODO )
79 +
80 +PATCHES=(
81 + "${FILESDIR}/${PN}-disable-pgp-test.patch"
82 + "${FILESDIR}/${P}-c++11.patch"
83 +)
84 +
85 +qca_plugin_use() {
86 + echo -DWITH_${2:-$1}_PLUGIN=$(usex "$1")
87 +}
88 +
89 +pkg_setup() {
90 + MULTIBUILD_VARIANTS=( $(usev qt4) $(usev qt5) )
91 +}
92 +
93 +src_configure() {
94 + myconfigure() {
95 + local mycmakeargs=(
96 + -DQCA_FEATURE_INSTALL_DIR="${EPREFIX}$(${MULTIBUILD_VARIANT}_get_mkspecsdir)/features"
97 + -DQCA_PLUGINS_INSTALL_DIR="${EPREFIX}$(${MULTIBUILD_VARIANT}_get_plugindir)"
98 + $(qca_plugin_use botan)
99 + $(qca_plugin_use gcrypt)
100 + $(qca_plugin_use gpg gnupg)
101 + $(qca_plugin_use logger)
102 + $(qca_plugin_use nss)
103 + $(qca_plugin_use pkcs11)
104 + $(qca_plugin_use sasl cyrus-sasl)
105 + $(qca_plugin_use softstore)
106 + $(qca_plugin_use ssl ossl)
107 + -DBUILD_TESTS=$(usex test)
108 + )
109 +
110 + if [[ ${MULTIBUILD_VARIANT} == qt4 ]]; then
111 + mycmakeargs+=(-DQT4_BUILD=ON)
112 + fi
113 +
114 + cmake-utils_src_configure
115 + }
116 +
117 + multibuild_foreach_variant myconfigure
118 +}
119 +
120 +src_compile() {
121 + multibuild_foreach_variant cmake-utils_src_compile
122 +}
123 +
124 +src_test() {
125 + mytest() {
126 + local -x QCA_PLUGIN_PATH="${BUILD_DIR}/lib/qca"
127 + cmake-utils_src_test
128 + }
129 +
130 + multibuild_foreach_variant mytest
131 +}
132 +
133 +src_install() {
134 + multibuild_foreach_variant cmake-utils_src_install
135 +
136 + if use doc; then
137 + pushd "${BUILD_DIR}" >/dev/null || die
138 + doxygen Doxyfile.in || die
139 + dodoc -r apidocs/html
140 + popd >/dev/null || die
141 + fi
142 +
143 + if use examples; then
144 + dodoc -r "${S}"/examples
145 + fi
146 +}