Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/qt:master commit in: net-libs/telepathy-qt/files/, net-libs/telepathy-qt/
Date: Sat, 26 Oct 2019 16:32:31
Message-Id: 1572107526.adbefd1cb35098889a18e5fb9d0fbc8cfca9333c.asturm@gentoo
1 commit: adbefd1cb35098889a18e5fb9d0fbc8cfca9333c
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 26 16:32:06 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 26 16:32:06 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/qt.git/commit/?id=adbefd1c
7
8 net-libs/telepathy-qt: EAPI-7 bump, drop bogus (and failing test) deps
9
10 Package-Manager: Portage-2.3.78, Repoman-2.3.17
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 .../files/telepathy-qt-0.9.6.1-qtpath.patch | 21 +++++++++++
14 .../files/telepathy-qt-0.9.7-deps.patch | 37 +++++++++++++++++++
15 .../files/telepathy-qt-0.9.8-yes-release.patch | 17 +++++++++
16 net-libs/telepathy-qt/telepathy-qt-9999.ebuild | 42 +++++++++-------------
17 4 files changed, 91 insertions(+), 26 deletions(-)
18
19 diff --git a/net-libs/telepathy-qt/files/telepathy-qt-0.9.6.1-qtpath.patch b/net-libs/telepathy-qt/files/telepathy-qt-0.9.6.1-qtpath.patch
20 new file mode 100644
21 index 00000000..a14e1da1
22 --- /dev/null
23 +++ b/net-libs/telepathy-qt/files/telepathy-qt-0.9.6.1-qtpath.patch
24 @@ -0,0 +1,21 @@
25 +Ensure that the correct version of Qt is always used.
26 +
27 +With the introduction qt-4.8.6, Qt binaries were moved from /usr/bin to
28 +/usr/$(get_libdir)/qt4/bin, leaving behind in their place symlinks to qtchooser.
29 +
30 +There is no guarantee to which version of Qt these symlinks might point, so it
31 +is necessary to find the correct version explicitly.
32 +
33 +Once qmake is found, it is queried for the correct location of all other items.
34 +
35 +--- a/cmake/modules/FindQt.cmake
36 ++++ b/cmake/modules/FindQt.cmake
37 +@@ -19,7 +19,7 @@
38 + IF(NOT QT5_INSTALLED)
39 + IF(NOT QT_QMAKE_EXECUTABLE)
40 + FIND_PROGRAM(QT_QMAKE_EXECUTABLE_FINDQT NAMES qmake qmake4 qmake-qt4 qmake5 qmake-qt5
41 +- PATHS "${QT_SEARCH_PATH}/bin" "$ENV{QTDIR}/bin")
42 ++ PATHS /usr/${CMAKE_INSTALL_LIBDIR}/qt4/bin /usr/bin NO_DEFAULT_PATH)
43 + SET(QT_QMAKE_EXECUTABLE ${QT_QMAKE_EXECUTABLE_FINDQT} CACHE PATH "Qt qmake program.")
44 + ENDIF(NOT QT_QMAKE_EXECUTABLE)
45 +
46
47 diff --git a/net-libs/telepathy-qt/files/telepathy-qt-0.9.7-deps.patch b/net-libs/telepathy-qt/files/telepathy-qt-0.9.7-deps.patch
48 new file mode 100644
49 index 00000000..033ece79
50 --- /dev/null
51 +++ b/net-libs/telepathy-qt/files/telepathy-qt-0.9.7-deps.patch
52 @@ -0,0 +1,37 @@
53 +--- a/cmake/modules/FindQt5.cmake 2016-06-12 13:04:05.000000000 +0200
54 ++++ b/cmake/modules/FindQt5.cmake 2018-04-25 18:04:28.351188748 +0200
55 +@@ -22,8 +22,6 @@
56 + # QT_QTDBUS_LIBRARY The QtDBus library
57 + # QT_QTGUI_LIBRARY The QtGui library
58 + # QT_QTNETWORK_LIBRARY The QtNetwork library
59 +-# QT_QTTEST_LIBRARY The QtTest library
60 +-# QT_QTWIDGETS_LIBRARY The QtWidgets library
61 + # QT_QTXML_LIBRARY The QtXml library
62 + #
63 + # also defined, but NOT for general use are
64 +@@ -65,23 +63,19 @@
65 + find_package(Qt5Core ${REQUIRED_QT_VERSION} REQUIRED)
66 + find_package(Qt5DBus ${REQUIRED_QT_VERSION} REQUIRED)
67 + find_package(Qt5Gui ${REQUIRED_QT_VERSION} REQUIRED)
68 +-find_package(Qt5Test ${REQUIRED_QT_VERSION} REQUIRED)
69 +-find_package(Qt5Widgets ${REQUIRED_QT_VERSION} REQUIRED)
70 + find_package(Qt5Network ${REQUIRED_QT_VERSION} REQUIRED)
71 + find_package(Qt5Xml ${REQUIRED_QT_VERSION} REQUIRED)
72 +
73 + # Copy includes and library names into the same style as pkgconfig used for Qt4
74 +-set(QT_INCLUDES ${Qt5Core_INCLUDE_DIRS} ${Qt5DBus_INCLUDE_DIRS} ${Qt5Gui_INCLUDE_DIRS} ${Qt5Network_INCLUDE_DIRS} ${Qt5Test_INCLUDE_DIRS} ${Qt5Widgets_INCLUDE_DIRS})
75 ++set(QT_INCLUDES ${Qt5Core_INCLUDE_DIRS} ${Qt5DBus_INCLUDE_DIRS} ${Qt5Gui_INCLUDE_DIRS} ${Qt5Network_INCLUDE_DIRS})
76 +
77 + set(QT_QTCORE_LIBRARY ${Qt5Core_LIBRARIES})
78 + set(QT_QTDBUS_LIBRARY ${Qt5DBus_LIBRARIES})
79 + set(QT_QTGUI_LIBRARY ${Qt5Gui_LIBRARIES})
80 + set(QT_QTNETWORK_LIBRARY ${Qt5Network_LIBRARIES})
81 +-set(QT_QTTEST_LIBRARY ${Qt5Test_LIBRARIES})
82 +-set(QT_QTWIDGETS_LIBRARY ${Qt5Widgets_LIBRARIES})
83 + set(QT_QTXML_LIBRARY ${Qt5Xml_LIBRARIES})
84 +
85 +-set(QT_LIBRARIES ${QT_QTCORE_LIBRARY} ${QT_QTDBUS_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTNETWORK_LIBRARY} ${QT_QTTEST_LIBRARY} ${QT_QTWIDGETS_LIBRARY} ${QT_QTXML_LIBRARY})
86 ++set(QT_LIBRARIES ${QT_QTCORE_LIBRARY} ${QT_QTDBUS_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTNETWORK_LIBRARY} ${QT_QTXML_LIBRARY})
87 +
88 + SET(QT_VERSION_MAJOR ${Qt5Core_VERSION_MAJOR})
89 + SET(QT_VERSION_MINOR ${Qt5Core_VERSION_MINOR})
90
91 diff --git a/net-libs/telepathy-qt/files/telepathy-qt-0.9.8-yes-release.patch b/net-libs/telepathy-qt/files/telepathy-qt-0.9.8-yes-release.patch
92 new file mode 100644
93 index 00000000..07cf43f3
94 --- /dev/null
95 +++ b/net-libs/telepathy-qt/files/telepathy-qt-0.9.8-yes-release.patch
96 @@ -0,0 +1,17 @@
97 +diff --git a/cmake/modules/TelepathyDefaults.cmake b/cmake/modules/TelepathyDefaults.cmake
98 +index d34b24d..eb51454 100644
99 +--- a/cmake/modules/TelepathyDefaults.cmake
100 ++++ b/cmake/modules/TelepathyDefaults.cmake
101 +@@ -59,11 +59,7 @@ if(CMAKE_COMPILER_IS_GNUCXX)
102 + set(DEPRECATED_DECLARATIONS_FLAGS)
103 + endif ()
104 +
105 +- if(${TP_QT_NANO_VERSION} EQUAL 0)
106 +- set(NOT_RELEASE 0)
107 +- else()
108 +- set(NOT_RELEASE 1)
109 +- endif()
110 ++ set(NOT_RELEASE 0)
111 +
112 + set(desired
113 + all
114
115 diff --git a/net-libs/telepathy-qt/telepathy-qt-9999.ebuild b/net-libs/telepathy-qt/telepathy-qt-9999.ebuild
116 index 699f4ab1..0a7192d6 100644
117 --- a/net-libs/telepathy-qt/telepathy-qt-9999.ebuild
118 +++ b/net-libs/telepathy-qt/telepathy-qt-9999.ebuild
119 @@ -1,11 +1,11 @@
120 -# Copyright 1999-2018 Gentoo Foundation
121 +# Copyright 1999-2019 Gentoo Authors
122 # Distributed under the terms of the GNU General Public License v2
123
124 -EAPI=6
125 +EAPI=7
126
127 PYTHON_COMPAT=( python2_7 )
128 EGIT_REPO_URI=( "git://anongit.freedesktop.org/telepathy/${PN}" )
129 -inherit python-any-r1 cmake-utils virtualx git-r3
130 +inherit python-any-r1 cmake-utils git-r3
131
132 DESCRIPTION="Qt bindings for the Telepathy D-Bus protocol"
133 HOMEPAGE="https://telepathy.freedesktop.org/"
134 @@ -13,9 +13,12 @@ HOMEPAGE="https://telepathy.freedesktop.org/"
135 LICENSE="LGPL-2.1"
136 SLOT="0"
137 KEYWORDS=""
138 -IUSE="debug farstream test"
139 +IUSE="debug farstream"
140
141 -RDEPEND="
142 +BDEPEND="${PYTHON_DEPS}
143 + virtual/pkgconfig
144 +"
145 +DEPEND="
146 dev-qt/qtcore:5
147 dev-qt/qtdbus:5
148 dev-qt/qtgui:5
149 @@ -26,16 +29,13 @@ RDEPEND="
150 >=net-libs/telepathy-glib-0.18.0
151 )
152 "
153 -DEPEND="${RDEPEND}
154 - ${PYTHON_DEPS}
155 - virtual/pkgconfig
156 - test? (
157 - dev-libs/dbus-glib
158 - dev-libs/glib:2
159 - dev-python/dbus-python
160 - dev-qt/qttest:5
161 - )
162 -"
163 +RDEPEND="${DEPEND}"
164 +
165 +PATCHES=(
166 + "${FILESDIR}/${PN}-0.9.8-yes-release.patch"
167 + "${FILESDIR}/${PN}-0.9.6.1-qtpath.patch"
168 + "${FILESDIR}/${PN}-0.9.7-deps.patch"
169 +)
170
171 # bug 549448 - last checked with 0.9.7
172 RESTRICT="test"
173 @@ -49,18 +49,8 @@ src_configure() {
174 -DDESIRED_QT_VERSION=5
175 -DENABLE_DEBUG_OUTPUT=$(usex debug)
176 -DENABLE_FARSTREAM=$(usex farstream)
177 - -DENABLE_TESTS=$(usex test)
178 + -DENABLE_TESTS=OFF
179 -DENABLE_EXAMPLES=OFF
180 )
181 cmake-utils_src_configure
182 }
183 -
184 -src_test() {
185 - _test_runner() {
186 - ctest -E '(CallChannel)'
187 - }
188 -
189 - pushd "${BUILD_DIR}" > /dev/null || die
190 - virtx _test_runner
191 - popd > /dev/null || die
192 -}