1 |
commit: 31534c74bc85b465e54b2ab2f1ee08fe2802dab2 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 31 15:52:34 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 31 16:46:11 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31534c74 |
7 |
|
8 |
net-libs/telepathy-qt: Move out-of-sync live ebuild from kde/qt overlays |
9 |
|
10 |
Synced with kde overlay changes (python3_8), qt overlay EGIT_REPO_URI, |
11 |
cmake.eclass port and re-added tests from last release. |
12 |
|
13 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
14 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
15 |
|
16 |
net-libs/telepathy-qt/telepathy-qt-9999.ebuild | 82 ++++++++++++++++++++++++++ |
17 |
1 file changed, 82 insertions(+) |
18 |
|
19 |
diff --git a/net-libs/telepathy-qt/telepathy-qt-9999.ebuild b/net-libs/telepathy-qt/telepathy-qt-9999.ebuild |
20 |
new file mode 100644 |
21 |
index 00000000000..84ab23609aa |
22 |
--- /dev/null |
23 |
+++ b/net-libs/telepathy-qt/telepathy-qt-9999.ebuild |
24 |
@@ -0,0 +1,82 @@ |
25 |
+# Copyright 1999-2019 Gentoo Authors |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI=7 |
29 |
+ |
30 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
31 |
+ |
32 |
+if [[ ${PV} = *9999* ]]; then |
33 |
+ EGIT_REPO_URI=( "https://gitlab.freedesktop.org/telepathy/${PN}" ) |
34 |
+ inherit git-r3 |
35 |
+else |
36 |
+ SRC_URI="https://telepathy.freedesktop.org/releases/${PN}/${P}.tar.gz" |
37 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
38 |
+fi |
39 |
+inherit python-any-r1 cmake virtualx |
40 |
+ |
41 |
+DESCRIPTION="Qt bindings for the Telepathy D-Bus protocol" |
42 |
+HOMEPAGE="https://telepathy.freedesktop.org/" |
43 |
+ |
44 |
+LICENSE="LGPL-2.1" |
45 |
+SLOT="0" |
46 |
+IUSE="debug farstream test" |
47 |
+ |
48 |
+REQUIRED_USE="test? ( farstream )" |
49 |
+ |
50 |
+RESTRICT="!test? ( test )" |
51 |
+ |
52 |
+BDEPEND="${PYTHON_DEPS} |
53 |
+ virtual/pkgconfig |
54 |
+ test? ( |
55 |
+ dev-libs/glib:2 |
56 |
+ $(python_gen_any_dep ' |
57 |
+ dev-python/dbus-python[${PYTHON_USEDEP}] |
58 |
+ ') |
59 |
+ ) |
60 |
+" |
61 |
+RDEPEND=" |
62 |
+ dev-qt/qtcore:5 |
63 |
+ dev-qt/qtdbus:5 |
64 |
+ dev-qt/qtgui:5 |
65 |
+ dev-qt/qtnetwork:5 |
66 |
+ dev-qt/qtxml:5 |
67 |
+ farstream? ( |
68 |
+ >=net-libs/telepathy-farstream-0.2.2 |
69 |
+ >=net-libs/telepathy-glib-0.18.0 |
70 |
+ ) |
71 |
+" |
72 |
+DEPEND="${RDEPEND} |
73 |
+ test? ( |
74 |
+ dev-libs/dbus-glib |
75 |
+ dev-qt/qttest:5 |
76 |
+ ) |
77 |
+" |
78 |
+ |
79 |
+python_check_deps() { |
80 |
+ use test || return 0 |
81 |
+ has_version "dev-python/dbus-python[${PYTHON_USEDEP}]" |
82 |
+} |
83 |
+ |
84 |
+pkg_setup() { |
85 |
+ python-any-r1_pkg_setup |
86 |
+} |
87 |
+ |
88 |
+src_configure() { |
89 |
+ local mycmakeargs=( |
90 |
+ -DENABLE_DEBUG_OUTPUT=$(usex debug) |
91 |
+ -DENABLE_FARSTREAM=$(usex farstream) |
92 |
+ -DENABLE_TESTS=$(usex test) |
93 |
+ -DENABLE_EXAMPLES=OFF |
94 |
+ ) |
95 |
+ cmake_src_configure |
96 |
+} |
97 |
+ |
98 |
+src_test() { |
99 |
+ # some tests require D-Bus |
100 |
+ local myctestargs=( |
101 |
+ -E "(BaseConnectionManager|BaseProtocol)" |
102 |
+ ) |
103 |
+ pushd "${BUILD_DIR}" > /dev/null || die |
104 |
+ virtx cmake_src_test |
105 |
+ popd > /dev/null || die |
106 |
+} |