1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 EGIT_REPO_URI="https://github.com/qxmpp-project/qxmpp"
8 inherit git-r3 cmake-utils
10 DESCRIPTION="A cross-platform C++ XMPP client library based on the Qt framework"
11 HOMEPAGE="https://github.com/qxmpp-project/qxmpp/"
16 IUSE="debug doc opus +speex test theora vpx"
17 RESTRICT="!test? ( test )"
21 dev-qt/qtnetwork:5[ssl]
23 opus? ( media-libs/opus )
24 speex? ( media-libs/speex )
25 theora? ( media-libs/libtheora )
26 vpx? ( media-libs/libvpx:= )
30 test? ( dev-qt/qttest:5 )
31 doc? ( app-doc/doxygen )
35 # requires network connection, bug #623708
36 sed -e "/qxmppiceconnection/d" \
37 -i tests/CMakeLists.txt || die "failed to drop single test"
39 cmake-utils_src_prepare
44 -DBUILD_DOCUMENTATION=$(usex doc)
46 -DBUILD_TESTS=$(usex test)
47 -DWITH_OPUS=$(usex opus)
48 -DWITH_SPEEX=$(usex speex)
49 -DWITH_THEORA=$(usex theora)
50 -DWITH_VPX=$(usex vpx)
53 cmake-utils_src_configure
57 cmake-utils_src_install
60 # Use proper path for documentation
61 mv "${ED}"/usr/share/doc/${PN} "${ED}"/usr/share/doc/${PF} || die "doc mv failed"