Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/qca/files/, app-crypt/qca/
Date: Thu, 24 Sep 2015 19:14:21
Message-Id: 1443122034.8144af61e7bb3fa892bbc5d563bc7a5b5074e2ee.kensington@gentoo
1 commit: 8144af61e7bb3fa892bbc5d563bc7a5b5074e2ee
2 Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
3 AuthorDate: Wed Sep 23 22:00:02 2015 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 24 19:13:54 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8144af61
7
8 app-crypt/qca: Add upstream fix to use Q_SLOTS/Q_SIGNALS
9
10 Fixes build of kde-plasma/plasma-nm-9999 (and possibly others)
11 RR: https://git.reviewboard.kde.org/r/125289/
12 Upstream Commit: 66b9754170759d9333d5fc1e348642814d0310dd
13
14 Package-Manager: portage-2.2.20.1
15
16 .../qca/files/qca-2.1.0.3-fix-signals-slots.patch | 28 +++++
17 app-crypt/qca/qca-2.1.0.3-r1.ebuild | 124 +++++++++++++++++++++
18 2 files changed, 152 insertions(+)
19
20 diff --git a/app-crypt/qca/files/qca-2.1.0.3-fix-signals-slots.patch b/app-crypt/qca/files/qca-2.1.0.3-fix-signals-slots.patch
21 new file mode 100644
22 index 0000000..d03a178
23 --- /dev/null
24 +++ b/app-crypt/qca/files/qca-2.1.0.3-fix-signals-slots.patch
25 @@ -0,0 +1,28 @@
26 +From: Jan Grulich <jgrulich@××××××.com>
27 +Date: Thu, 17 Sep 2015 14:14:24 +0000
28 +Subject: Use Q_SLOTS/Q_SIGNALS instead of slots/signals in all headers from include dir
29 +X-Git-Url: http://quickgit.kde.org/?p=qca.git&a=commitdiff&h=66b9754170759d9333d5fc1e348642814d0310dd
30 +---
31 +Use Q_SLOTS/Q_SIGNALS instead of slots/signals in all headers from include dir
32 +REVIEW:125289
33 +---
34 +
35 +
36 +--- a/include/QtCrypto/qca_safetimer.h
37 ++++ b/include/QtCrypto/qca_safetimer.h
38 +@@ -44,12 +44,12 @@
39 + void setSingleShot(bool singleShot);
40 + int timerId() const;
41 +
42 +-public slots:
43 ++public Q_SLOTS:
44 + void start(int msec);
45 + void start();
46 + void stop();
47 +
48 +-signals:
49 ++Q_SIGNALS:
50 + void timeout();
51 +
52 + protected:
53 +
54
55 diff --git a/app-crypt/qca/qca-2.1.0.3-r1.ebuild b/app-crypt/qca/qca-2.1.0.3-r1.ebuild
56 new file mode 100644
57 index 0000000..0557851
58 --- /dev/null
59 +++ b/app-crypt/qca/qca-2.1.0.3-r1.ebuild
60 @@ -0,0 +1,124 @@
61 +# Copyright 1999-2015 Gentoo Foundation
62 +# Distributed under the terms of the GNU General Public License v2
63 +# $Id$
64 +
65 +EAPI=5
66 +
67 +inherit cmake-utils multibuild qmake-utils
68 +
69 +MY_PN="${PN}-qt5"
70 +
71 +DESCRIPTION="Qt Cryptographic Architecture (QCA)"
72 +HOMEPAGE="http://delta.affinix.com/qca/"
73 +SRC_URI="mirror://kde/stable/${MY_PN}/${PV}/src/${MY_PN}-${PV}.tar.xz"
74 +
75 +LICENSE="LGPL-2.1"
76 +SLOT="2"
77 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris"
78 +
79 +IUSE="botan debug doc examples gcrypt gpg logger nss +openssl pkcs11 +qt4 qt5 sasl softstore test"
80 +REQUIRED_USE="|| ( qt4 qt5 )"
81 +
82 +RDEPEND="
83 + !app-crypt/qca-cyrus-sasl
84 + !app-crypt/qca-gnupg
85 + !app-crypt/qca-logger
86 + !app-crypt/qca-ossl
87 + !app-crypt/qca-pkcs11
88 + botan? ( dev-libs/botan )
89 + gcrypt? ( dev-libs/libgcrypt:= )
90 + gpg? ( app-crypt/gnupg )
91 + nss? ( dev-libs/nss )
92 + openssl? ( >=dev-libs/openssl-1.0.1:0 )
93 + pkcs11? (
94 + dev-libs/openssl:0
95 + dev-libs/pkcs11-helper
96 + )
97 + qt4? ( dev-qt/qtcore:4 )
98 + qt5? (
99 + dev-qt/qtcore:5
100 + dev-qt/qtconcurrent:5
101 + dev-qt/qtnetwork:5
102 + )
103 + sasl? ( dev-libs/cyrus-sasl:2 )
104 +"
105 +DEPEND="${RDEPEND}
106 + doc? ( app-doc/doxygen )
107 + test? (
108 + qt4? ( dev-qt/qttest:4 )
109 + qt5? ( dev-qt/qttest:5 )
110 + )
111 +"
112 +
113 +S=${WORKDIR}/${MY_PN}-${PV}
114 +
115 +DOCS=( README TODO )
116 +
117 +PATCHES=(
118 + "${FILESDIR}/${PN}-disable-pgp-test.patch"
119 + "${FILESDIR}/${P}-qt55.patch"
120 + "${FILESDIR}/${P}-fix-signals-slots.patch"
121 +)
122 +
123 +qca_plugin_use() {
124 + echo -DWITH_${2:-$1}_PLUGIN=$(usex "$1")
125 +}
126 +
127 +pkg_setup() {
128 + MULTIBUILD_VARIANTS=( $(usev qt4) $(usev qt5) )
129 +}
130 +
131 +src_configure() {
132 + myconfigure() {
133 + local mycmakeargs=(
134 + -DQCA_FEATURE_INSTALL_DIR="${EPREFIX}$(${MULTIBUILD_VARIANT}_get_mkspecsdir)/features"
135 + -DQCA_PLUGINS_INSTALL_DIR="${EPREFIX}$(${MULTIBUILD_VARIANT}_get_plugindir)"
136 + $(qca_plugin_use botan)
137 + $(qca_plugin_use gcrypt)
138 + $(qca_plugin_use gpg gnupg)
139 + $(qca_plugin_use logger)
140 + $(qca_plugin_use nss)
141 + $(qca_plugin_use openssl ossl)
142 + $(qca_plugin_use pkcs11)
143 + $(qca_plugin_use sasl cyrus-sasl)
144 + $(qca_plugin_use softstore)
145 + $(cmake-utils_use_build test TESTS)
146 + )
147 +
148 + if [[ ${MULTIBUILD_VARIANT} == qt4 ]]; then
149 + mycmakeargs+=(-DQT4_BUILD=ON)
150 + fi
151 +
152 + cmake-utils_src_configure
153 + }
154 +
155 + multibuild_foreach_variant myconfigure
156 +}
157 +
158 +src_compile() {
159 + multibuild_foreach_variant cmake-utils_src_compile
160 +}
161 +
162 +src_test() {
163 + mytest() {
164 + local -x QCA_PLUGIN_PATH="${BUILD_DIR}/lib/qca"
165 + cmake-utils_src_test
166 + }
167 +
168 + multibuild_foreach_variant mytest
169 +}
170 +
171 +src_install() {
172 + multibuild_foreach_variant cmake-utils_src_install
173 +
174 + if use doc; then
175 + pushd "${BUILD_DIR}" >/dev/null || die
176 + doxygen Doxyfile.in || die
177 + dodoc -r apidocs/html
178 + popd >/dev/null || die
179 + fi
180 +
181 + if use examples; then
182 + dodoc -r "${S}"/examples
183 + fi
184 +}