diff options
Diffstat (limited to 'kde-plasma/kdesu-gui')
-rw-r--r-- | kde-plasma/kdesu-gui/Manifest | 1 | ||||
-rw-r--r-- | kde-plasma/kdesu-gui/files/kdesu-gui-6.1.80-build-only-kdesu.patch | 72 | ||||
-rw-r--r-- | kde-plasma/kdesu-gui/kdesu-gui-6.2.0.ebuild | 53 |
3 files changed, 126 insertions, 0 deletions
diff --git a/kde-plasma/kdesu-gui/Manifest b/kde-plasma/kdesu-gui/Manifest index f08cf69259c6..fc5de5723758 100644 --- a/kde-plasma/kdesu-gui/Manifest +++ b/kde-plasma/kdesu-gui/Manifest @@ -1,2 +1,3 @@ DIST kde-cli-tools-5.27.11.tar.xz 670892 BLAKE2B 56463030f1935dd722212282000f9fd5e337de7171cc2f9ec08fdae66ed681463680af33fa5ac6b21c93e9eebbb4b415a211f0e72f075521960084afa69bfdb0 SHA512 8f6bbe39df4e491a28d3c6576c58bcbf74971f54157a8cdbc3bb7d4719a31d83f38bae45402cb8f48f11bd37d907bb625f89b929b83a2bb459d7c9c836d78006 DIST kde-cli-tools-6.1.5.tar.xz 629280 BLAKE2B 200e316531ad6095fe0bfba356f2d5afb2f78dbc219e64bb14ed96d718b542475d3db9efdb8cad42a5c17dfaea7c33df3627a5747f17d549d5bbfe70d1a34e6c SHA512 48fcfdf832828a8c04b46c72dd35273e7859b719707529a755e475b1f82fdc65de641234db6c107ce1a1be05825b286fbf0d4d3620b4deb8e2163cb824dbf388 +DIST kde-cli-tools-6.2.0.tar.xz 636124 BLAKE2B a75d9f0e1eea1f9bd891ab3f198edafaf44c0f4fce3f41555360780fc74a4a29ac59e064b868672ce0d35462aaec323d43796184cb49c2b82e775daabd3c7ef3 SHA512 6161c9bde77591d65daa3e1615d55a6db75791235062d047f6da6eeab4b89d30404fa7318f3920337141bc6fd1938fcb2c787c7b0f84b588232040cd2aa853a2 diff --git a/kde-plasma/kdesu-gui/files/kdesu-gui-6.1.80-build-only-kdesu.patch b/kde-plasma/kdesu-gui/files/kdesu-gui-6.1.80-build-only-kdesu.patch new file mode 100644 index 000000000000..2cc88883adf9 --- /dev/null +++ b/kde-plasma/kdesu-gui/files/kdesu-gui-6.1.80-build-only-kdesu.patch @@ -0,0 +1,72 @@ +From aca455335ebcbc8818aacb75ffb7ef026ccc82e4 Mon Sep 17 00:00:00 2001 +From: Andreas Sturmlechner <asturm@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 <asturm@gentoo.org> +--- + CMakeLists.txt | 28 ++++++++++++++-------------- + 1 file changed, 14 insertions(+), 14 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index f1092bf8..4667f06d 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 +@@ -79,23 +79,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 AND KF6WidgetsAddons_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.2.0.ebuild b/kde-plasma/kdesu-gui/kdesu-gui-6.2.0.ebuild new file mode 100644 index 000000000000..ca825cf8f29e --- /dev/null +++ b/kde-plasma/kdesu-gui/kdesu-gui-6.2.0.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.6.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="~amd64 ~arm64 ~ppc64 ~riscv ~x86" +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.80-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 +} |