From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A46BD138334 for ; Wed, 20 Nov 2019 21:18:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9603FE0863; Wed, 20 Nov 2019 21:18:43 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6FF88E083D for ; Wed, 20 Nov 2019 21:18:43 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6C7BA34D15A for ; Wed, 20 Nov 2019 21:18:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7BD488AE for ; Wed, 20 Nov 2019 21:18:40 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1574284656.4cab07fd3c65516ca728ac778a78d13bf7060582.asturm@gentoo> Subject: [gentoo-commits] proj/qt:master commit in: net-libs/telepathy-qt/, net-libs/telepathy-qt/files/ X-VCS-Repository: proj/qt X-VCS-Files: net-libs/telepathy-qt/files/telepathy-qt-0.9.6.1-qtpath.patch net-libs/telepathy-qt/files/telepathy-qt-0.9.7-deps.patch net-libs/telepathy-qt/files/telepathy-qt-0.9.8-yes-release.patch net-libs/telepathy-qt/telepathy-qt-9999.ebuild X-VCS-Directories: net-libs/telepathy-qt/files/ net-libs/telepathy-qt/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 4cab07fd3c65516ca728ac778a78d13bf7060582 X-VCS-Branch: master Date: Wed, 20 Nov 2019 21:18:40 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 68c9056a-9075-4037-b35a-16064f946b24 X-Archives-Hash: 1401c2379cd39256b847aca2e1286bcd commit: 4cab07fd3c65516ca728ac778a78d13bf7060582 Author: Alexander Akulich gmail com> AuthorDate: Mon Nov 11 19:32:03 2019 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Wed Nov 20 21:17:36 2019 +0000 URL: https://gitweb.gentoo.org/proj/qt.git/commit/?id=4cab07fd net-libs/telepathy-qt: python3 support, re-add tests Closes: https://github.com/gentoo/qt/pull/200 Signed-off-by: Alexander Akulich gmail.com> Signed-off-by: Andreas Sturmlechner gentoo.org> .../files/telepathy-qt-0.9.6.1-qtpath.patch | 21 ---------- .../files/telepathy-qt-0.9.7-deps.patch | 37 ---------------- .../files/telepathy-qt-0.9.8-yes-release.patch | 17 -------- net-libs/telepathy-qt/telepathy-qt-9999.ebuild | 49 +++++++++++++--------- 4 files changed, 30 insertions(+), 94 deletions(-) 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 deleted file mode 100644 index a14e1da1..00000000 --- a/net-libs/telepathy-qt/files/telepathy-qt-0.9.6.1-qtpath.patch +++ /dev/null @@ -1,21 +0,0 @@ -Ensure that the correct version of Qt is always used. - -With the introduction qt-4.8.6, Qt binaries were moved from /usr/bin to -/usr/$(get_libdir)/qt4/bin, leaving behind in their place symlinks to qtchooser. - -There is no guarantee to which version of Qt these symlinks might point, so it -is necessary to find the correct version explicitly. - -Once qmake is found, it is queried for the correct location of all other items. - ---- a/cmake/modules/FindQt.cmake -+++ b/cmake/modules/FindQt.cmake -@@ -19,7 +19,7 @@ - IF(NOT QT5_INSTALLED) - IF(NOT QT_QMAKE_EXECUTABLE) - FIND_PROGRAM(QT_QMAKE_EXECUTABLE_FINDQT NAMES qmake qmake4 qmake-qt4 qmake5 qmake-qt5 -- PATHS "${QT_SEARCH_PATH}/bin" "$ENV{QTDIR}/bin") -+ PATHS /usr/${CMAKE_INSTALL_LIBDIR}/qt4/bin /usr/bin NO_DEFAULT_PATH) - SET(QT_QMAKE_EXECUTABLE ${QT_QMAKE_EXECUTABLE_FINDQT} CACHE PATH "Qt qmake program.") - ENDIF(NOT QT_QMAKE_EXECUTABLE) - 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 deleted file mode 100644 index 033ece79..00000000 --- a/net-libs/telepathy-qt/files/telepathy-qt-0.9.7-deps.patch +++ /dev/null @@ -1,37 +0,0 @@ ---- a/cmake/modules/FindQt5.cmake 2016-06-12 13:04:05.000000000 +0200 -+++ b/cmake/modules/FindQt5.cmake 2018-04-25 18:04:28.351188748 +0200 -@@ -22,8 +22,6 @@ - # QT_QTDBUS_LIBRARY The QtDBus library - # QT_QTGUI_LIBRARY The QtGui library - # QT_QTNETWORK_LIBRARY The QtNetwork library --# QT_QTTEST_LIBRARY The QtTest library --# QT_QTWIDGETS_LIBRARY The QtWidgets library - # QT_QTXML_LIBRARY The QtXml library - # - # also defined, but NOT for general use are -@@ -65,23 +63,19 @@ - find_package(Qt5Core ${REQUIRED_QT_VERSION} REQUIRED) - find_package(Qt5DBus ${REQUIRED_QT_VERSION} REQUIRED) - find_package(Qt5Gui ${REQUIRED_QT_VERSION} REQUIRED) --find_package(Qt5Test ${REQUIRED_QT_VERSION} REQUIRED) --find_package(Qt5Widgets ${REQUIRED_QT_VERSION} REQUIRED) - find_package(Qt5Network ${REQUIRED_QT_VERSION} REQUIRED) - find_package(Qt5Xml ${REQUIRED_QT_VERSION} REQUIRED) - - # Copy includes and library names into the same style as pkgconfig used for Qt4 --set(QT_INCLUDES ${Qt5Core_INCLUDE_DIRS} ${Qt5DBus_INCLUDE_DIRS} ${Qt5Gui_INCLUDE_DIRS} ${Qt5Network_INCLUDE_DIRS} ${Qt5Test_INCLUDE_DIRS} ${Qt5Widgets_INCLUDE_DIRS}) -+set(QT_INCLUDES ${Qt5Core_INCLUDE_DIRS} ${Qt5DBus_INCLUDE_DIRS} ${Qt5Gui_INCLUDE_DIRS} ${Qt5Network_INCLUDE_DIRS}) - - set(QT_QTCORE_LIBRARY ${Qt5Core_LIBRARIES}) - set(QT_QTDBUS_LIBRARY ${Qt5DBus_LIBRARIES}) - set(QT_QTGUI_LIBRARY ${Qt5Gui_LIBRARIES}) - set(QT_QTNETWORK_LIBRARY ${Qt5Network_LIBRARIES}) --set(QT_QTTEST_LIBRARY ${Qt5Test_LIBRARIES}) --set(QT_QTWIDGETS_LIBRARY ${Qt5Widgets_LIBRARIES}) - set(QT_QTXML_LIBRARY ${Qt5Xml_LIBRARIES}) - --set(QT_LIBRARIES ${QT_QTCORE_LIBRARY} ${QT_QTDBUS_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTNETWORK_LIBRARY} ${QT_QTTEST_LIBRARY} ${QT_QTWIDGETS_LIBRARY} ${QT_QTXML_LIBRARY}) -+set(QT_LIBRARIES ${QT_QTCORE_LIBRARY} ${QT_QTDBUS_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTNETWORK_LIBRARY} ${QT_QTXML_LIBRARY}) - - SET(QT_VERSION_MAJOR ${Qt5Core_VERSION_MAJOR}) - SET(QT_VERSION_MINOR ${Qt5Core_VERSION_MINOR}) 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 deleted file mode 100644 index 07cf43f3..00000000 --- a/net-libs/telepathy-qt/files/telepathy-qt-0.9.8-yes-release.patch +++ /dev/null @@ -1,17 +0,0 @@ -diff --git a/cmake/modules/TelepathyDefaults.cmake b/cmake/modules/TelepathyDefaults.cmake -index d34b24d..eb51454 100644 ---- a/cmake/modules/TelepathyDefaults.cmake -+++ b/cmake/modules/TelepathyDefaults.cmake -@@ -59,11 +59,7 @@ if(CMAKE_COMPILER_IS_GNUCXX) - set(DEPRECATED_DECLARATIONS_FLAGS) - endif () - -- if(${TP_QT_NANO_VERSION} EQUAL 0) -- set(NOT_RELEASE 0) -- else() -- set(NOT_RELEASE 1) -- endif() -+ set(NOT_RELEASE 0) - - set(desired - all diff --git a/net-libs/telepathy-qt/telepathy-qt-9999.ebuild b/net-libs/telepathy-qt/telepathy-qt-9999.ebuild index 0a7192d6..64f32659 100644 --- a/net-libs/telepathy-qt/telepathy-qt-9999.ebuild +++ b/net-libs/telepathy-qt/telepathy-qt-9999.ebuild @@ -3,9 +3,9 @@ EAPI=7 -PYTHON_COMPAT=( python2_7 ) +PYTHON_COMPAT=( python3_{5,6,7} ) EGIT_REPO_URI=( "git://anongit.freedesktop.org/telepathy/${PN}" ) -inherit python-any-r1 cmake-utils git-r3 +inherit python-any-r1 cmake-utils git-r3 virtualx DESCRIPTION="Qt bindings for the Telepathy D-Bus protocol" HOMEPAGE="https://telepathy.freedesktop.org/" @@ -13,12 +13,9 @@ HOMEPAGE="https://telepathy.freedesktop.org/" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="" -IUSE="debug farstream" +IUSE="debug farstream test" -BDEPEND="${PYTHON_DEPS} - virtual/pkgconfig -" -DEPEND=" +RDEPEND=" dev-qt/qtcore:5 dev-qt/qtdbus:5 dev-qt/qtgui:5 @@ -29,28 +26,42 @@ DEPEND=" >=net-libs/telepathy-glib-0.18.0 ) " -RDEPEND="${DEPEND}" - -PATCHES=( - "${FILESDIR}/${PN}-0.9.8-yes-release.patch" - "${FILESDIR}/${PN}-0.9.6.1-qtpath.patch" - "${FILESDIR}/${PN}-0.9.7-deps.patch" -) +DEPEND="${RDEPEND} + test? ( + dev-libs/dbus-glib + dev-libs/glib:2 + dev-qt/qttest:5 + $(python_gen_any_dep ' + dev-python/dbus-python[${PYTHON_USEDEP}] + ') + ) +" +BDEPEND=" + ${PYTHON_DEPS} + virtual/pkgconfig +" +RESTRICT="!test? ( test )" -# bug 549448 - last checked with 0.9.7 -RESTRICT="test" +python_check_deps() { + has_version "dev-python/dbus-python[${PYTHON_USEDEP}]" +} pkg_setup() { - python-any-r1_pkg_setup + use test && python-any-r1_pkg_setup } src_configure() { local mycmakeargs=( - -DDESIRED_QT_VERSION=5 -DENABLE_DEBUG_OUTPUT=$(usex debug) -DENABLE_FARSTREAM=$(usex farstream) - -DENABLE_TESTS=OFF + -DENABLE_TESTS=$(usex test) -DENABLE_EXAMPLES=OFF ) cmake-utils_src_configure } + +src_test() { + pushd "${BUILD_DIR}" > /dev/null || die + virtx cmake-utils_src_test + popd > /dev/null || die +}