summaryrefslogtreecommitdiff
path: root/www/py-qt6-webengine/files/patch-pyproject.toml
blob: 5086e7490062e4486dd90551df7c8a5457f6fddd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Workaround for qprinter.h not being found when the Qt stack has been built
without CUPS support.

/usr/local/lib/python3.9/site-packages/PyQt6/bindings/QtPrintSupport/qprinter.sip:28:10: fatal error: 'qprinter.h' file not found
#include <qprinter.h>
         ^~~~~~~~~~~~

--- pyproject.toml.orig	2024-10-15 00:23:11 UTC
+++ pyproject.toml
@@ -34,3 +34,5 @@ qmake-QT = ["webenginewidgets"]
 
 [tool.sip.bindings.QtWebEngineWidgets]
 qmake-QT = ["webenginewidgets"]
+define-macros = ["QT_PRINTSUPPORT_LIB"]
+include-dirs = ["%%QT_INCDIR%%/QtPrintSupport"]