Gentoo Archives: gentoo-commits

From: Sergey Popov <pinkbyte@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/qxmpp/
Date: Wed, 24 Oct 2018 14:44:57
Message-Id: 1540392266.3b793890131530295d7cc52c4cec4367fae832aa.pinkbyte@gentoo
1 commit: 3b793890131530295d7cc52c4cec4367fae832aa
2 Author: Georg Rudoy <0xd34df00d <AT> gmail <DOT> com>
3 AuthorDate: Wed Oct 24 03:39:45 2018 +0000
4 Commit: Sergey Popov <pinkbyte <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 24 14:44:26 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b793890
7
8 net-libs/qxmpp: upstream build system change in 9999
9
10 Signed-off-by: Georg Rudoy <0xd34df00d <AT> gmail.com>
11 Signed-off-by: Sergey Popov <pinkbyte <AT> gentoo.org>
12 Closes: https://github.com/gentoo/gentoo/pull/10210
13
14 net-libs/qxmpp/qxmpp-9999.ebuild | 52 ++++++++++++++++------------------------
15 1 file changed, 20 insertions(+), 32 deletions(-)
16
17 diff --git a/net-libs/qxmpp/qxmpp-9999.ebuild b/net-libs/qxmpp/qxmpp-9999.ebuild
18 index 6bc4e3d8310..a6fb6f67b14 100644
19 --- a/net-libs/qxmpp/qxmpp-9999.ebuild
20 +++ b/net-libs/qxmpp/qxmpp-9999.ebuild
21 @@ -5,7 +5,7 @@ EAPI=6
22
23 EGIT_REPO_URI="https://github.com/qxmpp-project/qxmpp"
24
25 -inherit git-r3 qmake-utils
26 +inherit git-r3 cmake-utils
27
28 DESCRIPTION="A cross-platform C++ XMPP client library based on the Qt framework"
29 HOMEPAGE="https://github.com/qxmpp-project/qxmpp/"
30 @@ -25,50 +25,38 @@ RDEPEND="
31 vpx? ( media-libs/libvpx:= )
32 "
33 DEPEND="${RDEPEND}
34 + dev-util/cmake
35 test? ( dev-qt/qttest:5 )
36 + doc? ( app-doc/doxygen )
37 "
38
39 src_prepare() {
40 - default
41 + # requires network connection, bug #623708
42 + sed -e "/qxmppiceconnection/d" \
43 + -i tests/CMakeLists.txt || die "failed to drop single test"
44
45 - if ! use doc; then
46 - sed -e '/SUBDIRS/s/doc//' \
47 - -e '/INSTALLS/d' \
48 - -i qxmpp.pro || die "failed to remove docs"
49 - fi
50 - if ! use test; then
51 - sed -e '/SUBDIRS/s/tests//' \
52 - -i qxmpp.pro || die "failed to remove tests"
53 - else
54 - # requires network connection, bug #623708
55 - sed -e "/qxmppiceconnection/d" \
56 - -i tests/tests.pro || die "failed to drop single test"
57 - fi
58 - # There is no point in building examples. Also, they require dev-qt/qtgui
59 - sed -e '/SUBDIRS/s/examples//' \
60 - -i qxmpp.pro || die "sed for removing examples failed"
61 + cmake-utils_src_prepare
62 }
63
64 src_configure() {
65 - eqmake5 "${S}"/qxmpp.pro \
66 - PREFIX="${EPREFIX}/usr" \
67 - LIBDIR="$(get_libdir)" \
68 - QXMPP_USE_OPUS=$(usex opus 1 '') \
69 - QXMPP_USE_SPEEX=$(usex speex 1 '') \
70 - QXMPP_USE_THEORA=$(usex theora 1 '') \
71 - QXMPP_USE_VPX=$(usex vpx 1 '')
72 + local mycmakeargs=(
73 + -DBUILD_DOCUMENTATION=$(usex doc)
74 + -DBUILD_EXAMPLES=OFF
75 + -DBUILD_TESTS=$(usex test)
76 + -DWITH_OPUS=$(usex opus)
77 + -DWITH_SPEEX=$(usex speex)
78 + -DWITH_THEORA=$(usex theora)
79 + -DWITH_VPX=$(usex vpx)
80 + )
81 +
82 + cmake-utils_src_configure
83 }
84
85 src_install() {
86 - emake INSTALL_ROOT="${D}" install
87 - einstalldocs
88 + cmake-utils_src_install
89 +
90 if use doc; then
91 # Use proper path for documentation
92 mv "${ED}"/usr/share/doc/${PN} "${ED}"/usr/share/doc/${PF} || die "doc mv failed"
93 fi
94 }
95 -
96 -src_test() {
97 - MAKEOPTS="-j1" # random tests fail otherwise
98 - default_src_test
99 -}