summaryrefslogtreecommitdiff
path: root/kde-plasma/plasma-welcome
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-04-19 23:58:47 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-04-19 23:58:47 +0100
commitf7e94be7540157809ed892278b6765c368a5a912 (patch)
treea4258bdce59d4d7844b45164e56cf94d135a74e5 /kde-plasma/plasma-welcome
parent80063f2f52858d7e3f06534393a5d0e2b0d33029 (diff)
gentoo auto-resync : 19:04:2023 - 23:58:47
Diffstat (limited to 'kde-plasma/plasma-welcome')
-rw-r--r--kde-plasma/plasma-welcome/Manifest5
-rw-r--r--kde-plasma/plasma-welcome/files/plasma-welcome-5.27.4.1-kaccounts-optional.patch99
-rw-r--r--kde-plasma/plasma-welcome/metadata.xml4
-rw-r--r--kde-plasma/plasma-welcome/plasma-welcome-5.27.4.1-r1.ebuild (renamed from kde-plasma/plasma-welcome/plasma-welcome-5.27.4.1.ebuild)22
4 files changed, 124 insertions, 6 deletions
diff --git a/kde-plasma/plasma-welcome/Manifest b/kde-plasma/plasma-welcome/Manifest
index b59494cc11d8..223f63cc3b54 100644
--- a/kde-plasma/plasma-welcome/Manifest
+++ b/kde-plasma/plasma-welcome/Manifest
@@ -1,3 +1,4 @@
+AUX plasma-welcome-5.27.4.1-kaccounts-optional.patch 3455 BLAKE2B 47f4294b6ac94ce005d0079981fa31d33991ac01ec73adb768b4feb12ef169a70a7a13519efce88b5bb3d79bc7faa24054ecc10a79272a758e7ab64e39fa5b59 SHA512 a7533802112b34eb8a3d547ee5925f6123ce12a61423433f9a2014f3f37ae5d02da48748e535b3bd2eb5ae6d61ff4458af7960bfab2065e06d78047d26123a60
DIST plasma-welcome-5.27.4.1.tar.xz 822136 BLAKE2B 6d5f1eefe7e8dbbcfb121d3d063a78eca8af132a53765298cbf4a46c41524f2aa46192956884b7a12e47bccf48d292acbb1ca4e4173ad0c05c7a84e8a9d73dbd SHA512 c63bcaf66163e248bd5067c7b0cbd445353cd28a900dfac8fde6e27231ba1f24388a4013378d71673d523e1ce42065c87aa8cd23d8bdf8285c221cac4262e6ac
-EBUILD plasma-welcome-5.27.4.1.ebuild 1172 BLAKE2B f7c8188689ba4aa60522bd67a7ca3522062e52a8c495dc8552759ee838e2cf92e925ec5d68d9df6791f1e1922c53ae5207e9c48dbe09ab815a78030fd4746d2c SHA512 bf4929a635d833d7e637d212c2a40b90dadba446005fe30f36b9e32202d17f20d03d6073a407bc07d760a9350bd06370dce082c2ef5291b100a744f5a368faf3
-MISC metadata.xml 318 BLAKE2B 922a5e32e706b2976c5f359a14194d268d3f499398576c80ce5fad8c0fcea0fbf048de4480a80a6a1889c88b8b6c14147654a3ab4d5ffbcc258c2290da63f6d1 SHA512 614cb8dda7ad2088e5d6ef39b449bb4be0ac72cd0231c320188d76d1816dce6490c5114bb4798112c4b11d99d30a9e82ff8fcf08ffa8c049589682a5e38208f6
+EBUILD plasma-welcome-5.27.4.1-r1.ebuild 1526 BLAKE2B 5ff4e2b0e06230351dff463b062fb8e01d87d56bd0e713f6be446f414e447bc0306257adfe803c6598102c395cb44d0b0c98f36c2e9ceeb3820eb1965965472c SHA512 e682d249dfd915397821cc265049ac754d2b49419d5c272699ee4a866a3e5a87d79e1023a28a49fcf92ddc9ac05b22a19e71d7be4967db020aea04ed18f3e1e9
+MISC metadata.xml 550 BLAKE2B 78839fba571ddb92926c13ff6e8747b2d14af746f5e0f29483996df70a51801838c016de81ed9125fa79f701ff0aefe22f9bc95e71d068f3cc95bd210164fe5d SHA512 8d79e582ddf141e9e97e5de8036e4878f7a4c2acbb06669491da9e0d1ae64316d49d6a330b8c7268c411a42170d37152f8d7c1580ef3ad75454097780e92b24f
diff --git a/kde-plasma/plasma-welcome/files/plasma-welcome-5.27.4.1-kaccounts-optional.patch b/kde-plasma/plasma-welcome/files/plasma-welcome-5.27.4.1-kaccounts-optional.patch
new file mode 100644
index 000000000000..fc4eaa684a63
--- /dev/null
+++ b/kde-plasma/plasma-welcome/files/plasma-welcome-5.27.4.1-kaccounts-optional.patch
@@ -0,0 +1,99 @@
+From 24092946ed95b4ddf7e7f4c0f5bd9000e45fecad Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <asturm@gentoo.org>
+Date: Wed, 19 Apr 2023 21:16:59 +0200
+Subject: [PATCH] Make KAccounts optional
+
+Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
+---
+ CMakeLists.txt | 2 +-
+ src/CMakeLists.txt | 1 +
+ src/contents/ui/main.qml | 4 +++-
+ src/controller.cpp | 9 +++++++++
+ src/controller.h | 1 +
+ src/kuserfeedbacksettings.h.cmake | 1 +
+ 6 files changed, 16 insertions(+), 2 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 772d79e..86db439 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -41,7 +41,7 @@ ecm_setup_version(${PROJECT_VERSION}
+ find_package(Qt${QT_MAJOR_VERSION} ${REQUIRED_QT_VERSION} REQUIRED COMPONENTS Core Gui Network Qml QuickControls2 Svg)
+ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS Kirigami2 CoreAddons ConfigWidgets DBusAddons Declarative I18n KIO NewStuff Notifications Plasma Service WindowSystem)
+ find_package(KUserFeedback)
+-find_package(KAccounts REQUIRED)
++find_package(KAccounts)
+
+ ecm_set_disabled_deprecation_versions(QT 5.15.2
+ KF 5.101
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 4eab33d..e0cc179 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -3,6 +3,7 @@
+ # SPDX-FileCopyrightText: 2022 Nate Graham <nate@kde.org>
+
+ set(HAVE_KUSERFEEDBACK ${KUserFeedback_FOUND})
++set(HAVE_KACCOUNTS ${KAccounts_FOUND})
+ configure_file(kuserfeedbacksettings.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/kuserfeedbacksettings.h)
+
+ add_executable(plasma-welcome main.cpp controller.cpp resources.qrc module.cpp)
+diff --git a/src/contents/ui/main.qml b/src/contents/ui/main.qml
+index 380c074..86da39b 100644
+--- a/src/contents/ui/main.qml
++++ b/src/contents/ui/main.qml
+@@ -124,7 +124,9 @@ Kirigami.ApplicationWindow {
+ pageStack.push(kcm_feedback);
+ }
+
+- pageStack.push(kcm_kaccounts);
++ if (Controller.kAccountsAvailable()) {
++ pageStack.push(kcm_kaccounts);
++ }
+
+ // Append any distro-specific pages that were found
+ let distroPages = Controller.distroPages()
+diff --git a/src/controller.cpp b/src/controller.cpp
+index 7586c23..de8fa85 100644
+--- a/src/controller.cpp
++++ b/src/controller.cpp
+@@ -50,6 +50,15 @@ bool Controller::networkAlreadyConnected()
+ return false;
+ }
+
++bool Controller::kAccountsAvailable()
++{
++#if HAVE_KACCOUNTS
++ return true;
++#else
++ return false;
++#endif
++}
++
+ bool Controller::userFeedbackAvailable()
+ {
+ #if HAVE_KUSERFEEDBACK
+diff --git a/src/controller.h b/src/controller.h
+index 20ba44c..97a9d1c 100644
+--- a/src/controller.h
++++ b/src/controller.h
+@@ -15,6 +15,7 @@ public:
+ Q_INVOKABLE static void runCommand(const QString &command, const QString &desktopFilename);
+ Q_INVOKABLE bool networkAlreadyConnected();
+ Q_INVOKABLE bool userFeedbackAvailable();
++ Q_INVOKABLE bool kAccountsAvailable();
+ Q_INVOKABLE QStringList distroPages();
+
+ Q_PROPERTY(QString newPlasmaVersion MEMBER m_newPlasmaVersion NOTIFY newPlasmaVersionChanged)
+diff --git a/src/kuserfeedbacksettings.h.cmake b/src/kuserfeedbacksettings.h.cmake
+index f30924f..a76aedf 100644
+--- a/src/kuserfeedbacksettings.h.cmake
++++ b/src/kuserfeedbacksettings.h.cmake
+@@ -5,3 +5,4 @@
+ */
+
+ #cmakedefine01 HAVE_KUSERFEEDBACK
++#cmakedefine01 HAVE_KACCOUNTS
+--
+2.40.0
+
diff --git a/kde-plasma/plasma-welcome/metadata.xml b/kde-plasma/plasma-welcome/metadata.xml
index d925f2439758..7499be9e7e7d 100644
--- a/kde-plasma/plasma-welcome/metadata.xml
+++ b/kde-plasma/plasma-welcome/metadata.xml
@@ -8,4 +8,8 @@
<upstream>
<bugs-to>https://bugs.kde.org/</bugs-to>
</upstream>
+ <use>
+ <flag name="discover">Pull in resources management GUI; a centralised GHNS alternative and optional <pkg>sys-apps/fwupd</pkg> frontend</flag>
+ <flag name="kaccounts">Build the OpenDesktop integration plugin</flag>
+ </use>
</pkgmetadata>
diff --git a/kde-plasma/plasma-welcome/plasma-welcome-5.27.4.1.ebuild b/kde-plasma/plasma-welcome/plasma-welcome-5.27.4.1-r1.ebuild
index 85c827c00945..1f431b9ad2da 100644
--- a/kde-plasma/plasma-welcome/plasma-welcome-5.27.4.1.ebuild
+++ b/kde-plasma/plasma-welcome/plasma-welcome-5.27.4.1-r1.ebuild
@@ -12,16 +12,15 @@ DESCRIPTION="A friendly onboarding wizard for Plasma"
LICENSE="GPL-2+"
SLOT="5"
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
-IUSE="telemetry"
+IUSE="discover +kaccounts telemetry"
-RDEPEND="
+DEPEND="
>=dev-qt/qtdeclarative-${QTMIN}:5[widgets]
>=dev-qt/qtgui-${QTMIN}:5
>=dev-qt/qtnetwork-${QTMIN}:5
>=dev-qt/qtquickcontrols2-${QTMIN}:5
>=dev-qt/qtsvg-${QTMIN}:5
>=dev-qt/qtwidgets-${QTMIN}:5
- kde-apps/kaccounts-integration:5
>=kde-frameworks/kconfig-${KFMIN}:5
>=kde-frameworks/kconfigwidgets-${KFMIN}:5
>=kde-frameworks/kcoreaddons-${KFMIN}:5
@@ -33,12 +32,27 @@ RDEPEND="
>=kde-frameworks/knotifications-${KFMIN}:5
>=kde-frameworks/kservice-${KFMIN}:5
>=kde-frameworks/kwindowsystem-${KFMIN}:5
+ kaccounts? ( kde-apps/kaccounts-integration:5 )
telemetry? ( dev-libs/kuserfeedback:5 )
"
-DEPEND="${RDEPEND}"
+RDEPEND="${DEPEND}
+ discover? ( kde-plasma/discover:5 )
+"
+
+PATCHES=( "${FILESDIR}/${P}-kaccounts-optional.patch" )
+
+src_prepare() {
+ ecm_src_prepare
+
+ if ! use discover; then
+ sed -e "s:pageStack.push(discover);:// & disabled by IUSE=discover:" \
+ -i src/contents/ui/main.qml || die
+ fi
+}
src_configure() {
local mycmakeargs=(
+ $(cmake_use_find_package kaccounts KAccounts)
$(cmake_use_find_package telemetry KUserFeedback)
)
ecm_src_configure