summaryrefslogtreecommitdiff
path: root/net-libs/signon-ui
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2025-01-04 06:31:29 +0000
committerV3n3RiX <venerix@koprulu.sector>2025-01-04 06:31:29 +0000
commit38efae7f3eb932ed41510139679efd5c1e2f5eda (patch)
treed331259e03d114338bc5a96a883b728facdc4cde /net-libs/signon-ui
parent5087ee3bf0055aae666159351774f2fb3610e571 (diff)
gentoo auto-resync : 04:01:2025 - 06:31:29
Diffstat (limited to 'net-libs/signon-ui')
-rw-r--r--net-libs/signon-ui/Manifest2
-rw-r--r--net-libs/signon-ui/files/signon-ui-0.15_p20171022-fix-username-field-reading.patch127
-rw-r--r--net-libs/signon-ui/signon-ui-0.15_p20231016-r1.ebuild83
3 files changed, 0 insertions, 212 deletions
diff --git a/net-libs/signon-ui/Manifest b/net-libs/signon-ui/Manifest
index ef781f1a810d..10cd215ba5a1 100644
--- a/net-libs/signon-ui/Manifest
+++ b/net-libs/signon-ui/Manifest
@@ -1,8 +1,6 @@
AUX signon-ui-0.15_p20171022-disable-tests.patch 518 BLAKE2B 6e15293f2f402db0193a5c25be03a62c93999f05ed889973d3058d4de143193f3e0b3d51f869c4b58fd56c963454fef537bf4bd65a22470d32f08020e2038264 SHA512 18ec01616e468a11c30b2a98689b2a0eddaee3ffe7073e7c1a035f210b70f5ccc0f5b5feaa95ffc608875bf3a68e17c60760f4008d179c5e722afc4068b7e256
AUX signon-ui-0.15_p20171022-drop-fno-rtti.patch 758 BLAKE2B 6487c7b5e6365deebc301fba24422775f7c45805af734cc0f234cac69734d93cc0a80c9ff2c9456560fe797f1185b91c1e973288a208148d20cffc396d78b632 SHA512 d3d19046e2ccd55f6921a8ae75f970b36d552df3dd789857f9657e5ddd0501c4547960fbbce3ca7849ee0081f351abbf04faf859827db2f7e2dad0d3a4957904
-AUX signon-ui-0.15_p20171022-fix-username-field-reading.patch 4338 BLAKE2B ef44759dde1e1f393ce6a6e6a30528049ef1ce480ae9721f006dd4a37ebfc0c0a36937472fcc74731072229894c1a280c2b50e92e059d000d1de5e91435d8fc3 SHA512 2414ffaacb13224bd4edb4beec1cb6c8e576401d2a3b3677b5aaa9140eeea99077c37fcb0115c2400987722d23f822844d3f4cc901adbc85be6d4e098072d28d
AUX signon-ui-0.15_p20171022-webengine-cachedir-path.patch 925 BLAKE2B 5ead2d7a75d2dc011d84a476f0cd1b80c72a54dbb9d06a6d151f9940bbdbcb20494a2ad388aa0590b2148cf0d5d2e455d50425d0292bbeda7e41de366172227e SHA512 e21aafb1cb79033619dc50ee41a81efe8e02be7ce71382ab532beb48d720a514bb7d4abe588c117685b4b643865c4a11eb304a8e0107104393de08afa1d162f7
DIST signon-ui-0.15_p20231016.tar.bz2 55078 BLAKE2B eff35b2b311c4b923148656ad7512418ee6e19607babd02f2bc8bff9d6f2f5cfdc37c7030fb842b65b25c310f6e44f76a73b9d0a4569af52f7661b0eb09da2f2 SHA512 c26be8921c5d2a559bd62793f3eca19184c236c2e2649728631d60d2781f4b4457f63bbd35238cb274ff3a7747220688688f0880df8db0e78ccaf6f126d6e86e
-EBUILD signon-ui-0.15_p20231016-r1.ebuild 1792 BLAKE2B 135a9667f7e19cb937acf3100ec4a404ea16ca86c155cc0b4033581e9aee3cdb2921cc38c435135d1f25365fbe0f2e6fe67058640e165a06679dfaf777c32ed8 SHA512 8f7000eb37fa403337dcefa9e53d4cfd4a6fb3f3fd2ae6f0f97094ddcb6808124f8650e2fc061abce260f7841fe23de9bed2b088b6561cfed119d2c777ecdf1d
EBUILD signon-ui-0.15_p20231016-r2.ebuild 1276 BLAKE2B 64fece620d4d74d78ddc57def87d8506657b102b46acfc3941956a846e778e49e224b2d2ecd9bc850471add0100de97bf02f3e0af04f3ac0eaf16fd3e6c68c79 SHA512 13c0adfcc3e1139db78d4481b2bea5aa25873b9fe8ce4120490fc3416ebfb41d41d9d74a8ca8f7cc188eef7efb26e8fd9dad7a5872da816703e447e50a78978d
MISC metadata.xml 337 BLAKE2B 6329a58a1fb57e124a64deb6b3829fa06632cc323991540a322a4aecf4a07f129905d7ee393e2e105afb1a4fa8eadcb08d969b6ed497cb29ec1737437f0d6bca SHA512 3a85a0fce6d18ec8c2e029579ac851229dc56ec4fe3f6d9a19e11b875afc6b9c4da555884fcd49fc68b5e510a2306ae53d8e5f5c4600a0f987ee7a14735322f8
diff --git a/net-libs/signon-ui/files/signon-ui-0.15_p20171022-fix-username-field-reading.patch b/net-libs/signon-ui/files/signon-ui-0.15_p20171022-fix-username-field-reading.patch
deleted file mode 100644
index accc8d92d91e..000000000000
--- a/net-libs/signon-ui/files/signon-ui-0.15_p20171022-fix-username-field-reading.patch
+++ /dev/null
@@ -1,127 +0,0 @@
-From 90890e7d27c544e3557bed2f6624614141db0fc4 Mon Sep 17 00:00:00 2001
-From: Fabian Vogt <fabian@ritter-vogt.de>
-Date: Sat, 29 Sep 2018 15:34:43 +0200
-Subject: [PATCH] Reintroduce the username field reading with webkit-options.d
-
-Use WebChannel to spy on the input fields.
-Use the old UserAgent to make sure the selectors match.
----
- src/browser-request.cpp | 11 +++++++++++
- src/qml/WebView.qml | 36 ++++++++++++++++++++++++++++++++++++
- 2 files changed, 47 insertions(+)
-
-diff --git a/src/browser-request.cpp b/src/browser-request.cpp
-index 1895d59..e58f302 100644
---- a/src/browser-request.cpp
-+++ b/src/browser-request.cpp
-@@ -31,6 +31,7 @@
- #include <QStandardPaths>
- #include <QTimer>
- #include <SignOn/uisessiondata_priv.h>
-+#include <QSettings>
-
- using namespace SignOnUi;
- using namespace SignOnUi::QQuick;
-@@ -43,8 +44,10 @@ class BrowserRequestPrivate: public QObject
- Q_DECLARE_PUBLIC(BrowserRequest)
- Q_PROPERTY(QUrl pageComponentUrl READ pageComponentUrl CONSTANT)
- Q_PROPERTY(QUrl currentUrl READ currentUrl WRITE setCurrentUrl)
-+ Q_PROPERTY(QString username MEMBER m_username)
- Q_PROPERTY(QUrl startUrl READ startUrl CONSTANT)
- Q_PROPERTY(QUrl finalUrl READ finalUrl CONSTANT)
-+ Q_PROPERTY(QString usernameSelector READ usernameSelector CONSTANT)
-
- public:
- BrowserRequestPrivate(BrowserRequest *request);
-@@ -58,6 +61,7 @@ public:
- QUrl startUrl() const { return m_startUrl; }
- QUrl finalUrl() const { return m_finalUrl; }
- QUrl responseUrl() const { return m_responseUrl; }
-+ QString usernameSelector() const { return m_settings->value("UsernameField").toString(); }
-
- public Q_SLOTS:
- void cancel();
-@@ -77,6 +81,8 @@ private:
- QUrl m_startUrl;
- QUrl m_finalUrl;
- QUrl m_responseUrl;
-+ QString m_username;
-+ QSettings *m_settings;
- QTimer m_failTimer;
- mutable BrowserRequest *q_ptr;
- };
-@@ -116,6 +122,9 @@ void BrowserRequestPrivate::start()
-
- m_finalUrl = params.value(SSOUI_KEY_FINALURL).toString();
- m_startUrl = params.value(SSOUI_KEY_OPENURL).toString();
-+
-+ m_settings = new QSettings("signon-ui/webkit-options.d/" + m_startUrl.host(), QString(), this);
-+
- buildDialog(params);
-
- QObject::connect(m_dialog, SIGNAL(finished(int)),
-@@ -231,6 +240,8 @@ void BrowserRequestPrivate::onFinished()
- QVariantMap reply;
- QUrl url = m_responseUrl.isEmpty() ? m_currentUrl : m_responseUrl;
- reply[SSOUI_KEY_URLRESPONSE] = url.toString();
-+ if (!m_username.isEmpty())
-+ reply[SSOUI_KEY_USERNAME] = m_username;
-
- m_dialog->close();
-
-diff --git a/src/qml/WebView.qml b/src/qml/WebView.qml
-index 33462b8..3af0239 100644
---- a/src/qml/WebView.qml
-+++ b/src/qml/WebView.qml
-@@ -1,4 +1,5 @@
- import QtQuick 2.0
-+import QtWebChannel 1.0
- import QtWebEngine 1.1
-
- WebEngineView {
-@@ -25,8 +26,43 @@ WebEngineView {
- profile: WebEngineProfile {
- cachePath: rootDir
- persistentStoragePath: rootDir
-+ // For compatibility with the webkit-options.d values
-+ httpUserAgent: "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.21 (KHTML, like Gecko) Safari/537.21"
- }
-
-+ QtObject {
-+ id: commProxy
-+ WebChannel.id: "comm"
-+ property string username: ""
-+ property string selector: signonRequest.usernameSelector
-+ onUsernameChanged: signonRequest.username = username
-+ }
-+
-+ WebChannel {
-+ id: chan
-+ registeredObjects: [commProxy]
-+ }
-+ webChannel: chan
-+
-+ WebEngineScript {
-+ id: qwebchannel
-+ injectionPoint: WebEngineScript.DocumentCreation
-+ sourceUrl: "qrc:/qtwebchannel/qwebchannel.js"
-+ worldId: WebEngineScript.MainWorld
-+ }
-+
-+ WebEngineScript {
-+ id: commScript
-+ injectionPoint: WebEngineScript.DocumentReady
-+ sourceCode: "new QWebChannel(window.qt.webChannelTransport, function(channel) {" +
-+ " var elem = document.querySelector(channel.objects.comm.selector);" +
-+ " elem.addEventListener('keyup', function() { channel.objects.comm.username = elem.value; });" +
-+ "});"
-+ worldId: WebEngineScript.MainWorld
-+ }
-+
-+ userScripts: [qwebchannel, commScript]
-+
- ProgressBar {
- anchors.top: parent.top
- anchors.left: parent.left
---
-2.18.0
diff --git a/net-libs/signon-ui/signon-ui-0.15_p20231016-r1.ebuild b/net-libs/signon-ui/signon-ui-0.15_p20231016-r1.ebuild
deleted file mode 100644
index 6f5529cd9816..000000000000
--- a/net-libs/signon-ui/signon-ui-0.15_p20231016-r1.ebuild
+++ /dev/null
@@ -1,83 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit qmake-utils
-
-if [[ ${PV} = *9999* ]] ; then
- EGIT_REPO_URI="https://gitlab.com/accounts-sso/signon-ui.git/"
- inherit git-r3
-else
- COMMIT=eef943f0edf3beee8ecb85d4a9dae3656002fc24
- SRC_URI="https://gitlab.com/accounts-sso/${PN}/-/archive/${COMMIT}/${PN}-${COMMIT}.tar.bz2 -> ${P}.tar.bz2"
- S="${WORKDIR}/${PN}-${COMMIT}"
- KEYWORDS="amd64 arm64"
-fi
-
-DESCRIPTION="Online accounts signon UI"
-HOMEPAGE="https://gitlab.com/accounts-sso/signon-ui"
-
-LICENSE="GPL-2 GPL-3"
-SLOT="0"
-IUSE="qt6 test"
-
-RESTRICT="test"
-
-COMMON_DEPEND="
- dev-libs/glib:2
- !qt6? (
- dev-qt/qtcore:5
- dev-qt/qtdbus:5
- dev-qt/qtdeclarative:5
- dev-qt/qtgui:5
- dev-qt/qtnetwork:5[ssl]
- dev-qt/qtwebengine:5
- dev-qt/qtwidgets:5
- >=net-libs/accounts-qt-1.16_p20220803[qt5]
- >=net-libs/signond-8.61-r100[qt5]
- )
- qt6? (
- dev-qt/qtbase:6[dbus,gui,network,ssl,widgets]
- dev-qt/qtdeclarative:6
- dev-qt/qtwebengine:6[qml]
- >=net-libs/accounts-qt-1.17[qt6(+)]
- >=net-libs/signond-8.61-r100[qt6(+)]
- )
- net-libs/libproxy
- x11-libs/libnotify
-"
-RDEPEND="${COMMON_DEPEND}
- !qt6? ( dev-qt/qtwebchannel:5 )
- qt6? ( dev-qt/qtwebchannel:6 )
-"
-DEPEND="${COMMON_DEPEND}
- test? (
- !qt6? ( dev-qt/qttest:5 )
- )
-"
-
-PATCHES=(
- # thanks to openSUSE
- "${FILESDIR}/${PN}-0.15_p20171022-webengine-cachedir-path.patch"
- "${FILESDIR}/${PN}-0.15_p20171022-fix-username-field-reading.patch"
- # downstream
- "${FILESDIR}/${PN}-0.15_p20171022-drop-fno-rtti.patch"
- "${FILESDIR}/${PN}-0.15_p20171022-disable-tests.patch"
-)
-
-src_configure() {
- if use qt6; then
- eqmake6 PREFIX="${EPREFIX}"/usr
- else
- eqmake5 PREFIX="${EPREFIX}"/usr
- fi
-}
-
-src_compile() {
- emake -j1
-}
-
-src_install() {
- emake INSTALL_ROOT="${D}" -j1 install
-}