media-libs/mlt: Fix build with Qt 5.15
authorAndreas Sturmlechner <asturm@gentoo.org>
Tue, 21 Apr 2020 08:31:10 +0000 (10:31 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Tue, 21 Apr 2020 09:22:15 +0000 (11:22 +0200)
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
media-libs/mlt/files/mlt-6.20.0-qt-5.15.patch [new file with mode: 0644]
media-libs/mlt/mlt-6.20.0-r1.ebuild
media-libs/mlt/mlt-6.20.0.ebuild

diff --git a/media-libs/mlt/files/mlt-6.20.0-qt-5.15.patch b/media-libs/mlt/files/mlt-6.20.0-qt-5.15.patch
new file mode 100644 (file)
index 0000000..edc1837
--- /dev/null
@@ -0,0 +1,49 @@
+From f58b44d73442986eeffec7431e59b7d19d214c1b Mon Sep 17 00:00:00 2001
+From: Heiko Becker <heirecka@exherbo.org>
+Date: Tue, 24 Mar 2020 21:17:05 +0100
+Subject: [PATCH] Fix build with Qt 5.15.0
+
+QPainterPath is no longer included via qtransform.h (since
+5.15.0-beta2, 50d2acdc93b4de2ba56eb67787e2bdcb21dd4bea in qtbase.git).
+---
+ src/modules/qt/filter_qtext.cpp   | 1 +
+ src/modules/qt/graph.cpp          | 1 +
+ src/modules/qt/producer_qtext.cpp | 1 +
+ 3 files changed, 3 insertions(+)
+
+diff --git a/src/modules/qt/filter_qtext.cpp b/src/modules/qt/filter_qtext.cpp
+index c3de1fadc..c3e10f1a3 100644
+--- a/src/modules/qt/filter_qtext.cpp
++++ b/src/modules/qt/filter_qtext.cpp
+@@ -21,6 +21,7 @@
+ #include <framework/mlt.h>
+ #include <framework/mlt_log.h>
+ #include <QPainter>
++#include <QPainterPath>
+ #include <QString>
+ static QRectF get_text_path( QPainterPath* qpath, mlt_properties filter_properties, const char* text, double scale )
+diff --git a/src/modules/qt/graph.cpp b/src/modules/qt/graph.cpp
+index 6d4d669ca..7e91bb12f 100644
+--- a/src/modules/qt/graph.cpp
++++ b/src/modules/qt/graph.cpp
+@@ -18,6 +18,7 @@
+  */
+ #include "graph.h"
++#include <QPainterPath>
+ #include <QVector>
+ #include <math.h>
+diff --git a/src/modules/qt/producer_qtext.cpp b/src/modules/qt/producer_qtext.cpp
+index 603c2b780..ff95a8e26 100644
+--- a/src/modules/qt/producer_qtext.cpp
++++ b/src/modules/qt/producer_qtext.cpp
+@@ -26,6 +26,7 @@
+ #include <QImage>
+ #include <QColor>
+ #include <QPainter>
++#include <QPainterPath>
+ #include <QFont>
+ #include <QString>
+ #include <QTextCodec>
index faf5025e814dc9c97208f0ef7d50612bcff98d71..8e0a0a9de4d4d703ee98279119905d2317d65f7a 100644 (file)
@@ -89,7 +89,10 @@ RDEPEND="${DEPEND}"
 
 DOCS=( AUTHORS ChangeLog NEWS README docs/{framework,melt,mlt{++,-xml}}.txt )
 
-PATCHES=( "${FILESDIR}"/${PN}-6.10.0-swig-underlinking.patch )
+PATCHES=(
+       "${FILESDIR}"/${PN}-6.10.0-swig-underlinking.patch
+       "${FILESDIR}"/${P}-qt-5.15.patch
+)
 
 pkg_setup() {
        use python && python-single-r1_pkg_setup
index bb5c456337a5eebe800639f0f7171f6c87363141..98a221ed040f6c34acf1c895f44f25f293f7baa7 100644 (file)
@@ -89,7 +89,10 @@ RDEPEND="${DEPEND}"
 
 DOCS=( AUTHORS ChangeLog NEWS README docs/{framework,melt,mlt{++,-xml}}.txt )
 
-PATCHES=( "${FILESDIR}"/${PN}-6.10.0-swig-underlinking.patch )
+PATCHES=(
+       "${FILESDIR}"/${PN}-6.10.0-swig-underlinking.patch
+       "${FILESDIR}"/${P}-qt-5.15.patch
+)
 
 pkg_setup() {
        use python && python-single-r1_pkg_setup