blob: 96991e531ca2c7d70a976738afec8aca2fc5ca03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake flag-o-matic kde.org
DESCRIPTION="Cross-platform C++ XMPP client and server library"
HOMEPAGE="https://invent.kde.org/libraries/qxmpp"
if [[ ${KDE_BUILD_TYPE} == release ]]; then
SRC_URI="mirror://kde/unstable/${PN}/${P}.tar.xz"
KEYWORDS="amd64"
fi
LICENSE="LGPL-2.1 CC0-1.0"
SLOT="0/10"
IUSE="gstreamer omemo test"
RESTRICT="!test? ( test )"
RDEPEND="
>=dev-qt/qtbase-6.11.2:6[network,ssl,xml]
gstreamer? ( media-libs/gstreamer )
omemo? (
>=dev-libs/openssl-3:=
net-libs/libomemo-c
)
"
DEPEND="${RDEPEND}"
# doc? (
# dev-qt/qttools:6[qdoc]
# kde-frameworks/extra-cmake-modules
# )
BDEPEND="virtual/pkgconfig"
src_configure() {
# -Werror=odr
# https://bugs.gentoo.org/982113
# https://invent.kde.org/libraries/qxmpp/-/work_items/723
filter-lto
local mycmakeargs=(
-DCMAKE_DISABLE_FIND_PACKAGE_ECM=ON # clang-format only
-DBUILD_DOCUMENTATION=OFF # $(usex doc) TODO: Port to ECMGenerateQDoc
-DBUILD_EXAMPLES=OFF
-DBUILD_TESTING=$(usex test)
-DBUILD_OMEMO=$(usex omemo)
-DWITH_ENCRYPTION=$(usex omemo)
-DWITH_GSTREAMER=$(usex gstreamer)
)
cmake_src_configure
}
src_test() {
local CMAKE_SKIP_TESTS=(
# require network connection, bug #623708
tst_QXmppTransferManager
tst_QXmppIceConnection
)
cmake_src_test
}
|