commit:     bcc075ec8811eb1badbccd2b4dfbc2a46bb9ea06
Author:     Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
AuthorDate: Sat Dec 26 23:05:02 2015 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Sun Dec 27 14:19:10 2015 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=bcc075ec

kde-plasma/kde-cli-tools: Add USE=+kdesu, install symlink for kdesu5

kdelibs4support is only required for USE=X

Package-Manager: portage-2.2.24

 ...cli-tools-5.5.2.ebuild => kde-cli-tools-5.5.2-r1.ebuild} | 13 ++++++++++---
 kde-plasma/kde-cli-tools/kde-cli-tools-5.5.49.9999.ebuild   | 13 ++++++++++---
 kde-plasma/kde-cli-tools/kde-cli-tools-9999.ebuild          | 13 ++++++++++---
 kde-plasma/kde-cli-tools/metadata.xml                       |  3 +++
 4 files changed, 33 insertions(+), 9 deletions(-)

diff --git a/kde-plasma/kde-cli-tools/kde-cli-tools-5.5.2.ebuild 
b/kde-plasma/kde-cli-tools/kde-cli-tools-5.5.2-r1.ebuild
similarity index 78%
rename from kde-plasma/kde-cli-tools/kde-cli-tools-5.5.2.ebuild
rename to kde-plasma/kde-cli-tools/kde-cli-tools-5.5.2-r1.ebuild
index b606eda..bb77248 100644
--- a/kde-plasma/kde-cli-tools/kde-cli-tools-5.5.2.ebuild
+++ b/kde-plasma/kde-cli-tools/kde-cli-tools-5.5.2-r1.ebuild
@@ -12,7 +12,7 @@ inherit kde5
 DESCRIPTION="Tools based on KDE Frameworks 5 to better interact with the 
system"
 HOMEPAGE="https://projects.kde.org/projects/kde/workspace/kde-cli-tools";
 KEYWORDS="~amd64 ~x86"
-IUSE="X"
+IUSE="+kdesu X"
 
 DEPEND="
        $(add_frameworks_dep kcmutils)
@@ -20,8 +20,6 @@ DEPEND="
        $(add_frameworks_dep kconfig)
        $(add_frameworks_dep kconfigwidgets)
        $(add_frameworks_dep kcoreaddons)
-       $(add_frameworks_dep kdelibs4support)
-       $(add_frameworks_dep kdesu)
        $(add_frameworks_dep ki18n)
        $(add_frameworks_dep kiconthemes)
        $(add_frameworks_dep kio)
@@ -32,7 +30,9 @@ DEPEND="
        dev-qt/qtgui:5
        dev-qt/qtsvg:5
        dev-qt/qtwidgets:5
+       kdesu? ( $(add_frameworks_dep kdesu) )
        X? (
+               $(add_frameworks_dep kdelibs4support)
                dev-qt/qtx11extras:5
                x11-libs/libX11
        )
@@ -46,8 +46,15 @@ RESTRICT="test"
 
 src_configure() {
        local mycmakeargs=(
+               $(cmake-utils_use_find_package kdesu KF5Su)
+               $(cmake-utils_use_find_package X KF5KDELibs4Support)
                $(cmake-utils_use_find_package X Qt5X11Extras)
        )
 
        kde5_src_configure
 }
+
+src_install() {
+       kde5_src_install
+       use kdesu && dosym /usr/$(get_libdir)/libexec/kf5/kdesu /usr/bin/kdesu5
+}

diff --git a/kde-plasma/kde-cli-tools/kde-cli-tools-5.5.49.9999.ebuild 
b/kde-plasma/kde-cli-tools/kde-cli-tools-5.5.49.9999.ebuild
index a01208e..091c25a 100644
--- a/kde-plasma/kde-cli-tools/kde-cli-tools-5.5.49.9999.ebuild
+++ b/kde-plasma/kde-cli-tools/kde-cli-tools-5.5.49.9999.ebuild
@@ -12,7 +12,7 @@ inherit kde5
 DESCRIPTION="Tools based on KDE Frameworks 5 to better interact with the 
system"
 HOMEPAGE="https://projects.kde.org/projects/kde/workspace/kde-cli-tools";
 KEYWORDS=""
-IUSE="X"
+IUSE="+kdesu X"
 
 DEPEND="
        $(add_frameworks_dep kcmutils)
@@ -20,8 +20,6 @@ DEPEND="
        $(add_frameworks_dep kconfig)
        $(add_frameworks_dep kconfigwidgets)
        $(add_frameworks_dep kcoreaddons)
-       $(add_frameworks_dep kdelibs4support)
-       $(add_frameworks_dep kdesu)
        $(add_frameworks_dep ki18n)
        $(add_frameworks_dep kiconthemes)
        $(add_frameworks_dep kio)
@@ -32,7 +30,9 @@ DEPEND="
        dev-qt/qtgui:5
        dev-qt/qtsvg:5
        dev-qt/qtwidgets:5
+       kdesu? ( $(add_frameworks_dep kdesu) )
        X? (
+               $(add_frameworks_dep kdelibs4support)
                dev-qt/qtx11extras:5
                x11-libs/libX11
        )
@@ -46,8 +46,15 @@ RESTRICT="test"
 
 src_configure() {
        local mycmakeargs=(
+               $(cmake-utils_use_find_package kdesu KF5Su)
+               $(cmake-utils_use_find_package X KF5KDELibs4Support)
                $(cmake-utils_use_find_package X Qt5X11Extras)
        )
 
        kde5_src_configure
 }
+
+src_install() {
+       kde5_src_install
+       use kdesu && dosym /usr/$(get_libdir)/libexec/kf5/kdesu /usr/bin/kdesu5
+}

diff --git a/kde-plasma/kde-cli-tools/kde-cli-tools-9999.ebuild 
b/kde-plasma/kde-cli-tools/kde-cli-tools-9999.ebuild
index a01208e..091c25a 100644
--- a/kde-plasma/kde-cli-tools/kde-cli-tools-9999.ebuild
+++ b/kde-plasma/kde-cli-tools/kde-cli-tools-9999.ebuild
@@ -12,7 +12,7 @@ inherit kde5
 DESCRIPTION="Tools based on KDE Frameworks 5 to better interact with the 
system"
 HOMEPAGE="https://projects.kde.org/projects/kde/workspace/kde-cli-tools";
 KEYWORDS=""
-IUSE="X"
+IUSE="+kdesu X"
 
 DEPEND="
        $(add_frameworks_dep kcmutils)
@@ -20,8 +20,6 @@ DEPEND="
        $(add_frameworks_dep kconfig)
        $(add_frameworks_dep kconfigwidgets)
        $(add_frameworks_dep kcoreaddons)
-       $(add_frameworks_dep kdelibs4support)
-       $(add_frameworks_dep kdesu)
        $(add_frameworks_dep ki18n)
        $(add_frameworks_dep kiconthemes)
        $(add_frameworks_dep kio)
@@ -32,7 +30,9 @@ DEPEND="
        dev-qt/qtgui:5
        dev-qt/qtsvg:5
        dev-qt/qtwidgets:5
+       kdesu? ( $(add_frameworks_dep kdesu) )
        X? (
+               $(add_frameworks_dep kdelibs4support)
                dev-qt/qtx11extras:5
                x11-libs/libX11
        )
@@ -46,8 +46,15 @@ RESTRICT="test"
 
 src_configure() {
        local mycmakeargs=(
+               $(cmake-utils_use_find_package kdesu KF5Su)
+               $(cmake-utils_use_find_package X KF5KDELibs4Support)
                $(cmake-utils_use_find_package X Qt5X11Extras)
        )
 
        kde5_src_configure
 }
+
+src_install() {
+       kde5_src_install
+       use kdesu && dosym /usr/$(get_libdir)/libexec/kf5/kdesu /usr/bin/kdesu5
+}

diff --git a/kde-plasma/kde-cli-tools/metadata.xml 
b/kde-plasma/kde-cli-tools/metadata.xml
index a23f444..b1b2963 100644
--- a/kde-plasma/kde-cli-tools/metadata.xml
+++ b/kde-plasma/kde-cli-tools/metadata.xml
@@ -2,4 +2,7 @@
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
 <pkgmetadata>
        <herd>kde</herd>
+       <use>
+               <flag name="kdesu">Build graphical frontend for 
<pkg>kde-frameworks/kdesu</pkg></flag>
+       </use>
 </pkgmetadata>

Reply via email to