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 A6F79138335 for ; Wed, 15 Aug 2018 10:37:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EA586E09A4; Wed, 15 Aug 2018 10:37:40 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 C24F4E09A4 for ; Wed, 15 Aug 2018 10:37:40 +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 ABE1F335CCD for ; Wed, 15 Aug 2018 10:37:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 52BA43AA for ; Wed, 15 Aug 2018 10:37:38 +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: <1534329443.33704aeb6ed01b61e6276f05a7c1bb1d9ded1671.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-geosciences/qgis/files/, sci-geosciences/qgis/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-geosciences/qgis/files/qgis-3.2.1-qtwebkit-optional.patch sci-geosciences/qgis/qgis-3.2.1.ebuild X-VCS-Directories: sci-geosciences/qgis/files/ sci-geosciences/qgis/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 33704aeb6ed01b61e6276f05a7c1bb1d9ded1671 X-VCS-Branch: master Date: Wed, 15 Aug 2018 10:37:38 +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-Archives-Salt: 5696b7f9-53f7-4eea-992f-cd6d6db0b06e X-Archives-Hash: d2b337ec49ba285426f6fedc5c0fb115 commit: 33704aeb6ed01b61e6276f05a7c1bb1d9ded1671 Author: Andreas Sturmlechner gentoo org> AuthorDate: Wed Aug 15 10:01:16 2018 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Wed Aug 15 10:37:23 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33704aeb sci-geosciences/qgis: Fix build with USE=-webkit Closes: https://bugs.gentoo.org/663394 Package-Manager: Portage-2.3.46, Repoman-2.3.10 .../qgis/files/qgis-3.2.1-qtwebkit-optional.patch | 30 ++++++++++++++++++++++ sci-geosciences/qgis/qgis-3.2.1.ebuild | 1 + 2 files changed, 31 insertions(+) diff --git a/sci-geosciences/qgis/files/qgis-3.2.1-qtwebkit-optional.patch b/sci-geosciences/qgis/files/qgis-3.2.1-qtwebkit-optional.patch new file mode 100644 index 00000000000..9e56bf5ae95 --- /dev/null +++ b/sci-geosciences/qgis/files/qgis-3.2.1-qtwebkit-optional.patch @@ -0,0 +1,30 @@ +From 55473e7e21a068dec904fd4146642c33a44ce22a Mon Sep 17 00:00:00 2001 +From: Denis Rouzaud +Date: Wed, 8 Aug 2018 13:40:04 +0200 +Subject: [PATCH] fix build without webkit + +--- + src/gui/qgsmaptip.cpp | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/src/gui/qgsmaptip.cpp b/src/gui/qgsmaptip.cpp +index d9fe4a32607..7af6f97672c 100644 +--- a/src/gui/qgsmaptip.cpp ++++ b/src/gui/qgsmaptip.cpp +@@ -155,12 +155,16 @@ void QgsMapTip::showMapTip( QgsMapLayer *pLayer, + + void QgsMapTip::resizeContent() + { ++#if WITH_QTWEBKIT + // Get the content size + QWebElement container = mWebView->page()->mainFrame()->findFirstElement( + QStringLiteral( "#QgsWebViewContainer" ) ); + int width = container.geometry().width() + MARGIN_VALUE * 2; + int height = container.geometry().height() + MARGIN_VALUE * 2; + mWidget->resize( width, height ); ++#else ++ mWebView->adjustSize(); ++#endif + } + + void QgsMapTip::clear( QgsMapCanvas * ) \ No newline at end of file diff --git a/sci-geosciences/qgis/qgis-3.2.1.ebuild b/sci-geosciences/qgis/qgis-3.2.1.ebuild index d5c984cfc17..d5ad55122d0 100644 --- a/sci-geosciences/qgis/qgis-3.2.1.ebuild +++ b/sci-geosciences/qgis/qgis-3.2.1.ebuild @@ -100,6 +100,7 @@ RESTRICT="test" PATCHES=( # git master "${FILESDIR}/${PN}-2.18.12-cmake-lib-suffix.patch" + "${FILESDIR}/${P}-qtwebkit-optional.patch" # bug 663394 ) pkg_setup() {