commit:     5d43c27ea3ecdb1afa9ce82c3bb9011ebb2dfd03
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon Sep  2 21:31:38 2024 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed Sep  4 11:43:01 2024 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=5d43c27e

kde-plasma/kdesu-gui: new package, add 6.1.49.9999, 9999

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 .../files/kdesu-gui-6.1.5-build-only-kdesu.patch   | 72 ++++++++++++++++++++++
 kde-plasma/kdesu-gui/kdesu-gui-6.1.49.9999.ebuild  | 53 ++++++++++++++++
 kde-plasma/kdesu-gui/kdesu-gui-9999.ebuild         | 53 ++++++++++++++++
 kde-plasma/kdesu-gui/metadata.xml                  | 12 ++++
 4 files changed, 190 insertions(+)

diff --git a/kde-plasma/kdesu-gui/files/kdesu-gui-6.1.5-build-only-kdesu.patch 
b/kde-plasma/kdesu-gui/files/kdesu-gui-6.1.5-build-only-kdesu.patch
new file mode 100644
index 0000000000..0679d9bf85
--- /dev/null
+++ b/kde-plasma/kdesu-gui/files/kdesu-gui-6.1.5-build-only-kdesu.patch
@@ -0,0 +1,72 @@
+From eacbe389502b4f89cb64dc24f10f3e8d2b5eb5c7 Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <ast...@gentoo.org>
+Date: Mon, 2 Sep 2024 23:18:46 +0200
+Subject: [PATCH] Make all KF6 and Qt6 modules optional, disable all subdirs
+ except kdesu
+
+Signed-off-by: Andreas Sturmlechner <ast...@gentoo.org>
+---
+ CMakeLists.txt | 28 ++++++++++++++--------------
+ 1 file changed, 14 insertions(+), 14 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index dc435bca..234447e0 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -28,7 +28,7 @@ include(ECMDeprecationSettings)
+ 
+ include(KDEGitCommitHooks)
+ 
+-find_package(Qt6 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
++find_package(Qt6 ${QT_MIN_VERSION} CONFIG COMPONENTS
+     Widgets
+     Svg
+     DBus
+@@ -44,7 +44,7 @@ if (NOT Qt6Test_FOUND)
+     set(BUILD_TESTING OFF CACHE BOOL "Build the testing tree.")
+ endif()
+ 
+-find_package(KF6 ${KF6_MIN_VERSION} REQUIRED COMPONENTS
++find_package(KF6 ${KF6_MIN_VERSION} COMPONENTS
+     Config
+     DocTools
+     IconThemes
+@@ -78,23 +78,23 @@ function(install_compat_symlink executable_target)
+     install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${executable_target}5 
DESTINATION ${KDE_INSTALL_FULL_BINDIR})
+ endfunction()
+ 
+-add_subdirectory(keditfiletype)
+-add_subdirectory(kmimetypefinder)
+-add_subdirectory(kioclient)
+-add_subdirectory(ksvgtopng)
+-add_subdirectory(kdeinhibit)
+-add_subdirectory(plasma-open-settings)
+-add_subdirectory(kinfo)
+-add_subdirectory(kstart)
++#add_subdirectory(keditfiletype)
++#add_subdirectory(kmimetypefinder)
++#add_subdirectory(kioclient)
++#add_subdirectory(ksvgtopng)
++#add_subdirectory(kdeinhibit)
++#add_subdirectory(plasma-open-settings)
++#add_subdirectory(kinfo)
++#add_subdirectory(kstart)
+ 
+ if(KF6Su_FOUND)
+     add_subdirectory(kdesu)
+ endif()
+ 
+-if(UNIX)
+-    add_subdirectory(kdeeject)
+-    add_subdirectory(kbroadcastnotification)
+-endif()
++#if(UNIX)
++#    add_subdirectory(kdeeject)
++#    add_subdirectory(kbroadcastnotification)
++#endif()
+ 
+ check_include_files(sys/wait.h HAVE_SYS_WAIT_H)
+ 
+-- 
+2.46.0
+

diff --git a/kde-plasma/kdesu-gui/kdesu-gui-6.1.49.9999.ebuild 
b/kde-plasma/kdesu-gui/kdesu-gui-6.1.49.9999.ebuild
new file mode 100644
index 0000000000..bfef49d5b9
--- /dev/null
+++ b/kde-plasma/kdesu-gui/kdesu-gui-6.1.49.9999.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ECM_HANDBOOK="forceoff"
+ECM_TEST="false"
+KDE_ORG_NAME="kde-cli-tools"
+KFMIN=6.5.0
+QTMIN=6.7.2
+inherit ecm plasma.kde.org
+
+DESCRIPTION="Graphical frontend for KDE Frameworks' kdesu"
+HOMEPAGE="https://invent.kde.org/plasma/kde-cli-tools";
+
+LICENSE="GPL-2" # TODO: CHECK
+SLOT="0"
+KEYWORDS=""
+IUSE="X"
+
+DEPEND="
+       >=dev-qt/qtbase-${QTMIN}:6=[gui,widgets]
+       >=kde-frameworks/kconfig-${KFMIN}:6
+       >=kde-frameworks/kcoreaddons-${KFMIN}:6
+       >=kde-frameworks/kdesu-${KFMIN}:6
+       >=kde-frameworks/ki18n-${KFMIN}:6
+       >=kde-frameworks/kwidgetsaddons-${KFMIN}:6
+       >=kde-frameworks/kwindowsystem-${KFMIN}:6[X?]
+"
+RDEPEND="${DEPEND}
+       !<${CATEGORY}/${KDE_ORG_NAME}-6.1.4-r2:*[kdesu(+)]
+       >=${CATEGORY}/${KDE_ORG_NAME}-common-${PV}
+       sys-apps/dbus[X]
+"
+
+PATCHES=( "${FILESDIR}/${PN}-6.1.5-build-only-kdesu.patch" )
+
+src_prepare() {
+       ecm_src_prepare
+       ecm_punt_po_install
+}
+
+src_configure() {
+       local mycmakeargs=(
+               -DWITH_X11=$(usex X)
+       )
+       ecm_src_configure
+}
+
+src_install() {
+       ecm_src_install
+       dosym ../libexec/kf6/kdesu /usr/bin/kdesu
+}

diff --git a/kde-plasma/kdesu-gui/kdesu-gui-9999.ebuild 
b/kde-plasma/kdesu-gui/kdesu-gui-9999.ebuild
new file mode 100644
index 0000000000..598005b3d7
--- /dev/null
+++ b/kde-plasma/kdesu-gui/kdesu-gui-9999.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ECM_HANDBOOK="forceoff"
+ECM_TEST="false"
+KDE_ORG_NAME="kde-cli-tools"
+KFMIN=9999
+QTMIN=6.7.2
+inherit ecm plasma.kde.org
+
+DESCRIPTION="Graphical frontend for KDE Frameworks' kdesu"
+HOMEPAGE="https://invent.kde.org/plasma/kde-cli-tools";
+
+LICENSE="GPL-2" # TODO: CHECK
+SLOT="0"
+KEYWORDS=""
+IUSE="X"
+
+DEPEND="
+       >=dev-qt/qtbase-${QTMIN}:6=[gui,widgets]
+       >=kde-frameworks/kconfig-${KFMIN}:6
+       >=kde-frameworks/kcoreaddons-${KFMIN}:6
+       >=kde-frameworks/kdesu-${KFMIN}:6
+       >=kde-frameworks/ki18n-${KFMIN}:6
+       >=kde-frameworks/kwidgetsaddons-${KFMIN}:6
+       >=kde-frameworks/kwindowsystem-${KFMIN}:6[X?]
+"
+RDEPEND="${DEPEND}
+       !<${CATEGORY}/${KDE_ORG_NAME}-6.1.4-r2:*[kdesu(+)]
+       >=${CATEGORY}/${KDE_ORG_NAME}-common-${PV}
+       sys-apps/dbus[X]
+"
+
+PATCHES=( "${FILESDIR}/${PN}-6.1.5-build-only-kdesu.patch" )
+
+src_prepare() {
+       ecm_src_prepare
+       ecm_punt_po_install
+}
+
+src_configure() {
+       local mycmakeargs=(
+               -DWITH_X11=$(usex X)
+       )
+       ecm_src_configure
+}
+
+src_install() {
+       ecm_src_install
+       dosym ../libexec/kf6/kdesu /usr/bin/kdesu
+}

diff --git a/kde-plasma/kdesu-gui/metadata.xml 
b/kde-plasma/kdesu-gui/metadata.xml
new file mode 100644
index 0000000000..7e9d56c900
--- /dev/null
+++ b/kde-plasma/kdesu-gui/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="project">
+               <email>k...@gentoo.org</email>
+               <name>Gentoo KDE Project</name>
+       </maintainer>
+       <upstream>
+               <bugs-to>https://bugs.kde.org/</bugs-to>
+               <remote-id type="kde-invent">plasma/kde-cli-tools</remote-id>
+       </upstream>
+</pkgmetadata>

Reply via email to