summaryrefslogtreecommitdiff
path: root/www-client/falkon
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-12-07 02:07:26 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-12-07 02:07:26 +0000
commit2198f8593ae0312add1bdccb49edfcb935e5f8a6 (patch)
tree67d79ffd7e91cc3858d188c49a65f46860a9bac7 /www-client/falkon
parentd285f0ab4ab38d4ea1cd0757a465db5f06764e06 (diff)
gentoo auto-resync : 07:12:2024 - 02:07:26
Diffstat (limited to 'www-client/falkon')
-rw-r--r--www-client/falkon/Manifest2
-rw-r--r--www-client/falkon/falkon-24.08.3-r1.ebuild85
-rw-r--r--www-client/falkon/files/falkon-24.08.3-fix-printing.patch100
3 files changed, 187 insertions, 0 deletions
diff --git a/www-client/falkon/Manifest b/www-client/falkon/Manifest
index 985a3dc95a32..291058ab6d55 100644
--- a/www-client/falkon/Manifest
+++ b/www-client/falkon/Manifest
@@ -1,3 +1,5 @@
+AUX falkon-24.08.3-fix-printing.patch 3375 BLAKE2B 220d83cbba1d18be9c2eeeae813806d4c9f025de62000af9b9257bbbc0ffd235a0fa29d1a4aa9ff830b463c1ea9653c620f2c448658eb2ae2147bc2fc0e229e2 SHA512 bcfcace0f5887dc1b2ffc67721aaaa7561d8ebde56ecd263a0b94797821d0c4aec8bb74a4fe02af49214cd05edc2661b115923819cd89ca3d078213f2059c9ae
DIST falkon-24.08.3.tar.xz 2635964 BLAKE2B 07417017ee93f598749048d331827904d2cb7406ee9bac5da77bddc720e7c3131f655b6cb6ef35a84db73e62a11f435d347841047371590d4a889e44946a2706 SHA512 1c6020d805668de38be95f9d63a07c5b6eafb200b6b181d59c791a145ffb8926c5ecf5feb9f46c5d69deb682692574b8a557271d08f945cf1a52c1eee7b2d55b
+EBUILD falkon-24.08.3-r1.ebuild 2189 BLAKE2B c754b20f5d2c6e8ce2700a1e3de5e0e78cc034a6e076a079097fb757703ad759052b1dc6d84603cbd7a1be584f445b61ce842e414aa368b3075c41ac3675713b SHA512 f18fb32255f3e3108f999057d43f3eb49191d9fc2d312b0c83f29fe4e344630d2ad4b5a9dfcefa5948ef8216df775192edbeb9b88d98f75ac37f339cbd8198e8
EBUILD falkon-24.08.3.ebuild 2123 BLAKE2B ccb2cf92cf8d9128f6460bc717268aa704305fa79d55c517817a130aac70a62218aa11bce4fc61c18c86a0135f642d33729df1a93bf2365336c60c3737cae1ff SHA512 414b5863b63156742358ac9a51e12027ca064da53420598d66581d1a05b077c55ca5759cb9e07fc414940db39b15844c79160e7ae3ea58b5f5045e4cd60fd972
MISC metadata.xml 318 BLAKE2B 922a5e32e706b2976c5f359a14194d268d3f499398576c80ce5fad8c0fcea0fbf048de4480a80a6a1889c88b8b6c14147654a3ab4d5ffbcc258c2290da63f6d1 SHA512 614cb8dda7ad2088e5d6ef39b449bb4be0ac72cd0231c320188d76d1816dce6490c5114bb4798112c4b11d99d30a9e82ff8fcf08ffa8c049589682a5e38208f6
diff --git a/www-client/falkon/falkon-24.08.3-r1.ebuild b/www-client/falkon/falkon-24.08.3-r1.ebuild
new file mode 100644
index 000000000000..4da6bc55c8ea
--- /dev/null
+++ b/www-client/falkon/falkon-24.08.3-r1.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ECM_TEST="true"
+KFMIN=6.5.0
+QTMIN=6.7.2
+PYTHON_COMPAT=( python3_{10..12} )
+inherit ecm gear.kde.org python-single-r1
+
+DESCRIPTION="Cross-platform web browser using QtWebEngine"
+HOMEPAGE="https://www.falkon.org/ https://apps.kde.org/falkon/"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+IUSE="dbus kde python +X"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+RESTRICT="test" # bug 653046
+
+COMMON_DEPEND="
+ dev-libs/openssl:0=
+ >=dev-qt/qt5compat-${QTMIN}:6
+ >=dev-qt/qtbase-${QTMIN}:6[dbus?,gui,network,sql,sqlite,ssl,widgets]
+ >=dev-qt/qtdeclarative-${QTMIN}:6[widgets]
+ >=dev-qt/qtwebchannel-${QTMIN}:6
+ >=dev-qt/qtwebengine-${QTMIN}:6=[widgets]
+ >=kde-frameworks/karchive-${KFMIN}:6
+ virtual/libintl
+ kde? (
+ >=kde-frameworks/kcoreaddons-${KFMIN}:6
+ >=kde-frameworks/kcrash-${KFMIN}:6
+ >=kde-frameworks/kio-${KFMIN}:6
+ >=kde-frameworks/kjobwidgets-${KFMIN}:6
+ >=kde-frameworks/kwallet-${KFMIN}:6
+ >=kde-frameworks/purpose-${KFMIN}:6
+ )
+ python? (
+ ${PYTHON_DEPS}
+ $(python_gen_cond_dep "
+ >=dev-python/pyside6-${QTMIN}[designer,gui,positioning,webengine,widgets,\${PYTHON_USEDEP}] \
+ >=dev-python/shiboken6-${QTMIN}[\${PYTHON_USEDEP}]
+ ")
+ )
+ X? (
+ x11-libs/libxcb:=
+ x11-libs/xcb-util
+ )
+"
+DEPEND="${COMMON_DEPEND}
+ >=dev-qt/qtbase-${QTMIN}:6[concurrent]
+"
+if [[ ${KDE_BUILD_TYPE} != live ]]; then
+ DEPEND+=" >=kde-frameworks/ki18n-${KFMIN}:6"
+fi
+RDEPEND="${COMMON_DEPEND}
+ >=dev-qt/qtsvg-${QTMIN}:6
+"
+BDEPEND=">=dev-qt/qttools-${QTMIN}:6[linguist]"
+
+PATCHES=( "${FILESDIR}/${P}-fix-printing.patch" ) # bug 945887
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+ ecm_pkg_setup
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_KEYRING=OFF
+ -DDISABLE_DBUS=$(usex !dbus)
+ $(cmake_use_find_package kde KF6Wallet)
+ $(cmake_use_find_package kde KF6KIO)
+ -DBUILD_PYTHON_SUPPORT=$(usex python)
+ -DNO_X11=$(usex !X)
+ )
+ use python && mycmakeargs+=(
+ -DPYTHON_CONFIG_SUFFIX="-${EPYTHON}" # shiboken_helpers.cmake quirk
+ -DPython3_INCLUDE_DIR=$(python_get_includedir)
+ -DPython3_LIBRARY=$(python_get_library_path)
+ )
+ ecm_src_configure
+}
diff --git a/www-client/falkon/files/falkon-24.08.3-fix-printing.patch b/www-client/falkon/files/falkon-24.08.3-fix-printing.patch
new file mode 100644
index 000000000000..8e5aecd366d8
--- /dev/null
+++ b/www-client/falkon/files/falkon-24.08.3-fix-printing.patch
@@ -0,0 +1,100 @@
+From cbf47b0625c9b67b3608e24600273693bd59462a Mon Sep 17 00:00:00 2001
+From: Juraj Oravec <jurajoravec@mailo.com>
+Date: Wed, 4 Dec 2024 21:34:31 +0100
+Subject: [PATCH] Fix printing to printer other than PDF printer
+
+BUG: 497051
+FIXED-IN: 24.12
+
+Chery picked from: eaa807023517e1d62dae41f9b1cdd93806d77d64
+
+Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
+---
+ src/lib/webengine/webview.cpp | 22 ++++++++++++++--------
+ src/lib/webengine/webview.h | 4 ++++
+ 2 files changed, 18 insertions(+), 8 deletions(-)
+
+diff --git a/src/lib/webengine/webview.cpp b/src/lib/webengine/webview.cpp
+index d2b5d7ee0..4871e8b3f 100644
+--- a/src/lib/webengine/webview.cpp
++++ b/src/lib/webengine/webview.cpp
+@@ -67,6 +67,7 @@ WebView::WebView(QWidget* parent)
+ connect(this, &QWebEngineView::iconChanged, this, &WebView::slotIconChanged);
+ connect(this, &QWebEngineView::urlChanged, this, &WebView::slotUrlChanged);
+ connect(this, &QWebEngineView::titleChanged, this, &WebView::slotTitleChanged);
++ connect(this, &QWebEngineView::printFinished, this, &WebView::slotPrintFinished);
+
+ m_currentZoomLevel = zoomLevels().indexOf(100);
+
+@@ -386,11 +387,11 @@ void WebView::printPage()
+ {
+ Q_ASSERT(m_page);
+
+- auto *printer = new QPrinter();
+- printer->setCreator(tr("Falkon %1 (%2)").arg(QString::fromLatin1(Qz::VERSION), QString::fromLatin1(Qz::WWWADDRESS)));
+- printer->setDocName(QzTools::filterCharsFromFilename(title()));
++ m_printer = new QPrinter();
++ m_printer->setCreator(tr("Falkon %1 (%2)").arg(QString::fromLatin1(Qz::VERSION), QString::fromLatin1(Qz::WWWADDRESS)));
++ m_printer->setDocName(QzTools::filterCharsFromFilename(title()));
+
+- auto *dialog = new QPrintDialog(printer, this);
++ auto *dialog = new QPrintDialog(m_printer, this);
+ dialog->setOptions(QAbstractPrintDialog::PrintToFile | QAbstractPrintDialog::PrintShowPageSize);
+ #ifndef Q_OS_WIN
+ dialog->setOption(QAbstractPrintDialog::PrintPageRange);
+@@ -402,14 +403,19 @@ void WebView::printPage()
+ m_page->printToPdf(dialog->printer()->outputFileName(), dialog->printer()->pageLayout());
+ delete dialog;
+ } else {
+- connect(this, &QWebEngineView::printFinished, this, [&dialog](bool success) {
+- Q_UNUSED(success);
+- delete dialog;
+- });
++ print(m_printer);
++ delete dialog;
+ }
+ }
+ }
+
++void WebView::slotPrintFinished(bool success)
++{
++ Q_UNUSED(success);
++ delete m_printer;
++ m_printer = nullptr;
++}
++
+ void WebView::slotLoadStarted()
+ {
+ m_progress = 0;
+diff --git a/src/lib/webengine/webview.h b/src/lib/webengine/webview.h
+index 37138cd6d..61e7281f8 100644
+--- a/src/lib/webengine/webview.h
++++ b/src/lib/webengine/webview.h
+@@ -25,6 +25,7 @@
+ #include "loadrequest.h"
+ #include "wheelhelper.h"
+
++class QPrinter;
+ class WebPage;
+ class LoadRequest;
+ class WebHitTestResult;
+@@ -118,6 +119,7 @@ protected Q_SLOTS:
+ void slotIconChanged();
+ void slotUrlChanged(const QUrl &url);
+ void slotTitleChanged(const QString &title);
++ void slotPrintFinished(bool success);
+
+ // Context menu slots
+ void openUrlInNewWindow();
+@@ -193,6 +195,8 @@ private:
+ WheelHelper m_wheelHelper;
+
+ static bool s_forceContextMenuOnMouseRelease;
++
++ QPrinter* m_printer;
+ };
+
+ #endif // WEBVIEW_H
+--
+GitLab
+