From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1180701-garchives=archives.gentoo.org@lists.gentoo.org>
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 E8AF61382C5
	for <garchives@archives.gentoo.org>; Fri, 19 Jun 2020 07:40:38 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 13E0AE093B;
	Fri, 19 Jun 2020 07:40:38 +0000 (UTC)
Received: from smtp.gentoo.org (mail.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 ECD93E093B
	for <gentoo-commits@lists.gentoo.org>; Fri, 19 Jun 2020 07:40:37 +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 5C9AD34F3F1
	for <gentoo-commits@lists.gentoo.org>; Fri, 19 Jun 2020 07:40:36 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 71C6D21D
	for <gentoo-commits@lists.gentoo.org>; Fri, 19 Jun 2020 07:40:33 +0000 (UTC)
From: "Mikle Kolyada" <zlogene@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Mikle Kolyada" <zlogene@gentoo.org>
Message-ID: <1592552430.4c93702294b597d96add9eac83788b0291cf74ff.zlogene@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/texworks/, app-editors/texworks/files/
X-VCS-Repository: repo/gentoo
X-VCS-Files: app-editors/texworks/files/qt5.15-support.patch app-editors/texworks/texworks-0.6.5.ebuild
X-VCS-Directories: app-editors/texworks/files/ app-editors/texworks/
X-VCS-Committer: zlogene
X-VCS-Committer-Name: Mikle Kolyada
X-VCS-Revision: 4c93702294b597d96add9eac83788b0291cf74ff
X-VCS-Branch: master
Date: Fri, 19 Jun 2020 07:40:33 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: f2884e1f-b7a2-4d4c-ab1a-93f7ffb04206
X-Archives-Hash: d3ccd6b1f232b6efacb8d38c84d39122

commit:     4c93702294b597d96add9eac83788b0291cf74ff
Author:     Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 19 07:40:04 2020 +0000
Commit:     Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
CommitDate: Fri Jun 19 07:40:30 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c937022

app-editors/texworks: Add qt-5.15 support

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>

 app-editors/texworks/files/qt5.15-support.patch | 21 +++++++++++++++++++++
 app-editors/texworks/texworks-0.6.5.ebuild      |  9 +++++++--
 2 files changed, 28 insertions(+), 2 deletions(-)

diff --git a/app-editors/texworks/files/qt5.15-support.patch b/app-editors/texworks/files/qt5.15-support.patch
new file mode 100644
index 00000000000..9c77c157e46
--- /dev/null
+++ b/app-editors/texworks/files/qt5.15-support.patch
@@ -0,0 +1,21 @@
+From a5352a3a94e3685125650b65e6197de060326cc2 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Stefan=20L=C3=B6ffler?= <st.loeffler@gmail.com>
+Date: Fri, 1 May 2020 08:05:46 +0200
+Subject: [PATCH] <QtPDF> Fix compilation with Qt 5.15
+
+---
+ modules/QtPDF/src/PDFBackend.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/modules/QtPDF/src/PDFBackend.cpp b/modules/QtPDF/src/PDFBackend.cpp
+index 0305d87a..500d20aa 100644
+--- a/modules/QtPDF/src/PDFBackend.cpp
++++ b/modules/QtPDF/src/PDFBackend.cpp
+@@ -14,6 +14,7 @@
+ 
+ #include <PDFBackend.h>
+ #include <QPainter>
++#include <QPainterPath>
+ #include <QApplication>
+ 
+ namespace QtPDF {

diff --git a/app-editors/texworks/texworks-0.6.5.ebuild b/app-editors/texworks/texworks-0.6.5.ebuild
index d9fa4f24277..f9228f2ac58 100644
--- a/app-editors/texworks/texworks-0.6.5.ebuild
+++ b/app-editors/texworks/texworks-0.6.5.ebuild
@@ -5,7 +5,7 @@ EAPI=7
 
 PYTHON_COMPAT=( python{3_6,3_7} )
 
-inherit python-single-r1 cmake-utils virtualx xdg-utils
+inherit python-single-r1 cmake virtualx xdg-utils
 
 DESCRIPTION="A simple interface for working with TeX documents"
 HOMEPAGE="http://tug.org/texworks/"
@@ -40,6 +40,11 @@ pkg_setup() {
 	python-single-r1_pkg_setup
 }
 
+src_prepare() {
+	cmake_src_prepare
+	eapply "${FILESDIR}"/qt5.15-support.patch
+}
+
 src_configure() {
 	local mycmakeargs=(
 		-Wno-dev
@@ -52,7 +57,7 @@ src_configure() {
 		-DBUILD_SHARED_LIBS=ON
 		-DBUILD_SHARED_PLUGINS=ON
 	)
-	cmake-utils_src_configure
+	cmake_src_configure
 }
 
 src_test() {