summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikle Kolyada <zlogene@gentoo.org>2020-06-19 10:40:04 +0300
committerMikle Kolyada <zlogene@gentoo.org>2020-06-19 10:40:30 +0300
commit4c93702294b597d96add9eac83788b0291cf74ff (patch)
tree273f51fc26d9842c6feed42f9e562abbae514b1f /app-editors/texworks
parentdev-libs/nss: Bump to version 3.53.1 (diff)
downloadgentoo-4c93702294b597d96add9eac83788b0291cf74ff.tar.gz
gentoo-4c93702294b597d96add9eac83788b0291cf74ff.tar.bz2
gentoo-4c93702294b597d96add9eac83788b0291cf74ff.zip
app-editors/texworks: Add qt-5.15 support
Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
Diffstat (limited to 'app-editors/texworks')
-rw-r--r--app-editors/texworks/files/qt5.15-support.patch21
-rw-r--r--app-editors/texworks/texworks-0.6.5.ebuild9
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 000000000000..9c77c157e463
--- /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 d9fa4f242770..f9228f2ac586 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() {