1 # Copyright 1999-2018 Gentoo Foundation
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 qmake-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"
20 dev-qt/qtnetwork:5[ssl]
22 opus? ( media-libs/opus )
23 speex? ( media-libs/speex )
24 theora? ( media-libs/libtheora )
25 vpx? ( media-libs/libvpx )
28 test? ( dev-qt/qttest:5 )
34 -e '/SUBDIRS/s/doc//' \
36 qxmpp.pro || die "sed for removing docs failed"
39 sed -i -e '/SUBDIRS/s/tests//' \
40 qxmpp.pro || die "sed for removing tests failed"
42 # There is no point in building examples. Also, they require dev-qt/qtgui
43 sed -i -e '/SUBDIRS/s/examples//' \
44 qxmpp.pro || die "sed for removing examples failed"
49 eqmake5 "${S}"/qxmpp.pro \
50 PREFIX="${EPREFIX}/usr" \
51 LIBDIR="$(get_libdir)" \
52 QXMPP_USE_OPUS=$(usex opus 1 0) \
53 QXMPP_USE_SPEEX=$(usex speex 1 0) \
54 QXMPP_USE_THEORA=$(usex theora 1 0) \
55 QXMPP_USE_VPX=$(usex vpx 1 0)
59 emake INSTALL_ROOT="${D}" install
62 # Use proper path for documentation
63 mv "${ED}"/usr/share/doc/${PN} "${ED}"/usr/share/doc/${PF} || die "doc mv failed"
68 MAKEOPTS="-j1" # random tests fail otherwise