commit:     7f006bfa785842e0e94cdb2180402146e89073fc
Author:     Johannes Huber <johu <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 18 21:05:32 2017 +0000
Commit:     Johannes Huber <johu <AT> gentoo <DOT> org>
CommitDate: Wed Jan 18 21:05:32 2017 +0000
URL:        https://gitweb.gentoo.org/proj/kde-sunset.git/commit/?id=7f006bfa

kde-plasma: Import latest KDE Plasma 4 from gentoo main tree

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 kde-plasma/bluedevil/bluedevil-2.1.1.ebuild        |  27 ++++
 kde-plasma/bluedevil/metadata.xml                  |   5 +
 .../freespacenotifier-4.11.22.ebuild               |  12 ++
 kde-plasma/freespacenotifier/metadata.xml          |   5 +
 .../files/kcheckpass-4.4.2-no-SUID-no-GUID.patch   |  15 ++
 kde-plasma/kcheckpass/kcheckpass-4.11.22-r1.ebuild |  36 +++++
 kde-plasma/kcheckpass/metadata.xml                 |   5 +
 kde-plasma/kcminit/kcminit-4.11.22.ebuild          |  17 +++
 kde-plasma/kcminit/metadata.xml                    |   5 +
 .../kde-gtk-config-2.2.1-kdelibs-4.14.11.patch     |  79 ++++++++++
 .../kde-gtk-config/kde-gtk-config-2.2.1.ebuild     |  44 ++++++
 kde-plasma/kde-gtk-config/metadata.xml             |   5 +
 .../kdebase-cursors/kdebase-cursors-4.11.22.ebuild |  13 ++
 kde-plasma/kdebase-cursors/metadata.xml            |   5 +
 kde-plasma/kdebase-pam/files/kde-np.pam-10         |  10 ++
 kde-plasma/kdebase-pam/files/kde.pam-10            |  14 ++
 kde-plasma/kdebase-pam/kdebase-pam-10.ebuild       |  25 ++++
 kde-plasma/kdebase-pam/metadata.xml                |   5 +
 kde-plasma/kdebase-startkde/files/KDE-4            |  97 ++++++++++++
 .../kdebase-startkde/files/agent-shutdown.sh       |  13 ++
 kde-plasma/kdebase-startkde/files/agent-startup.sh |  29 ++++
 .../files/gentoo-startkde4-4.patch                 |  26 ++++
 .../files/kdebase-startkde-kscreen.patch           |  20 +++
 .../files/kdebase-startkde-kwalletd-pam.patch      |  25 ++++
 .../kdebase-startkde-4.11.22-r2.ebuild             | 152 +++++++++++++++++++
 kde-plasma/kdebase-startkde/metadata.xml           |   9 ++
 .../kdeplasma-addons-4.14.3-r1.ebuild              |  62 ++++++++
 kde-plasma/kdeplasma-addons/metadata.xml           |  18 +++
 kde-plasma/kdm/files/kdm-4-gentoo-xinitrc.d.patch  |  19 +++
 kde-plasma/kdm/files/kdm-logrotate                 |   8 +
 kde-plasma/kdm/files/kdm.service                   |  12 ++
 kde-plasma/kdm/kdm-4.11.22.ebuild                  | 163 +++++++++++++++++++++
 kde-plasma/kdm/metadata.xml                        |   8 +
 kde-plasma/kephal/kephal-4.11.22.ebuild            |  25 ++++
 kde-plasma/kephal/metadata.xml                     |   5 +
 kde-plasma/khotkeys/khotkeys-4.11.22.ebuild        |  23 +++
 kde-plasma/khotkeys/metadata.xml                   |   5 +
 kde-plasma/kinfocenter/kinfocenter-4.11.22.ebuild  |  37 +++++
 kde-plasma/kinfocenter/metadata.xml                |   5 +
 kde-plasma/klipper/klipper-4.11.22.ebuild          |  31 ++++
 kde-plasma/klipper/metadata.xml                    |   8 +
 kde-plasma/kmenuedit/kmenuedit-4.11.22.ebuild      |  31 ++++
 kde-plasma/kmenuedit/metadata.xml                  |   5 +
 kde-plasma/krunner/krunner-4.11.22.ebuild          |  51 +++++++
 kde-plasma/krunner/metadata.xml                    |   5 +
 kde-plasma/kscreen/kscreen-1.0.71_p20150824.ebuild |  56 +++++++
 kde-plasma/kscreen/metadata.xml                    |   5 +
 .../files/kscreensaver-4.5.95-nsfw.patch           |  21 +++
 .../kscreensaver/kscreensaver-4.11.22.ebuild       |  22 +++
 kde-plasma/kscreensaver/metadata.xml               |   5 +
 kde-plasma/ksmserver/ksmserver-4.11.22.ebuild      |  43 ++++++
 kde-plasma/ksmserver/metadata.xml                  |   5 +
 kde-plasma/ksplash/ksplash-4.11.22.ebuild          |  39 +++++
 kde-plasma/ksplash/metadata.xml                    |   5 +
 kde-plasma/ksshaskpass/files/ksshaskpass.sh        |   1 +
 kde-plasma/ksshaskpass/ksshaskpass-0.5.3-r1.ebuild |  54 +++++++
 kde-plasma/ksshaskpass/metadata.xml                |   5 +
 .../kstartupconfig/kstartupconfig-4.11.22.ebuild   |  12 ++
 kde-plasma/kstartupconfig/metadata.xml             |   5 +
 kde-plasma/kstyles/kstyles-4.11.22.ebuild          |  22 +++
 kde-plasma/kstyles/metadata.xml                    |   5 +
 kde-plasma/ksysguard/ksysguard-4.11.22.ebuild      |  47 ++++++
 kde-plasma/ksysguard/metadata.xml                  |   5 +
 kde-plasma/ksystraycmd/ksystraycmd-4.11.22.ebuild  |  15 ++
 kde-plasma/ksystraycmd/metadata.xml                |   5 +
 kde-plasma/kwin/kwin-4.11.22.ebuild                |  80 ++++++++++
 kde-plasma/kwin/metadata.xml                       |   8 +
 kde-plasma/kwrited/kwrited-4.11.22.ebuild          |  16 ++
 kde-plasma/kwrited/metadata.xml                    |   5 +
 kde-plasma/libkgreeter/libkgreeter-4.11.22.ebuild  |  19 +++
 kde-plasma/libkgreeter/metadata.xml                |   5 +
 .../libkscreen/libkscreen-1.0.5_p20150822.ebuild   |  28 ++++
 kde-plasma/libkscreen/metadata.xml                 |   5 +
 .../libkworkspace/libkworkspace-4.11.22.ebuild     |  34 +++++
 kde-plasma/libkworkspace/metadata.xml              |   5 +
 .../liboxygenstyle/liboxygenstyle-4.11.22.ebuild   |  17 +++
 kde-plasma/liboxygenstyle/metadata.xml             |   5 +
 .../libplasmaclock/libplasmaclock-4.11.22.ebuild   |  33 +++++
 kde-plasma/libplasmaclock/metadata.xml             |   8 +
 .../libplasmagenericshell-4.11.22.ebuild           |  28 ++++
 kde-plasma/libplasmagenericshell/metadata.xml      |   5 +
 .../libtaskmanager/libtaskmanager-4.11.22.ebuild   |  35 +++++
 kde-plasma/libtaskmanager/metadata.xml             |   5 +
 kde-plasma/metadata.xml                            |   7 +
 kde-plasma/milou/metadata.xml                      |   5 +
 kde-plasma/milou/milou-0.1.ebuild                  |  27 ++++
 .../plasma-nm-0.9.3.6-networkmanager-1.0.6.patch   |  14 ++
 kde-plasma/plasma-nm/metadata.xml                  |   9 ++
 kde-plasma/plasma-nm/plasma-nm-0.9.3.6.ebuild      |  51 +++++++
 kde-plasma/plasma-workspace/metadata.xml           |  10 ++
 .../plasma-workspace-4.11.22.ebuild                | 117 +++++++++++++++
 kde-plasma/powerdevil/metadata.xml                 |   8 +
 kde-plasma/powerdevil/powerdevil-4.11.22.ebuild    |  32 ++++
 kde-plasma/qguiplatformplugin_kde/metadata.xml     |   5 +
 .../qguiplatformplugin_kde-4.11.22.ebuild          |  12 ++
 kde-plasma/solid-actions-kcm/metadata.xml          |   5 +
 .../solid-actions-kcm-4.11.22.ebuild               |  19 +++
 .../systemsettings-4.11.22-strigi-removal.patch    |  35 +++++
 .../files/systemsettings-kcm-randr.patch           |  20 +++
 kde-plasma/systemsettings/metadata.xml             |   8 +
 .../systemsettings-4.11.22-r2.ebuild               | 108 ++++++++++++++
 101 files changed, 2429 insertions(+)

diff --git a/kde-plasma/bluedevil/bluedevil-2.1.1.ebuild 
b/kde-plasma/bluedevil/bluedevil-2.1.1.ebuild
new file mode 100644
index 0000000..708d7f4
--- /dev/null
+++ b/kde-plasma/bluedevil/bluedevil-2.1.1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+KDE_LINGUAS="ar bg bs ca ca@valencia cs da de el en_GB eo es et eu fa fi fr ga 
gl
+hu it ja kk km ko lt mai mr ms nb nds nl pa pl pt pt_BR ro ru sk sl sr
+sr@ijekavian sr@ijekavianlatin sr@Latn sv th tr ug uk zh_CN zh_TW"
+inherit kde4-base
+
+DESCRIPTION="Bluetooth stack for KDE Plasma"
+HOMEPAGE="https://projects.kde.org/projects/extragear/base/bluedevil";
+SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz"
+
+LICENSE="GPL-2+"
+SLOT="4"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="debug"
+
+RDEPEND="
+       >=net-libs/libbluedevil-2.1:4
+       x11-misc/shared-mime-info
+"
+DEPEND="${RDEPEND}
+       sys-devel/gettext
+"

diff --git a/kde-plasma/bluedevil/metadata.xml 
b/kde-plasma/bluedevil/metadata.xml
new file mode 100644
index 0000000..7a38bb9
--- /dev/null
+++ b/kde-plasma/bluedevil/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+</pkgmetadata>

diff --git a/kde-plasma/freespacenotifier/freespacenotifier-4.11.22.ebuild 
b/kde-plasma/freespacenotifier/freespacenotifier-4.11.22.ebuild
new file mode 100644
index 0000000..d64c681
--- /dev/null
+++ b/kde-plasma/freespacenotifier/freespacenotifier-4.11.22.ebuild
@@ -0,0 +1,12 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+KMNAME="kde-workspace"
+inherit kde4-meta
+
+DESCRIPTION="A module that monitors free disk space on the home dir"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug"

diff --git a/kde-plasma/freespacenotifier/metadata.xml 
b/kde-plasma/freespacenotifier/metadata.xml
new file mode 100644
index 0000000..7a38bb9
--- /dev/null
+++ b/kde-plasma/freespacenotifier/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+</pkgmetadata>

diff --git a/kde-plasma/kcheckpass/files/kcheckpass-4.4.2-no-SUID-no-GUID.patch 
b/kde-plasma/kcheckpass/files/kcheckpass-4.4.2-no-SUID-no-GUID.patch
new file mode 100644
index 0000000..78520d4
--- /dev/null
+++ b/kde-plasma/kcheckpass/files/kcheckpass-4.4.2-no-SUID-no-GUID.patch
@@ -0,0 +1,15 @@
+Index: kcheckpass/CMakeLists.txt
+===================================================================
+--- kcheckpass/CMakeLists.txt  (revision 1112521)
++++ kcheckpass/CMakeLists.txt  (working copy)
+@@ -23,10 +23,6 @@
+ macro_add_compile_flags(kcheckpass -U_REENTRANT)
+ target_link_libraries(kcheckpass ${KDE4_KDEFAKES_LIBS} ${UNIXAUTH_LIBRARIES} 
${SOCKET_LIBRARIES})
+ install(TARGETS kcheckpass DESTINATION ${LIBEXEC_INSTALL_DIR})
+-install(CODE "
+-    set(KCP_PATH \"\$ENV{DESTDIR}${LIBEXEC_INSTALL_DIR}/kcheckpass\")
+-    EXECUTE_PROCESS(COMMAND sh -c \"chown root '\${KCP_PATH}' && chmod +s 
'\${KCP_PATH}'\")
+-")
+ 
+ install_pam_service(kcheckpass)
+ 

diff --git a/kde-plasma/kcheckpass/kcheckpass-4.11.22-r1.ebuild 
b/kde-plasma/kcheckpass/kcheckpass-4.11.22-r1.ebuild
new file mode 100644
index 0000000..3fb3a62
--- /dev/null
+++ b/kde-plasma/kcheckpass/kcheckpass-4.11.22-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+KMNAME="kde-workspace"
+inherit kde4-meta
+
+DESCRIPTION="A simple password checker, used by any software in need of user 
authentication"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug pam"
+
+DEPEND="
+       pam? ( virtual/pam )
+"
+RDEPEND="${DEPEND}
+       pam? ( || (
+               kde-plasma/kdebase-pam
+               kde-plasma/kscreenlocker:5
+       ) )
+"
+
+src_prepare() {
+       kde4-meta_src_prepare
+
+       use pam && epatch "${FILESDIR}/${PN}-4.4.2-no-SUID-no-GUID.patch"
+}
+
+src_configure() {
+       local mycmakeargs=(
+               $(cmake-utils_use_with pam)
+       )
+
+       kde4-meta_src_configure
+}

diff --git a/kde-plasma/kcheckpass/metadata.xml 
b/kde-plasma/kcheckpass/metadata.xml
new file mode 100644
index 0000000..7a38bb9
--- /dev/null
+++ b/kde-plasma/kcheckpass/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+</pkgmetadata>

diff --git a/kde-plasma/kcminit/kcminit-4.11.22.ebuild 
b/kde-plasma/kcminit/kcminit-4.11.22.ebuild
new file mode 100644
index 0000000..ef36b9a
--- /dev/null
+++ b/kde-plasma/kcminit/kcminit-4.11.22.ebuild
@@ -0,0 +1,17 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+KMNAME="kde-workspace"
+inherit kde4-meta
+
+DESCRIPTION="Runs startups initialization for KDE Plasma Control Modules"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug"
+
+DEPEND="
+       x11-libs/libX11
+"
+RDEPEND="${DEPEND}"

diff --git a/kde-plasma/kcminit/metadata.xml b/kde-plasma/kcminit/metadata.xml
new file mode 100644
index 0000000..7a38bb9
--- /dev/null
+++ b/kde-plasma/kcminit/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+</pkgmetadata>

diff --git 
a/kde-plasma/kde-gtk-config/files/kde-gtk-config-2.2.1-kdelibs-4.14.11.patch 
b/kde-plasma/kde-gtk-config/files/kde-gtk-config-2.2.1-kdelibs-4.14.11.patch
new file mode 100644
index 0000000..86c8b4c
--- /dev/null
+++ b/kde-plasma/kde-gtk-config/files/kde-gtk-config-2.2.1-kdelibs-4.14.11.patch
@@ -0,0 +1,79 @@
+From 386f6af25a4f5276765a121f98dd00d0bf6a743d Mon Sep 17 00:00:00 2001
+From: David Faure <fa...@kde.org>
+Date: Sun, 26 Jul 2015 17:04:43 +0200
+Subject: [PATCH] set proper cmake min req, matching kdelibs4, before project;
+ fix build accordingly
+
+---
+ CMakeLists.txt             | 2 +-
+ gtk3proxies/CMakeLists.txt | 2 +-
+ gtkproxies/CMakeLists.txt  | 2 +-
+ 3 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 0ef2243..9d77fcd 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,5 +1,5 @@
++cmake_minimum_required(VERSION 2.8.9)
+ project(kdegtkconfig)
+-cmake_minimum_required(VERSION 2.6)
+ set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)
+ 
+ find_package(KDE4 REQUIRED)
+diff --git a/gtk3proxies/CMakeLists.txt b/gtk3proxies/CMakeLists.txt
+index 856a3f6..d43597e 100644
+--- a/gtk3proxies/CMakeLists.txt
++++ b/gtk3proxies/CMakeLists.txt
+@@ -2,7 +2,7 @@ find_package(GTK3 REQUIRED)
+ 
+ include_directories(${GTK3_INCLUDE_DIRS})
+ 
+-add_definitions("-DDATA_DIR=\\\"${DATA_INSTALL_DIR}/kcm-gtk-module/\\\"")
++add_definitions(-DDATA_DIR="\\\"${DATA_INSTALL_DIR}/kcm-gtk-module/\\\"")
+ 
+ add_executable(gtk3_preview preview3.c)
+ target_link_libraries(gtk3_preview ${GTK3_LIBRARY} ${GOBJECT2_LIBRARY} 
${GLIB2_LIBRARY})
+diff --git a/gtkproxies/CMakeLists.txt b/gtkproxies/CMakeLists.txt
+index 9821cbf..18ee2d5 100644
+--- a/gtkproxies/CMakeLists.txt
++++ b/gtkproxies/CMakeLists.txt
+@@ -6,7 +6,7 @@ add_executable(reload_gtk_apps reload.c)
+ target_link_libraries(reload_gtk_apps ${GTK2_LIBRARIES})
+ install(TARGETS reload_gtk_apps RUNTIME DESTINATION 
"${KDE4_LIBEXEC_INSTALL_DIR}")
+ 
+-add_definitions("-DDATA_DIR=\\\"${DATA_INSTALL_DIR}/kcm-gtk-module/\\\"")
++add_definitions(-DDATA_DIR="\\\"${DATA_INSTALL_DIR}/kcm-gtk-module/\\\"")
+ 
+ add_executable(gtk_preview preview.c)
+ target_link_libraries(gtk_preview ${GTK2_LIBRARIES} ${GTK2_GIOMM_LIBRARY})
+-- 
+2.4.6
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -47,6 +47,4 @@
+ add_subdirectory(gtkproxies)
+ add_subdirectory(gtk3proxies)
+ add_subdirectory(icons)
+-find_package(Msgfmt REQUIRED)
+-find_package(Gettext REQUIRED)
+ add_subdirectory( po )
+
+--- a/po/CMakeLists.txt
++++ b/po/CMakeLists.txt
+@@ -0,0 +1,14 @@
++# The pofiles macro creates in some versions same name targets
++# which since cmake 2.8 leads to target clashes.
++# Hence force the old policy for all po directories.
++# http://public.kitware.com/Bug/view.php?id=12952
++cmake_policy(SET CMP0002 OLD)
++
++find_package(Gettext REQUIRED)
++if (NOT GETTEXT_MSGMERGE_EXECUTABLE)
++MESSAGE(FATAL_ERROR "Please install msgmerge binary")
++endif (NOT GETTEXT_MSGMERGE_EXECUTABLE)
++if (NOT GETTEXT_MSGFMT_EXECUTABLE)
++MESSAGE(FATAL_ERROR "Please install msgmerge binary")
++endif (NOT GETTEXT_MSGFMT_EXECUTABLE)
++

diff --git a/kde-plasma/kde-gtk-config/kde-gtk-config-2.2.1.ebuild 
b/kde-plasma/kde-gtk-config/kde-gtk-config-2.2.1.ebuild
new file mode 100644
index 0000000..f3450f1
--- /dev/null
+++ b/kde-plasma/kde-gtk-config/kde-gtk-config-2.2.1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+KDE_LINGUAS="bs ca ca@valencia cs da de el es et eu fi fr ga gl hu id it ja kk
+km lt mr nb nds nl pl pt pt_BR ro ru sk sl sv uk zh_CN zh_TW"
+inherit kde4-base
+
+DESCRIPTION="KDE Plasma systemsettings kcm to set GTK application look&feel"
+HOMEPAGE="https://projects.kde.org/kde-gtk-config";
+SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz"
+
+LICENSE="GPL-3"
+KEYWORDS="~amd64 ~arm ~x86 ~x86-fbsd"
+SLOT="4"
+IUSE="debug"
+
+CDEPEND="
+       dev-libs/glib:2
+       x11-libs/gtk+:2
+       x11-libs/gtk+:3
+"
+DEPEND="
+       ${CDEPEND}
+       dev-util/automoc
+"
+RDEPEND="
+       ${CDEPEND}
+       !kde-misc/kcm_gtk
+       $(add_kdeapps_dep kcmshell)
+"
+
+PATCHES=( "${FILESDIR}/${P}-kdelibs-4.14.11.patch" )
+
+pkg_postinst() {
+       kde4-base_pkg_postinst
+       einfo
+       elog "If you notice missing icons in your GTK applications, you may 
have to install"
+       elog "the corresponding themes for GTK. A good guess would be 
x11-themes/oxygen-gtk"
+       elog "for example."
+       einfo
+}

diff --git a/kde-plasma/kde-gtk-config/metadata.xml 
b/kde-plasma/kde-gtk-config/metadata.xml
new file mode 100644
index 0000000..7a38bb9
--- /dev/null
+++ b/kde-plasma/kde-gtk-config/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+</pkgmetadata>

diff --git a/kde-plasma/kdebase-cursors/kdebase-cursors-4.11.22.ebuild 
b/kde-plasma/kdebase-cursors/kdebase-cursors-4.11.22.ebuild
new file mode 100644
index 0000000..0e52bb7
--- /dev/null
+++ b/kde-plasma/kdebase-cursors/kdebase-cursors-4.11.22.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+KMNAME="kde-workspace"
+KMMODULE="cursors"
+inherit kde4-meta
+
+DESCRIPTION="Oxygen cursors for KDE Plasma"
+IUSE=""
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"

diff --git a/kde-plasma/kdebase-cursors/metadata.xml 
b/kde-plasma/kdebase-cursors/metadata.xml
new file mode 100644
index 0000000..7a38bb9
--- /dev/null
+++ b/kde-plasma/kdebase-cursors/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+</pkgmetadata>

diff --git a/kde-plasma/kdebase-pam/files/kde-np.pam-10 
b/kde-plasma/kdebase-pam/files/kde-np.pam-10
new file mode 100644
index 0000000..f5499e6
--- /dev/null
+++ b/kde-plasma/kdebase-pam/files/kde-np.pam-10
@@ -0,0 +1,10 @@
+#%PAM-1.0
+
+auth       required     pam_nologin.so
+auth      required     pam_permit.so
+
+account    include      system-local-login
+
+password   include      system-local-login
+
+session    include      system-local-login

diff --git a/kde-plasma/kdebase-pam/files/kde.pam-10 
b/kde-plasma/kdebase-pam/files/kde.pam-10
new file mode 100644
index 0000000..d7b2b64
--- /dev/null
+++ b/kde-plasma/kdebase-pam/files/kde.pam-10
@@ -0,0 +1,14 @@
+#%PAM-1.0
+
+auth       required     pam_nologin.so
+
+auth       include      system-local-login
+
+account    include      system-local-login
+
+password   include      system-local-login
+
+session    include      system-local-login
+
+-auth      optional     pam_kwallet.so kdehome=.kde4
+-session   optional     pam_kwallet.so

diff --git a/kde-plasma/kdebase-pam/kdebase-pam-10.ebuild 
b/kde-plasma/kdebase-pam/kdebase-pam-10.ebuild
new file mode 100644
index 0000000..7b6735f
--- /dev/null
+++ b/kde-plasma/kdebase-pam/kdebase-pam-10.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit pam
+
+DESCRIPTION="pam.d files used by several KDE components"
+HOMEPAGE="https://www.kde.org";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND="virtual/pam"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}
+
+src_install() {
+       newpamd "${FILESDIR}/kde.pam-${PV}" kde
+       newpamd "${FILESDIR}/kde-np.pam-${PV}" kde-np
+}

diff --git a/kde-plasma/kdebase-pam/metadata.xml 
b/kde-plasma/kdebase-pam/metadata.xml
new file mode 100644
index 0000000..7a38bb9
--- /dev/null
+++ b/kde-plasma/kdebase-pam/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+</pkgmetadata>

diff --git a/kde-plasma/kdebase-startkde/files/KDE-4 
b/kde-plasma/kdebase-startkde/files/KDE-4
new file mode 100644
index 0000000..86a49d8
--- /dev/null
+++ b/kde-plasma/kdebase-startkde/files/KDE-4
@@ -0,0 +1,97 @@
+#!/bin/sh
+# $XConsortium: Xsession /main/10 1995/12/18 18:21:28 gildea $
+
+# source of this file: x11-apps/xinit-1.3.0-r2
+
+case $# in
+1)
+       case $1 in
+       failsafe)
+               exec xterm -geometry 80x24-0-0
+               ;;
+       esac
+esac
+
+# redirect errors to a file in user's home directory if we can
+for errfile in "$HOME/.xsession-errors" "${TMPDIR-/tmp}/xses-$USER" 
"/tmp/xses-$USER"
+do
+       if ( cp /dev/null "$errfile" 2> /dev/null )
+       then
+               chmod 600 "$errfile"
+               exec > "$errfile" 2>&1
+               break
+       fi
+done
+
+# clean up after xbanner
+if which freetemp 2> /dev/null ; then
+       freetemp
+fi
+
+userresources=$HOME/.Xresources
+usermodmap=$HOME/.Xmodmap
+userxkbmap=$HOME/.Xkbmap
+
+sysresources=/etc/X11/Xresources
+sysmodmap=/etc/X11/Xmodmap
+sysxkbmap=/etc/X11/Xkbmap
+
+rh6sysresources=/etc/X11/xinit/Xresources
+rh6sysmodmap=/etc/X11/xinit/Xmodmap
+
+
+# merge in defaults
+if [ -f "$rh6sysresources" ]; then
+    xrdb -merge "$rh6sysresources"
+fi
+
+if [ -f "$sysresources" ]; then
+    xrdb -merge "$sysresources"
+fi
+
+if [ -f "$userresources" ]; then
+    xrdb -merge "$userresources"
+fi
+
+# merge in keymaps
+if [ -f "$sysxkbmap" ]; then
+    setxkbmap `cat "$sysxkbmap"`
+    XKB_IN_USE=yes
+fi
+
+if [ -f "$userxkbmap" ]; then
+    setxkbmap `cat "$userxkbmap"`
+    XKB_IN_USE=yes
+fi
+
+#
+# Eeek, this seems like too much magic here
+#
+if [ -z "$XKB_IN_USE" -a ! -L /etc/X11/X ]; then
+    if grep '^exec.*/Xsun' /etc/X11/X > /dev/null 2>&1 && [ -f 
/etc/X11/XF86Config ]; then
+       xkbsymbols=`sed -n -e 's/^[     ]*XkbSymbols[   ]*"\(.*\)".*$/\1/p' 
/etc/X11/XF86Config`
+       if [ -n "$xkbsymbols" ]; then
+           setxkbmap -symbols "$xkbsymbols"
+           XKB_IN_USE=yes
+       fi
+    fi
+fi
+
+# xkb and xmodmap don't play nice together
+if [ -z "$XKB_IN_USE" ]; then
+    if [ -f "$rh6sysmodmap" ]; then
+       xmodmap "$rh6sysmodmap"
+    fi
+
+    if [ -f "$sysmodmap" ]; then
+       xmodmap "$sysmodmap"
+    fi
+
+    if [ -f "$usermodmap" ]; then
+       xmodmap "$usermodmap"
+    fi
+fi
+
+unset XKB_IN_USE
+
+exec "@GENTOO_PORTAGE_EPREFIX@/usr/bin/startkde"

diff --git a/kde-plasma/kdebase-startkde/files/agent-shutdown.sh 
b/kde-plasma/kdebase-startkde/files/agent-shutdown.sh
new file mode 100644
index 0000000..07cf747
--- /dev/null
+++ b/kde-plasma/kdebase-startkde/files/agent-shutdown.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+#
+# This file is executed at kde shutdown.
+# Uncomment the following lines to kill the agents
+# that were started at session startup.
+
+#if [ -n "${GPG_AGENT_INFO}" ]; then
+#  kill $(echo ${GPG_AGENT_INFO} | cut -d':' -f 2) >/dev/null 2>&1
+#fi
+
+#if [ -n "${SSH_AGENT_PID}" ]; then
+#  eval "$(ssh-agent -s -k)"
+#fi

diff --git a/kde-plasma/kdebase-startkde/files/agent-startup.sh 
b/kde-plasma/kdebase-startkde/files/agent-startup.sh
new file mode 100644
index 0000000..4b99f6e
--- /dev/null
+++ b/kde-plasma/kdebase-startkde/files/agent-startup.sh
@@ -0,0 +1,29 @@
+# Agents startup file
+#
+# This file is sourced at kde startup, so that
+# the environment variables set here are available
+# throughout the session.
+
+# Uncomment the following lines to start gpg-agent
+# and/or ssh-agent at kde startup.
+# If you do so, do not forget to uncomment the respective
+# lines in KDEDIR/shutdown/agent-shutdown.sh to
+# properly kill the agents when the session ends.
+
+#if [ -x /usr/bin/gpg-agent ]; then
+#  eval "$(/usr/bin/gpg-agent --daemon)"
+#fi 
+
+#if [ -x /usr/bin/ssh-agent ]; then
+#  eval "$(/usr/bin/ssh-agent -s)"
+#fi
+
+# Uncomment the following lines to start rxvt-unicode which has the ability to
+# run multiple terminals in one single process, thus starting up faster and 
+# saving resources.
+# The --opendisplay ensures that the daemon quits when the X server terminates,
+# therefore we don't need matching lines in agent-shutdown.sh.
+
+#if [ -x /usr/bin/urxvtd ]; then
+#      /usr/bin/urxvtd --opendisplay --fork --quiet
+#fi

diff --git a/kde-plasma/kdebase-startkde/files/gentoo-startkde4-4.patch 
b/kde-plasma/kdebase-startkde/files/gentoo-startkde4-4.patch
new file mode 100644
index 0000000..4d51775
--- /dev/null
+++ b/kde-plasma/kdebase-startkde/files/gentoo-startkde4-4.patch
@@ -0,0 +1,26 @@
+--- startkde.cmake.old 2011-03-24 13:07:04.919889148 +0100
++++ startkde.cmake     2011-03-24 13:14:42.033174445 +0100
+@@ -187,6 +187,11 @@
+   done
+ done
+ 
++# Gentoo part for FHS installs
++for file in "@GENTOO_PORTAGE_EPREFIX@/etc/kde/startup/"*.sh; do
++  test -r "${file}" && . "${file}"
++done
++
+ # Set the path for Qt plugins provided by KDE
+ if test -n "$QT_PLUGIN_PATH"; then
+   QT_PLUGIN_PATH="$QT_PLUGIN_PATH:`kde4-config --path qtplugins`"
+@@ -400,6 +405,11 @@
+   done
+ done
+ 
++# Gentoo part for FHS installs
++for file in "@GENTOO_PORTAGE_EPREFIX@/etc/kde/shutdown/"*.sh; do
++  test -r "${file}" && . "${file}"
++done
++
+ unset KDE_FULL_SESSION
+ xprop -root -remove KDE_FULL_SESSION
+ unset KDE_SESSION_VERSION

diff --git a/kde-plasma/kdebase-startkde/files/kdebase-startkde-kscreen.patch 
b/kde-plasma/kdebase-startkde/files/kdebase-startkde-kscreen.patch
new file mode 100644
index 0000000..65644af
--- /dev/null
+++ b/kde-plasma/kdebase-startkde/files/kdebase-startkde-kscreen.patch
@@ -0,0 +1,20 @@
+Only try to run krandrstartup if it exists wrt bug #524266.
+
+After f7f5d84c85b6c7f946b94808849648b4cb6ea667, krandrstartup is no longer
+available if kde-base/systemsettings is built with USE="kscreen". Otherwise,
+KDE will fail to start
+
+Source: 
http://pkgs.fedoraproject.org/cgit/kde-workspace.git/tree/startkde.cmake
+diff --git a/startkde.cmake b/startkde.cmake
+index afc2cfb..4220e64 100644
+--- a/startkde.cmake
++++ b/startkde.cmake
+@@ -105,7 +105,7 @@ if test -n "$kcminputrc_mouse_cursortheme" -o -n 
"$kcminputrc_mouse_cursorsize"
+     fi
+ fi
+ 
+-. krandrstartup
++KRANDRSTARTUP=`which krandrstartup 2>/dev/null` && . $KRANDRSTARTUP
+ 
+ if test "$kcmfonts_general_forcefontdpi" -ne 0; then
+     xrdb -quiet -merge -nocpp <<EOF

diff --git 
a/kde-plasma/kdebase-startkde/files/kdebase-startkde-kwalletd-pam.patch 
b/kde-plasma/kdebase-startkde/files/kdebase-startkde-kwalletd-pam.patch
new file mode 100644
index 0000000..c70a07f
--- /dev/null
+++ b/kde-plasma/kdebase-startkde/files/kdebase-startkde-kwalletd-pam.patch
@@ -0,0 +1,25 @@
+From: Àlex Fiestas <afies...@kde.org>
+Date: Mon, 28 Apr 2014 16:05:07 +0000
+Subject: [startkde] Send env to kwalletd in case of pam-kwallet
+X-Git-Tag: v4.96.0
+X-Git-Url: 
http://quickgit.kde.org/?p=plasma-workspace.git&a=commitdiff&h=9581a52a5d734435d0cef759e20d1af2473dd15e
+---
+[startkde] Send env to kwalletd in case of pam-kwallet
+---
+
+
+--- a/startkde/startkde.cmake
++++ b/startkde/startkde.cmake
+@@ -329,6 +329,11 @@
+ 
+ XDG_CURRENT_DESKTOP=KDE
+ export XDG_CURRENT_DESKTOP
++
++# At this point all the environment is ready, let's send it to kwalletd if 
running
++if test -n "PAM_KWALLET_LOGIN" ; then
++    env | socat STDIN UNIX-CONNECT:$PAM_KWALLET_LOGIN
++fi
+ 
+ # We set LD_BIND_NOW to increase the efficiency of kdeinit.
+ # kdeinit unsets this variable before loading applications.
+

diff --git a/kde-plasma/kdebase-startkde/kdebase-startkde-4.11.22-r2.ebuild 
b/kde-plasma/kdebase-startkde/kdebase-startkde-4.11.22-r2.ebuild
new file mode 100644
index 0000000..a4ea445
--- /dev/null
+++ b/kde-plasma/kdebase-startkde/kdebase-startkde-4.11.22-r2.ebuild
@@ -0,0 +1,152 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+KMNAME="kde-workspace"
+KMNOMODULE="true"
+inherit kde4-meta prefix
+
+DESCRIPTION="Script which starts a complete Plasma session, and associated 
scripts"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+IUSE="crash-reporter +handbook minimal +wallpapers"
+
+# The KDE apps called from the startkde script.
+# These provide the most minimal KDE desktop.
+RDEPEND="
+       $(add_kdeapps_dep attica)
+       $(add_kdeapps_dep kcmshell)
+       $(add_kdeapps_dep kcontrol)
+       $(add_kdeapps_dep kdebase-data)
+       $(add_kdeapps_dep kdebase-desktoptheme)
+       $(add_kdeapps_dep kdebase-kioslaves)
+       $(add_kdeapps_dep kdebase-menu)
+       $(add_kdeapps_dep kdebase-menu-icons)
+       $(add_kdeapps_dep kdebugdialog)
+       $(add_kdeapps_dep kdesu)
+       $(add_kdeapps_dep kdontchangethehostname)
+       $(add_kdeapps_dep keditfiletype)
+       $(add_kdeapps_dep kfile)
+       $(add_kdeapps_dep kfmclient)
+       $(add_kdeapps_dep kglobalaccel)
+       $(add_kdeapps_dep kiconfinder)
+       $(add_kdeapps_dep kimgio)
+       $(add_kdeapps_dep kioclient)
+       $(add_kdeapps_dep kmimetypefinder)
+       $(add_kdeapps_dep knetattach)
+       $(add_kdeapps_dep knewstuff)
+       $(add_kdeapps_dep knotify)
+       $(add_kdeapps_dep kpasswdserver)
+       $(add_kdeapps_dep kquitapp)
+       $(add_kdeapps_dep kreadconfig)
+       $(add_kdeapps_dep kstart)
+       $(add_kdeapps_dep ktimezoned)
+       $(add_kdeapps_dep ktraderclient)
+       $(add_kdeapps_dep kuiserver)
+       $(add_kdeapps_dep kurifilter-plugins)
+       $(add_kdeapps_dep kwalletd)
+       $(add_kdeapps_dep kwalletmanager)
+       $(add_kdeapps_dep phonon-kde)
+       $(add_kdeapps_dep plasma-apps)
+       $(add_kdeapps_dep plasma-runtime)
+       $(add_kdeapps_dep renamedlg-plugins)
+       $(add_kdeapps_dep solid-runtime)
+       kde-plasma/kcminit:4
+       kde-plasma/krunner:4
+       kde-plasma/ksmserver:4
+       kde-plasma/ksplash:4
+       kde-plasma/kstartupconfig:4
+       kde-plasma/kwin:4
+       kde-plasma/plasma-workspace:4
+       kde-plasma/systemsettings:4
+       x11-apps/mkfontdir
+       x11-apps/xmessage
+       x11-apps/xprop
+       x11-apps/xrandr
+       x11-apps/xrdb
+       x11-apps/xsetroot
+       x11-apps/xset
+       crash-reporter? ( $(add_kdeapps_dep drkonqi ) )
+       handbook? ( kde-apps/khelpcenter:* )
+       !minimal? (
+               $(add_kdeapps_dep kdepasswd)
+               kde-plasma/freespacenotifier:4
+               kde-plasma/kcheckpass:4
+               kde-plasma/kdebase-cursors:4
+               kde-plasma/kephal:4
+               kde-plasma/khotkeys:4
+               kde-plasma/kinfocenter:4
+               kde-plasma/klipper:4
+               kde-plasma/kmenuedit:4
+               kde-plasma/kstyles:4
+               kde-plasma/ksysguard:4
+               kde-plasma/ksystraycmd:4
+               kde-plasma/kwrited:4
+               kde-plasma/libkworkspace:4
+               kde-plasma/liboxygenstyle:4
+               kde-plasma/libplasmaclock:4
+               kde-plasma/libplasmagenericshell:4
+               kde-plasma/libtaskmanager:4
+               kde-plasma/powerdevil:4
+               kde-plasma/qguiplatformplugin_kde:4
+               kde-plasma/solid-actions-kcm:4
+       )
+       wallpapers? ( kde-plasma/plasma-workspace-wallpapers:5 )
+"
+
+KMEXTRACTONLY="
+       ConfigureChecks.cmake
+       kdm/
+       startkde.cmake
+"
+
+PATCHES=(
+       "${FILESDIR}/gentoo-startkde4-4.patch"
+       "${FILESDIR}/${PN}-kscreen.patch"
+       "${FILESDIR}/${PN}-kwalletd-pam.patch"
+)
+
+src_prepare() {
+       kde4-meta_src_prepare
+
+       cp "${FILESDIR}/KDE-4" "${T}"
+
+       # fix ${EPREFIX}
+       eprefixify startkde.cmake "${T}/KDE-4"
+}
+
+src_install() {
+       kde4-meta_src_install
+
+       # startup and shutdown scripts
+       insinto /etc/kde/startup
+       doins "${FILESDIR}/agent-startup.sh"
+
+       insinto /etc/kde/shutdown
+       doins "${FILESDIR}/agent-shutdown.sh"
+
+       # x11 session script
+       exeinto /etc/X11/Sessions
+       doexe "${T}/KDE-4"
+
+       # freedesktop compliant session script
+       sed -e "s:\${BIN_INSTALL_DIR}:${EPREFIX}/usr/bin:g" \
+               "${S}/kdm/kfrontend/sessions/kde-plasma.desktop.cmake" > 
"${T}/KDE-4.desktop"
+       insinto /usr/share/xsessions
+       doins "${T}/KDE-4.desktop"
+}
+
+pkg_postinst () {
+       kde4-meta_pkg_postinst
+
+       echo
+       elog "To enable gpg-agent and/or ssh-agent in KDE sessions,"
+       elog "edit ${EPREFIX}/etc/kde/startup/agent-startup.sh and"
+       elog "${EPREFIX}/etc/kde/shutdown/agent-shutdown.sh"
+       echo
+       elog "The name of the session script has changed."
+       elog "If you currently have XSESSION=\"kde-$(get_kde_version)\" in your"
+       elog "configuration files, you will need to change it to"
+       elog "XSESSION=\"KDE-4\""
+}

diff --git a/kde-plasma/kdebase-startkde/metadata.xml 
b/kde-plasma/kdebase-startkde/metadata.xml
new file mode 100644
index 0000000..77a304a
--- /dev/null
+++ b/kde-plasma/kdebase-startkde/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+       <use>
+               <flag name="crash-reporter">Builds a gui tool to submit crash 
information to the upstream backtracker</flag>
+               <flag name="wallpapers">Install the KDE Plasma wallpapers</flag>
+       </use>
+</pkgmetadata>

diff --git a/kde-plasma/kdeplasma-addons/kdeplasma-addons-4.14.3-r1.ebuild 
b/kde-plasma/kdeplasma-addons/kdeplasma-addons-4.14.3-r1.ebuild
new file mode 100644
index 0000000..530ffd0
--- /dev/null
+++ b/kde-plasma/kdeplasma-addons/kdeplasma-addons-4.14.3-r1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+WEBKIT_REQUIRED="always"
+inherit flag-o-matic kde4-base
+
+DESCRIPTION="Extra Plasma applets and engines"
+LICENSE="GPL-2 LGPL-2"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+IUSE="attica debug desktopglobe eigen exif fcitx ibus json oauth +pim
+qalculate qwt scim"
+
+RESTRICT=test
+# tests hang
+
+# krunner is only needed to generate dbus interface for lancelot
+COMMON_DEPEND="
+       app-crypt/qca:2[qt4(+)]
+       kde-plasma/krunner:4
+       kde-plasma/plasma-workspace:4
+       x11-misc/shared-mime-info
+       attica? ( dev-libs/libattica )
+       desktopglobe? ( $(add_kdeapps_dep marble) )
+       exif? ( $(add_kdeapps_dep libkexiv2) )
+       fcitx? ( app-i18n/fcitx[dbus(+)] )
+       ibus? ( app-i18n/ibus )
+       json? ( dev-libs/qjson )
+       oauth? ( dev-libs/qoauth:0 )
+       pim? ( $(add_kdeapps_dep kdepimlibs) )
+       qalculate? ( sci-libs/libqalculate )
+       qwt? ( x11-libs/qwt:5 )
+       scim? ( app-i18n/scim )
+"
+DEPEND="${COMMON_DEPEND}
+       eigen? ( dev-cpp/eigen:2 )
+"
+RDEPEND="${COMMON_DEPEND}
+       app-crypt/qca:2[ssl]
+"
+
+src_configure() {
+       local mycmakeargs=(
+               
-DDBUS_INTERFACES_INSTALL_DIR="${EPREFIX}/usr/share/dbus-1/interfaces/"
+               -DWITH_Nepomuk=OFF
+               $(cmake-utils_use_with attica LibAttica)
+               $(cmake-utils_use_with desktopglobe Marble)
+               $(cmake-utils_use_find_package eigen Eigen2)
+               $(cmake-utils_use_with exif Kexiv2)
+               $(cmake-utils_use_build ibus)
+               $(cmake-utils_use_with json QJSON)
+               $(cmake-utils_use_with oauth QtOAuth)
+               $(cmake-utils_use_with pim KdepimLibs)
+               $(cmake-utils_use_with qalculate)
+               $(cmake-utils_use_with qwt)
+               $(cmake-utils_use_build scim)
+       )
+
+       kde4-base_src_configure
+}

diff --git a/kde-plasma/kdeplasma-addons/metadata.xml 
b/kde-plasma/kdeplasma-addons/metadata.xml
new file mode 100644
index 0000000..6fff8e0
--- /dev/null
+++ b/kde-plasma/kdeplasma-addons/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+       <use>
+               <flag name="attica">Enable support for 
<pkg>dev-libs/libattica</pkg></flag>
+               <flag name="ibus">Use ibus input method via 
<pkg>app-i18n/ibus</pkg></flag>
+               <flag name="desktopglobe">Enable Desktop Globe wallpaper using 
<pkg>kde-apps/marble</pkg></flag>
+               <flag name="eigen">Build Mandelbrot wallpaper plugin using 
<pkg>dev-cpp/eigen</pkg> using SLOT 2</flag>
+               <flag name="fcitx">Use fcitx input method via 
<pkg>app-i18n/fcitx</pkg></flag>
+               <flag name="json">Enable JSON support via 
<pkg>dev-libs/qjson</pkg></flag>
+               <flag name="oauth">Enable OAuth support via 
<pkg>dev-libs/qoauth</pkg></flag>
+               <flag name="pim">KDE PIM integration via 
<pkg>kde-apps/kdepimlibs</pkg></flag>
+               <flag name="qalculate">Enable Qalculate runner using 
<pkg>sci-libs/libqalculate</pkg></flag>
+               <flag name="qwt">Enable applets that use 
<pkg>x11-libs/qwt</pkg> SLOT 5</flag>
+               <flag name="scim">Enable applets that use 
<pkg>app-i18n/scim</pkg></flag>
+       </use>
+</pkgmetadata>

diff --git a/kde-plasma/kdm/files/kdm-4-gentoo-xinitrc.d.patch 
b/kde-plasma/kdm/files/kdm-4-gentoo-xinitrc.d.patch
new file mode 100644
index 0000000..538363a
--- /dev/null
+++ b/kde-plasma/kdm/files/kdm-4-gentoo-xinitrc.d.patch
@@ -0,0 +1,19 @@
+diff -Nurp kdm-4.3.1.orig/kdm/kfrontend/genkdmconf.c 
kdm-4.3.1/kdm/kfrontend/genkdmconf.c
+--- kdm-4.3.1.orig/kdm/kfrontend/genkdmconf.c  2009-09-20 07:57:19.746730568 
+0200
++++ kdm-4.3.1/kdm/kfrontend/genkdmconf.c       2009-09-20 08:01:17.767496412 
+0200
+@@ -687,6 +687,15 @@ static const char def_session2[] =
+ "[ -f /etc/xprofile ] && . /etc/xprofile\n"
+ "[ -f $HOME/.xprofile ] && . $HOME/.xprofile\n"
+ "\n"
++"# run all system xinitrc shell scripts.\n"
++"if [ -d /etc/X11/xinit/xinitrc.d ]; then\n"
++"    for i in /etc/X11/xinit/xinitrc.d/* ; do\n"
++"        if [ -x \"$i\" ]; then\n"
++"            . \"$i\"\n"
++"        fi\n"
++"    done\n"
++"fi\n"
++"\n"
+ "case $session in\n"
+ "  \"\")\n"
+ "    exec xmessage -center -buttons OK:0 -default OK \"Sorry, 
$DESKTOP_SESSION is no valid session.\"\n"

diff --git a/kde-plasma/kdm/files/kdm-logrotate 
b/kde-plasma/kdm/files/kdm-logrotate
new file mode 100644
index 0000000..4bce1a0
--- /dev/null
+++ b/kde-plasma/kdm/files/kdm-logrotate
@@ -0,0 +1,8 @@
+/var/log/kdm.log {
+    maxage 365
+    size=+1024k
+    notifempty
+    missingok
+    compress
+    copytruncate
+}

diff --git a/kde-plasma/kdm/files/kdm.service b/kde-plasma/kdm/files/kdm.service
new file mode 100644
index 0000000..412ffa3
--- /dev/null
+++ b/kde-plasma/kdm/files/kdm.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=KDM Display Manager
+Conflicts=getty@tty1.service
+After=systemd-user-sessions.service getty@tty1.service plymouth-quit.service
+
+[Service]
+ExecStart=/usr/bin/kdm -nodaemon
+Restart=always
+IgnoreSIGPIPE=no
+
+[Install]
+Alias=display-manager.service

diff --git a/kde-plasma/kdm/kdm-4.11.22.ebuild 
b/kde-plasma/kdm/kdm-4.11.22.ebuild
new file mode 100644
index 0000000..93e77d4
--- /dev/null
+++ b/kde-plasma/kdm/kdm-4.11.22.ebuild
@@ -0,0 +1,163 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+KDE_HANDBOOK="optional"
+KMNAME="kde-workspace"
+inherit systemd kde4-meta flag-o-matic user
+
+DESCRIPTION="Login manager by KDE, similar to xdm and gdm"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug +consolekit kerberos pam systemd"
+
+REQUIRED_USE="consolekit? ( !systemd ) systemd? ( !consolekit )"
+
+DEPEND="
+       kde-plasma/libkworkspace:4
+       media-libs/qimageblitz
+       x11-libs/libX11
+       x11-libs/libXau
+       x11-libs/libXdmcp
+       x11-libs/libXtst
+       consolekit? (
+               >=sys-apps/dbus-1.0.2
+               sys-auth/consolekit
+       )
+       kerberos? ( virtual/krb5 )
+       pam? (
+               kde-plasma/kcheckpass:4
+               virtual/pam
+       )
+       systemd? ( sys-apps/systemd )
+"
+RDEPEND="${DEPEND}
+       $(add_kdeapps_dep kdepasswd)
+       kde-plasma/libkgreeter:4
+       >=x11-apps/xinit-1.0.5-r2
+       x11-apps/xmessage
+"
+
+KMEXTRACTONLY="
+       libs/kdm/kgreeterplugin.h
+"
+
+PATCHES=(
+       "${FILESDIR}/${PN}-4-gentoo-xinitrc.d.patch"
+)
+
+pkg_setup() {
+       kde4-meta_pkg_setup
+
+       # Create kdm:kdm user
+       KDM_HOME=/var/lib/kdm
+       enewgroup kdm
+       enewuser kdm -1 -1 "${KDM_HOME}" kdm
+}
+
+src_configure() {
+       local mycmakeargs=(
+               $(cmake-utils_use kerberos KDE4_KRB5AUTH)
+               $(cmake-utils_use_with pam)
+               $(cmake-utils_use_with consolekit CkConnector)
+       )
+
+       kde4-meta_src_configure
+}
+
+src_install() {
+       export GENKDMCONF_FLAGS="--no-old --no-backup"
+
+       kde4-meta_src_install
+
+       # an equivalent file is already installed by kde-base/startkde, bug 
377151
+       rm "${ED}/usr/share/apps/kdm/sessions/kde-plasma.desktop" || die
+
+       # Customize the kdmrc configuration:
+       # - SessionDirs set to /usr/share/xsessions
+       # - increase server timeout to 30s
+       # - TerminateServer=true to workaround X server regen bug, bug 278473
+       # - DataDir set to /var/lib/kdm
+       # - FaceDir set to /var/lib/kdm/faces
+       sed -e 
"s|^.*SessionsDirs=.*$|#&\nSessionsDirs=${EPREFIX}/usr/share/apps/kdm/sessions,${EPREFIX}/usr/share/xsessions|"
 \
+               -e "/#ServerTimeout=/s/^.*$/ServerTimeout=30/" \
+               -e "/#TerminateServer=/s/^.*$/TerminateServer=true/" \
+               -e "s|^.*DataDir=.*$|#&\nDataDir=${EPREFIX}${KDM_HOME}|" \
+               -e "s|^.*FaceDir=.*$|#&\nFaceDir=${EPREFIX}${KDM_HOME}/faces|" \
+               -i "${ED}"/usr/share/config/kdm/kdmrc \
+               || die "Failed to set ServerTimeout and SessionsDirs correctly 
in kdmrc."
+
+       # Don't install empty dir
+       rmdir "${ED}"/usr/share/config/kdm/sessions
+
+       # Set up permissions to kdm work directory
+       keepdir "${KDM_HOME}"
+       fowners root:kdm "${KDM_HOME}"
+       fperms 1770 "${KDM_HOME}"
+
+       # install logrotate file
+       insinto /etc/logrotate.d
+       newins "${FILESDIR}"/kdm-logrotate kdm
+
+       systemd_dounit "${FILESDIR}"/kdm.service
+}
+
+pkg_postinst() {
+       kde4-meta_pkg_postinst
+
+       local file src dest dir old_dirs=(
+               /var/lib/kdm-live
+               /var/lib/kdm-4.6
+               /var/lib/kdm-4.5
+               /var/lib/kdm-4.4
+               /usr/share/apps/kdm
+               /usr/kde/4.4/share/apps/kdm
+               /usr/kde/4.3/share/apps/kdm
+               /usr/kde/4.2/share/apps/kdm
+       )
+
+       mkdir -p "${EROOT}${KDM_HOME}/faces"
+       # Set the default kdm face icon if it's not already set by the system 
admin
+       # because this is user-overrideable in that way, it's not in src_install
+       for file in faces/.default.face.icon:default1.png 
faces/root.face.icon:root1.png kdmsts: ; do
+               src=${file#*:}
+               dest=${file%:*}
+               if [[ ! -e ${EROOT}${KDM_HOME}/$dest ]]; then
+                       for dir in "${old_dirs[@]}"; do
+                               if [[ -e ${EROOT}${dir}/${dest} ]]; then
+                                       cp "${EROOT}${dir}/${dest}" 
"${EROOT}${KDM_HOME}/${dest}"
+                                       break 2
+                               fi
+                       done
+                       if [[ -n ${src} ]]; then
+                               cp 
"${EROOT}/usr/share/apps/kdm/pics/users/${src}" \
+                                       "${EROOT}${KDM_HOME}/${dest}"
+                       fi
+               fi
+       done
+       for dir in "${old_dirs[@]}"; do
+               if [[ ${dir} != /usr/* && -d ${EROOT}${dir} ]]; then
+                       echo
+                       elog "The directory ${EROOT%/}${dir} still exists from 
an older installation of KDE."
+                       elog "You may wish to copy relevant settings into 
${EROOT%/}${KDM_HOME}."
+                       echo
+                       elog "After doing so, you may delete the directory."
+                       echo
+               fi
+       done
+
+       # Make sure permissions are correct -- old installations may have
+       # gotten this wrong
+       use prefix || chown root:kdm "${EROOT}${KDM_HOME}"
+       chmod 1770 "${EROOT}${KDM_HOME}"
+
+       if use consolekit; then
+               echo
+               elog "You have compiled 'kdm' with consolekit support. If you 
want to use kdm,"
+               elog "make sure consolekit daemon is running and started at 
login time"
+               elog
+               elog "rc-update add consolekit default && 
/etc/init.d/consolekit start"
+               echo
+       fi
+}

diff --git a/kde-plasma/kdm/metadata.xml b/kde-plasma/kdm/metadata.xml
new file mode 100644
index 0000000..6d7b952
--- /dev/null
+++ b/kde-plasma/kdm/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+       <use>
+               <flag name="consolekit">Enables support for authorization using 
consolekit</flag>
+       </use>
+</pkgmetadata>

diff --git a/kde-plasma/kephal/kephal-4.11.22.ebuild 
b/kde-plasma/kephal/kephal-4.11.22.ebuild
new file mode 100644
index 0000000..875d71f
--- /dev/null
+++ b/kde-plasma/kephal/kephal-4.11.22.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+KMNAME="kde-workspace"
+KMMODULE="libs/kephal"
+inherit kde4-meta
+
+DESCRIPTION="Allows handling of multihead systems via the XRandR extension"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug"
+
+RDEPEND="
+       x11-libs/libX11
+       x11-libs/libXrandr
+"
+DEPEND="${RDEPEND}
+       x11-proto/randrproto
+"
+
+KMEXTRACTONLY+="
+       kephal/kephal/screens.h
+"

diff --git a/kde-plasma/kephal/metadata.xml b/kde-plasma/kephal/metadata.xml
new file mode 100644
index 0000000..7a38bb9
--- /dev/null
+++ b/kde-plasma/kephal/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+</pkgmetadata>

diff --git a/kde-plasma/khotkeys/khotkeys-4.11.22.ebuild 
b/kde-plasma/khotkeys/khotkeys-4.11.22.ebuild
new file mode 100644
index 0000000..1baa49c
--- /dev/null
+++ b/kde-plasma/khotkeys/khotkeys-4.11.22.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+KMNAME="kde-workspace"
+inherit kde4-meta
+
+DESCRIPTION="KDE Plasma workspace hotkey module"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug"
+
+DEPEND="
+       kde-plasma/libkworkspace:4
+       x11-libs/libX11
+       x11-libs/libXtst
+"
+RDEPEND="${DEPEND}"
+
+KMEXTRACTONLY="
+       libs/kworkspace/
+"

diff --git a/kde-plasma/khotkeys/metadata.xml b/kde-plasma/khotkeys/metadata.xml
new file mode 100644
index 0000000..7a38bb9
--- /dev/null
+++ b/kde-plasma/khotkeys/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+</pkgmetadata>

diff --git a/kde-plasma/kinfocenter/kinfocenter-4.11.22.ebuild 
b/kde-plasma/kinfocenter/kinfocenter-4.11.22.ebuild
new file mode 100644
index 0000000..422b2c5
--- /dev/null
+++ b/kde-plasma/kinfocenter/kinfocenter-4.11.22.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+KDE_HANDBOOK="optional"
+KMNAME="kde-workspace"
+OPENGL_REQUIRED="optional"
+inherit kde4-meta
+
+DESCRIPTION="A utility that provides information about a computer system"
+HOMEPAGE="https://www.kde.org/applications/system/kinfocenter/";
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug ieee1394"
+
+DEPEND="
+       sys-apps/pciutils
+       x11-libs/libX11
+       ieee1394? ( sys-libs/libraw1394 )
+       opengl? (
+               virtual/glu
+               virtual/opengl
+       )
+"
+RDEPEND="${DEPEND}
+       sys-apps/usbutils
+"
+
+src_configure() {
+       local mycmakeargs=(
+               $(cmake-utils_use_with ieee1394 RAW1394)
+               $(cmake-utils_use_with opengl OpenGL)
+       )
+
+       kde4-meta_src_configure
+}

diff --git a/kde-plasma/kinfocenter/metadata.xml 
b/kde-plasma/kinfocenter/metadata.xml
new file mode 100644
index 0000000..7a38bb9
--- /dev/null
+++ b/kde-plasma/kinfocenter/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+</pkgmetadata>

diff --git a/kde-plasma/klipper/klipper-4.11.22.ebuild 
b/kde-plasma/klipper/klipper-4.11.22.ebuild
new file mode 100644
index 0000000..b2a79fa
--- /dev/null
+++ b/kde-plasma/klipper/klipper-4.11.22.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+KDE_HANDBOOK="optional"
+KMNAME="kde-workspace"
+inherit kde4-meta
+
+DESCRIPTION="Applet for KDE Plasma and X clipboard management"
+HOMEPAGE+=" https://userbase.kde.org/Klipper";
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug prison"
+
+DEPEND="
+       kde-plasma/libkworkspace:4
+       kde-plasma/libtaskmanager:4
+       sys-libs/zlib
+       x11-libs/libX11
+       prison? ( kde-frameworks/prison:4 )
+"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+       local mycmakeargs=(
+               $(cmake-utils_use_with prison)
+       )
+
+       kde4-meta_src_configure
+}

diff --git a/kde-plasma/klipper/metadata.xml b/kde-plasma/klipper/metadata.xml
new file mode 100644
index 0000000..8f4cead
--- /dev/null
+++ b/kde-plasma/klipper/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+       <use>
+               <flag name="prison">Enable support for barcodes/QRcodes</flag>
+       </use>
+</pkgmetadata>

diff --git a/kde-plasma/kmenuedit/kmenuedit-4.11.22.ebuild 
b/kde-plasma/kmenuedit/kmenuedit-4.11.22.ebuild
new file mode 100644
index 0000000..1c52955
--- /dev/null
+++ b/kde-plasma/kmenuedit/kmenuedit-4.11.22.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+KDE_HANDBOOK="optional"
+KMNAME="kde-workspace"
+inherit kde4-meta
+
+DESCRIPTION="KDE Plasma menu editor"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug"
+
+RDEPEND="
+       kde-plasma/khotkeys:4
+"
+DEPEND=${RDEPEND}
+
+KMEXTRACTONLY="
+       libs/kworkspace/
+"
+
+src_configure() {
+       sed -i -e \
+               
"s:\${CMAKE_CURRENT_BINARY_DIR}/../khotkeys/app/org.kde.khotkeys.xml:${EPREFIX}/usr/share/dbus-1/interfaces/org.kde.khotkeys.xml:g"
 \
+               kmenuedit/CMakeLists.txt \
+               || die "sed failed"
+
+       kde4-meta_src_configure
+}

diff --git a/kde-plasma/kmenuedit/metadata.xml 
b/kde-plasma/kmenuedit/metadata.xml
new file mode 100644
index 0000000..7a38bb9
--- /dev/null
+++ b/kde-plasma/kmenuedit/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+</pkgmetadata>

diff --git a/kde-plasma/krunner/krunner-4.11.22.ebuild 
b/kde-plasma/krunner/krunner-4.11.22.ebuild
new file mode 100644
index 0000000..8aecc6a
--- /dev/null
+++ b/kde-plasma/krunner/krunner-4.11.22.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+KMNAME="kde-workspace"
+OPENGL_REQUIRED="optional"
+inherit kde4-meta
+
+DESCRIPTION="KDE Plasma Command Runner"
+HOMEPAGE+=" https://userbase.kde.org/Plasma/Krunner";
+IUSE="debug"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+
+DEPEND="
+       kde-plasma/kcheckpass:4
+       kde-plasma/kephal:4
+       kde-plasma/ksmserver:4
+       kde-plasma/ksysguard:4
+       kde-plasma/libkworkspace:4
+       kde-plasma/libplasmagenericshell:4
+       !aqua? (
+               x11-libs/libX11
+               x11-libs/libXcursor
+               x11-libs/libXext
+       )
+"
+RDEPEND="${DEPEND}"
+
+KMEXTRACTONLY="
+       libs/kdm/
+       libs/kephal/
+       libs/ksysguard/
+       libs/kworkspace/
+       libs/plasmagenericshell/
+       kcheckpass/
+       ksmserver/org.kde.KSMServerInterface.xml
+       ksysguard/
+       plasma/screensaver/shell/org.kde.plasma-overlay.App.xml
+"
+
+KMLOADLIBS="libkworkspace"
+
+src_configure() {
+       local mycmakeargs=(
+               $(cmake-utils_use_with opengl OpenGL)
+       )
+
+       kde4-meta_src_configure
+}

diff --git a/kde-plasma/krunner/metadata.xml b/kde-plasma/krunner/metadata.xml
new file mode 100644
index 0000000..7a38bb9
--- /dev/null
+++ b/kde-plasma/krunner/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+</pkgmetadata>

diff --git a/kde-plasma/kscreen/kscreen-1.0.71_p20150824.ebuild 
b/kde-plasma/kscreen/kscreen-1.0.71_p20150824.ebuild
new file mode 100644
index 0000000..f497d1e
--- /dev/null
+++ b/kde-plasma/kscreen/kscreen-1.0.71_p20150824.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+VIRTUALX_REQUIRED="test"
+DECLARATIVE_REQUIRED="always"
+KDE_LINGUAS="ast bg bs ca ca@valencia cs da de el en_GB es et fi fr ga gl hu it
+ja ko lt mr nb nds nl nn pa pl pt pt_BR ro ru sk sl sv tr ug uk zh_CN zh_TW"
+inherit kde4-base
+
+DESCRIPTION="Plasma screen management"
+HOMEPAGE="https://projects.kde.org/projects/extragear/base/kscreen";
+SRC_URI="http://dev.gentoo.org/~kensington/distfiles/${P}.tar.xz";
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="4"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="debug"
+
+RDEPEND="
+       >=dev-libs/qjson-0.8
+       >=kde-plasma/libkscreen-1.0.4:4
+"
+DEPEND="${RDEPEND}
+       sys-devel/gettext"
+
+DISPLAY_MESSAGE=false
+pkg_preinst() {
+       if ! has_version ${CATEGORY}/${PN} ; then
+               DISPLAY_MESSAGE=true
+       fi
+
+       kde4-base_pkg_preinst
+}
+
+pkg_postinst() {
+       if [[ "${DISPLAY_MESSAGE}" = true ]]; then
+               echo
+               elog "Disable the old screen management:"
+               elog "# qdbus org.kde.kded /kded org.kde.kded.unloadModule 
randrmonitor"
+               elog "# qdbus org.kde.kded /kded 
org.kde.kded.setModuleAutoloading randrmonitor false"
+               elog
+               elog "Enable the kded module for the kscreen based screen 
management:"
+               elog "# qdbus org.kde.kded /kded org.kde.kded.loadModule 
kscreen"
+               elog
+               elog "Now simply (un-)plugging displays should enable/disable 
them, while"
+               elog "the last state is remembered."
+               echo
+       fi
+
+       unset DISPLAY_MESSAGE
+
+       kde4-base_pkg_postinst
+}

diff --git a/kde-plasma/kscreen/metadata.xml b/kde-plasma/kscreen/metadata.xml
new file mode 100644
index 0000000..7a38bb9
--- /dev/null
+++ b/kde-plasma/kscreen/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+</pkgmetadata>

diff --git a/kde-plasma/kscreensaver/files/kscreensaver-4.5.95-nsfw.patch 
b/kde-plasma/kscreensaver/files/kscreensaver-4.5.95-nsfw.patch
new file mode 100644
index 0000000..ff3aebf
--- /dev/null
+++ b/kde-plasma/kscreensaver/files/kscreensaver-4.5.95-nsfw.patch
@@ -0,0 +1,21 @@
+diff -ruN kscreensaver-4.5.95.orig/kscreensaver/krandom_screensaver/random.cpp 
kscreensaver-4.5.95/kscreensaver/krandom_screensaver/random.cpp
+--- kscreensaver-4.5.95.orig/kscreensaver/krandom_screensaver/random.cpp       
2010-10-27 21:54:59.000000000 +0200
++++ kscreensaver-4.5.95/kscreensaver/krandom_screensaver/random.cpp    
2011-01-09 19:52:54.000000000 +0100
+@@ -110,6 +110,7 @@
+       const bool opengl = configGroup.readEntry("OpenGL", false);
+       const bool manipulatescreen = configGroup.readEntry("ManipulateScreen", 
false);
+         // TODO replace this with TryExec=fortune in the desktop files
++      const bool notsafeforwork = false;
+         const bool fortune = !KStandardDirs::findExe("fortune").isEmpty();
+         foreach( const KService::Ptr& service, lst ) {
+             //QString file = KStandardDirs::locate("services", 
service->entryPath());
+@@ -126,6 +127,9 @@
+                 } else if (type == QLatin1String("Fortune")) {
+                     if (!fortune)
+                         goto fail;
++                } else if (type == QLatin1String("NotSafeForWork")) {
++                    if (!notsafeforwork)
++                        goto fail;
+                 }
+             }
+             availableSavers.append(service);

diff --git a/kde-plasma/kscreensaver/kscreensaver-4.11.22.ebuild 
b/kde-plasma/kscreensaver/kscreensaver-4.11.22.ebuild
new file mode 100644
index 0000000..6ff3d18
--- /dev/null
+++ b/kde-plasma/kscreensaver/kscreensaver-4.11.22.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+KMNAME="kde-workspace"
+inherit kde4-meta
+
+DESCRIPTION="KDE Plasma screensaver framework"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug"
+
+RDEPEND="
+       kde-plasma/kcheckpass:4
+       x11-libs/libX11
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+       "${FILESDIR}/${PN}-4.5.95-nsfw.patch"
+)

diff --git a/kde-plasma/kscreensaver/metadata.xml 
b/kde-plasma/kscreensaver/metadata.xml
new file mode 100644
index 0000000..7a38bb9
--- /dev/null
+++ b/kde-plasma/kscreensaver/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+</pkgmetadata>

diff --git a/kde-plasma/ksmserver/ksmserver-4.11.22.ebuild 
b/kde-plasma/ksmserver/ksmserver-4.11.22.ebuild
new file mode 100644
index 0000000..e2bc529
--- /dev/null
+++ b/kde-plasma/ksmserver/ksmserver-4.11.22.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DECLARATIVE_REQUIRED="always"
+KMNAME="kde-workspace"
+inherit kde4-meta pax-utils
+
+DESCRIPTION="The reliable Plasma session manager that talks the standard X11R6"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug"
+
+DEPEND="
+       kde-plasma/kcminit:4
+       kde-plasma/libkworkspace:4
+       media-libs/qimageblitz
+       x11-libs/libICE
+       x11-libs/libSM
+       x11-libs/libX11
+       x11-libs/libXrender
+"
+RDEPEND="${DEPEND}
+       kde-plasma/libkgreeter:4
+"
+
+KMEXTRACTONLY="
+       kcminit/main.h
+       libs/kdm/kgreeterplugin.h
+       kcheckpass/
+       libs/kephal/
+       libs/kworkspace/
+"
+
+KMLOADLIBS="libkworkspace"
+
+src_install() {
+       kde4-meta_src_install
+
+       # bug #483236
+       pax-mark m "${ED}/usr/$(get_libdir)/kde4/libexec/kscreenlocker_greet"
+}

diff --git a/kde-plasma/ksmserver/metadata.xml 
b/kde-plasma/ksmserver/metadata.xml
new file mode 100644
index 0000000..7a38bb9
--- /dev/null
+++ b/kde-plasma/ksmserver/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+</pkgmetadata>

diff --git a/kde-plasma/ksplash/ksplash-4.11.22.ebuild 
b/kde-plasma/ksplash/ksplash-4.11.22.ebuild
new file mode 100644
index 0000000..03fe95c
--- /dev/null
+++ b/kde-plasma/ksplash/ksplash-4.11.22.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DECLARATIVE_REQUIRED="always"
+KMNAME="kde-workspace"
+inherit kde4-meta
+
+DESCRIPTION="KDE Plasma splashscreen framework"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+IUSE="cpu_flags_x86_3dnow altivec debug cpu_flags_x86_mmx cpu_flags_x86_sse
+cpu_flags_x86_sse2 xinerama"
+
+COMMONDEPEND="
+       media-libs/libpng:0=
+       virtual/jpeg:0
+       x11-libs/libX11
+       x11-libs/libXext
+       xinerama? ( x11-libs/libXinerama )
+"
+DEPEND="${COMMONDEPEND}
+       xinerama? ( x11-proto/xineramaproto )
+"
+RDEPEND="${COMMONDEPEND}"
+
+src_configure() {
+       local mycmakeargs=(
+               $(cmake-utils_use_has cpu_flags_x86_3dnow X86_3DNOW)
+               $(cmake-utils_use_has altivec PPC_ALTIVEC)
+               $(cmake-utils_use_has cpu_flags_x86_mmx X86_MMX)
+               $(cmake-utils_use_has cpu_flags_x86_sse X86_SSE)
+               $(cmake-utils_use_has cpu_flags_x86_sse2 X86_SSE2)
+               $(cmake-utils_use_with xinerama)
+       )
+
+       kde4-meta_src_configure
+}

diff --git a/kde-plasma/ksplash/metadata.xml b/kde-plasma/ksplash/metadata.xml
new file mode 100644
index 0000000..7a38bb9
--- /dev/null
+++ b/kde-plasma/ksplash/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+</pkgmetadata>

diff --git a/kde-plasma/ksshaskpass/files/ksshaskpass.sh 
b/kde-plasma/ksshaskpass/files/ksshaskpass.sh
new file mode 100644
index 0000000..664c173
--- /dev/null
+++ b/kde-plasma/ksshaskpass/files/ksshaskpass.sh
@@ -0,0 +1 @@
+export SSH_ASKPASS="/usr/bin/ksshaskpass"

diff --git a/kde-plasma/ksshaskpass/ksshaskpass-0.5.3-r1.ebuild 
b/kde-plasma/ksshaskpass/ksshaskpass-0.5.3-r1.ebuild
new file mode 100644
index 0000000..4f9551f
--- /dev/null
+++ b/kde-plasma/ksshaskpass/ksshaskpass-0.5.3-r1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit kde4-base
+
+DESCRIPTION="KDE implementation of ssh-askpass with Kwallet integration"
+HOMEPAGE="http://www.kde-apps.org/content/show.php?content=50971&forumpage=0";
+SRC_URI="http://www.kde-apps.org/CONTENT/content-files/50971-${P}.tar.gz";
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+SLOT="4"
+IUSE="debug"
+
+RDEPEND="net-misc/openssh"
+
+CFG="ksshaskpass.sh"
+
+src_prepare() {
+       STARTUPDIR=/etc/kde/startup
+       SHUTDOWNDIR=/etc/kde/shutdown
+
+       kde4-base_src_prepare
+}
+
+src_install() {
+       kde4-base_src_install
+
+       cat <<-EOF > "${T}/${CFG}"
+export SSH_ASKPASS="${PREFIX}/bin/ksshaskpass"
+EOF
+       insinto "${STARTUPDIR}"
+       doins "${T}/${CFG}"
+}
+
+pkg_postinst() {
+       kde4-base_pkg_postinst
+
+       elog
+       elog "In order to have ksshagent start at kde startup,"
+       elog "edit ${STARTUPDIR}/agent-startup.sh and uncomment"
+       elog "the lines enabling ssh-agent."
+       elog
+       elog "If you do so, do not forget to uncomment the respective"
+       elog "lines in ${SHUTDOWNDIR}/agent-shutdown.sh to"
+       elog "properly kill the agent when the session ends."
+       elog
+       elog "${P} has been installed as your default askpass application in 
KDE4 session."
+       elog "If it's not desired, point the one you want to use in 
${STARTUPDIR}/${CFG}"
+       elog
+}

diff --git a/kde-plasma/ksshaskpass/metadata.xml 
b/kde-plasma/ksshaskpass/metadata.xml
new file mode 100644
index 0000000..7a38bb9
--- /dev/null
+++ b/kde-plasma/ksshaskpass/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+</pkgmetadata>

diff --git a/kde-plasma/kstartupconfig/kstartupconfig-4.11.22.ebuild 
b/kde-plasma/kstartupconfig/kstartupconfig-4.11.22.ebuild
new file mode 100644
index 0000000..036a665
--- /dev/null
+++ b/kde-plasma/kstartupconfig/kstartupconfig-4.11.22.ebuild
@@ -0,0 +1,12 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+KMNAME="kde-workspace"
+inherit kde4-meta
+
+DESCRIPTION="Utility to launch applications with special window properties"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug"

diff --git a/kde-plasma/kstartupconfig/metadata.xml 
b/kde-plasma/kstartupconfig/metadata.xml
new file mode 100644
index 0000000..7a38bb9
--- /dev/null
+++ b/kde-plasma/kstartupconfig/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+</pkgmetadata>

diff --git a/kde-plasma/kstyles/kstyles-4.11.22.ebuild 
b/kde-plasma/kstyles/kstyles-4.11.22.ebuild
new file mode 100644
index 0000000..67935b5
--- /dev/null
+++ b/kde-plasma/kstyles/kstyles-4.11.22.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+KMNAME="kde-workspace"
+inherit kde4-meta
+
+DESCRIPTION="A set of different KDE Plasma styles"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug"
+
+DEPEND="
+       kde-plasma/liboxygenstyle:4=
+       x11-libs/libX11
+"
+RDEPEND="${DEPEND}"
+
+KMEXTRACTONLY="
+       libs/oxygen
+"

diff --git a/kde-plasma/kstyles/metadata.xml b/kde-plasma/kstyles/metadata.xml
new file mode 100644
index 0000000..7a38bb9
--- /dev/null
+++ b/kde-plasma/kstyles/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+</pkgmetadata>

diff --git a/kde-plasma/ksysguard/ksysguard-4.11.22.ebuild 
b/kde-plasma/ksysguard/ksysguard-4.11.22.ebuild
new file mode 100644
index 0000000..4dfc662
--- /dev/null
+++ b/kde-plasma/ksysguard/ksysguard-4.11.22.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+KDE_HANDBOOK="optional"
+KMNAME="kde-workspace"
+CPPUNIT_REQUIRED="optional"
+VIRTUALX_REQUIRED="test"
+WEBKIT_REQUIRED="always"
+inherit kde4-meta
+
+DESCRIPTION="Network-enabled task manager and system monitor"
+HOMEPAGE+=" https://userbase.kde.org/KSysGuard";
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug lm_sensors test"
+
+DEPEND="
+       sys-libs/zlib
+       x11-libs/libX11
+       x11-libs/libXres
+       lm_sensors? ( sys-apps/lm_sensors )
+"
+RDEPEND="${DEPEND}"
+
+RESTRICT="test"
+# bug 393091
+
+KMEXTRA="
+       libs/ksysguard/
+"
+
+src_configure() {
+       local mycmakeargs=(
+               $(cmake-utils_use_with lm_sensors Sensors)
+       )
+
+       kde4-meta_src_configure
+}
+
+pkg_postinst() {
+       kde4-meta_pkg_postinst
+       ewarn "Note that ksysguard has powerful features; one of these is the 
executing of arbitrary"
+       ewarn "programs with elevated privileges (as data sources). So be 
careful opening worksheets"
+       ewarn "from untrusted sources!"
+}

diff --git a/kde-plasma/ksysguard/metadata.xml 
b/kde-plasma/ksysguard/metadata.xml
new file mode 100644
index 0000000..7a38bb9
--- /dev/null
+++ b/kde-plasma/ksysguard/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+</pkgmetadata>

diff --git a/kde-plasma/ksystraycmd/ksystraycmd-4.11.22.ebuild 
b/kde-plasma/ksystraycmd/ksystraycmd-4.11.22.ebuild
new file mode 100644
index 0000000..2586c2c
--- /dev/null
+++ b/kde-plasma/ksystraycmd/ksystraycmd-4.11.22.ebuild
@@ -0,0 +1,15 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+KMNAME="kde-workspace"
+inherit kde4-meta
+
+DESCRIPTION="Embeds applications given as argument into the system tray"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug"
+
+DEPEND="x11-libs/libX11"
+RDEPEND="${DEPEND}"

diff --git a/kde-plasma/ksystraycmd/metadata.xml 
b/kde-plasma/ksystraycmd/metadata.xml
new file mode 100644
index 0000000..7a38bb9
--- /dev/null
+++ b/kde-plasma/ksystraycmd/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+</pkgmetadata>

diff --git a/kde-plasma/kwin/kwin-4.11.22.ebuild 
b/kde-plasma/kwin/kwin-4.11.22.ebuild
new file mode 100644
index 0000000..55d442a
--- /dev/null
+++ b/kde-plasma/kwin/kwin-4.11.22.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+KMNAME="kde-workspace"
+DECLARATIVE_REQUIRED="always"
+OPENGL_REQUIRED="always"
+
+#VIRTUALX_REQUIRED=test
+RESTRICT=test
+# test 8: kwin-TestVirtualDesktops hangs even with virtualx
+
+inherit flag-o-matic kde4-meta
+
+DESCRIPTION="KDE window manager"
+HOMEPAGE+=" https://userbase.kde.org/KWin";
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug gles opengl wayland"
+
+COMMONDEPEND="
+       kde-frameworks/kactivities:4
+       kde-frameworks/kdelibs:4[opengl]
+       kde-plasma/kephal:4
+       kde-plasma/libkworkspace:4
+       kde-plasma/liboxygenstyle:4
+       x11-libs/libICE
+       x11-libs/libSM
+       x11-libs/libX11
+       x11-libs/libxcb
+       x11-libs/xcb-util-image
+       x11-libs/xcb-util-keysyms
+       x11-libs/libXcomposite
+       x11-libs/libXcursor
+       x11-libs/libXdamage
+       x11-libs/libXext
+       x11-libs/libXfixes
+       >=x11-libs/libXrandr-1.2.1
+       x11-libs/libXrender
+       x11-libs/libXxf86vm
+       opengl? ( >=media-libs/mesa-7.10 )
+       gles? ( >=media-libs/mesa-7.12[egl(+),gles2] )
+       wayland? ( >=media-libs/mesa-9.0[egl(+),wayland] )
+"
+DEPEND="${COMMONDEPEND}
+       x11-libs/xcb-util-renderutil
+       x11-proto/compositeproto
+       x11-proto/damageproto
+       x11-proto/fixesproto
+       x11-proto/randrproto
+       x11-proto/renderproto
+"
+RDEPEND="${COMMONDEPEND}
+       x11-apps/scripts
+"
+
+KMEXTRACTONLY="
+       ksmserver/
+       libs/kephal/
+       libs/oxygen/
+"
+
+# you need one of these
+REQUIRED_USE="!opengl? ( gles ) !gles? ( opengl ) wayland? ( gles )"
+
+src_configure() {
+       # FIXME Remove when activity API moved away from libkworkspace
+       append-cppflags "-I${EPREFIX}/usr/include/kworkspace"
+
+       local mycmakeargs=(
+               $(cmake-utils_use_with gles OpenGLES)
+               $(cmake-utils_use gles KWIN_BUILD_WITH_OPENGLES)
+               $(cmake-utils_use_with opengl OpenGL)
+               $(cmake-utils_use_with wayland Wayland)
+               -DWITH_X11_Xcomposite=ON
+       )
+
+       kde4-meta_src_configure
+}

diff --git a/kde-plasma/kwin/metadata.xml b/kde-plasma/kwin/metadata.xml
new file mode 100644
index 0000000..5640fb6
--- /dev/null
+++ b/kde-plasma/kwin/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+       <use>
+               <flag name="gles">Enable support for GLES</flag>
+       </use>
+</pkgmetadata>

diff --git a/kde-plasma/kwrited/kwrited-4.11.22.ebuild 
b/kde-plasma/kwrited/kwrited-4.11.22.ebuild
new file mode 100644
index 0000000..ce2e44d
--- /dev/null
+++ b/kde-plasma/kwrited/kwrited-4.11.22.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+KMNAME="kde-workspace"
+inherit kde4-meta
+
+DESCRIPTION="KDE Plasma daemon listening for wall and write messages"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug"
+
+DEPEND="
+       || ( >=sys-libs/libutempter-1.1.5 >=sys-freebsd/freebsd-lib-9.0 )
+"
+RDEPEND="${DEPEND}"

diff --git a/kde-plasma/kwrited/metadata.xml b/kde-plasma/kwrited/metadata.xml
new file mode 100644
index 0000000..7a38bb9
--- /dev/null
+++ b/kde-plasma/kwrited/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+</pkgmetadata>

diff --git a/kde-plasma/libkgreeter/libkgreeter-4.11.22.ebuild 
b/kde-plasma/libkgreeter/libkgreeter-4.11.22.ebuild
new file mode 100644
index 0000000..f41a71d
--- /dev/null
+++ b/kde-plasma/libkgreeter/libkgreeter-4.11.22.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+KMNAME="kde-workspace"
+KMMODULE="libs/kdm"
+inherit kde4-meta
+
+DESCRIPTION="Conversation widgets for KDM greeter"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug"
+
+DEPEND="
+       !<kde-plasma/kdm-4.11.17-r1:4
+"
+
+RDEPEND="${DEPEND}"

diff --git a/kde-plasma/libkgreeter/metadata.xml 
b/kde-plasma/libkgreeter/metadata.xml
new file mode 100644
index 0000000..7a38bb9
--- /dev/null
+++ b/kde-plasma/libkgreeter/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+</pkgmetadata>

diff --git a/kde-plasma/libkscreen/libkscreen-1.0.5_p20150822.ebuild 
b/kde-plasma/libkscreen/libkscreen-1.0.5_p20150822.ebuild
new file mode 100644
index 0000000..20cb961
--- /dev/null
+++ b/kde-plasma/libkscreen/libkscreen-1.0.5_p20150822.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+VIRTUALX_REQUIRED="test"
+inherit kde4-base
+
+DESCRIPTION="Plasma screen management library"
+HOMEPAGE="https://projects.kde.org/projects/extragear/libs/libkscreen";
+SRC_URI="https://dev.gentoo.org/~kensington/distfiles/${P}.tar.bz2";
+
+LICENSE="GPL-2"
+SLOT="4"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
+IUSE="debug"
+
+RDEPEND="
+       >=dev-libs/qjson-0.8
+       x11-libs/libX11
+       x11-libs/libxcb
+       x11-libs/libXrandr
+"
+DEPEND="
+       ${RDEPEND}
+       test? ( dev-qt/qttest:4 )
+"

diff --git a/kde-plasma/libkscreen/metadata.xml 
b/kde-plasma/libkscreen/metadata.xml
new file mode 100644
index 0000000..7a38bb9
--- /dev/null
+++ b/kde-plasma/libkscreen/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+</pkgmetadata>

diff --git a/kde-plasma/libkworkspace/libkworkspace-4.11.22.ebuild 
b/kde-plasma/libkworkspace/libkworkspace-4.11.22.ebuild
new file mode 100644
index 0000000..1da5d44
--- /dev/null
+++ b/kde-plasma/libkworkspace/libkworkspace-4.11.22.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+KMNAME="kde-workspace"
+KMMODULE="libs/kworkspace"
+inherit kde4-meta
+
+DESCRIPTION="A library for Plasma desktop applications"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug"
+
+KMEXTRACTONLY="
+       ksmserver/org.kde.KSMServerInterface.xml
+       kwin/org.kde.KWin.xml
+"
+
+KMSAVELIBS="true"
+
+DEPEND="
+       x11-libs/libICE
+       x11-libs/libSM
+       x11-libs/libXau
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+       sed -i -e 's/install( FILES kdisplaymanager.h/install( FILES 
kdisplaymanager.h screenpreviewwidget.h/' \
+               libs/kworkspace/CMakeLists.txt || die "failed to provide 
screenpreviewwidget.h"
+
+       kde4-meta_src_prepare
+}

diff --git a/kde-plasma/libkworkspace/metadata.xml 
b/kde-plasma/libkworkspace/metadata.xml
new file mode 100644
index 0000000..7a38bb9
--- /dev/null
+++ b/kde-plasma/libkworkspace/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+</pkgmetadata>

diff --git a/kde-plasma/liboxygenstyle/liboxygenstyle-4.11.22.ebuild 
b/kde-plasma/liboxygenstyle/liboxygenstyle-4.11.22.ebuild
new file mode 100644
index 0000000..408e22f
--- /dev/null
+++ b/kde-plasma/liboxygenstyle/liboxygenstyle-4.11.22.ebuild
@@ -0,0 +1,17 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+KMNAME="kde-workspace"
+KMMODULE="libs/oxygen"
+inherit kde4-meta
+
+DESCRIPTION="Library to support the Oxygen style in KDE Plasma"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug"
+SLOT="4/${PV}"
+
+DEPEND="x11-libs/libX11"
+RDEPEND="${DEPEND}"

diff --git a/kde-plasma/liboxygenstyle/metadata.xml 
b/kde-plasma/liboxygenstyle/metadata.xml
new file mode 100644
index 0000000..7a38bb9
--- /dev/null
+++ b/kde-plasma/liboxygenstyle/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+</pkgmetadata>

diff --git a/kde-plasma/libplasmaclock/libplasmaclock-4.11.22.ebuild 
b/kde-plasma/libplasmaclock/libplasmaclock-4.11.22.ebuild
new file mode 100644
index 0000000..6b2db27
--- /dev/null
+++ b/kde-plasma/libplasmaclock/libplasmaclock-4.11.22.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+KMNAME="kde-workspace"
+KMMODULE="libs/plasmaclock"
+inherit kde4-meta
+
+DESCRIPTION="Libraries for KDE Plasma's clocks"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug +pim"
+
+DEPEND="
+       kde-plasma/kephal:4
+       pim? ( $(add_kdeapps_dep kdepimlibs) )
+"
+RDEPEND="${DEPEND}"
+
+KMSAVELIBS="true"
+
+KMEXTRACTONLY="
+       libs/kephal/
+"
+
+src_configure() {
+       local mycmakeargs=(
+               $(cmake-utils_use_with pim KdepimLibs)
+       )
+
+       kde4-meta_src_configure
+}

diff --git a/kde-plasma/libplasmaclock/metadata.xml 
b/kde-plasma/libplasmaclock/metadata.xml
new file mode 100644
index 0000000..70d416a
--- /dev/null
+++ b/kde-plasma/libplasmaclock/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+       <use>
+               <flag name="pim">KDE PIM integration via 
<pkg>kde-apps/kdepimlibs</pkg></flag>
+       </use>
+</pkgmetadata>

diff --git 
a/kde-plasma/libplasmagenericshell/libplasmagenericshell-4.11.22.ebuild 
b/kde-plasma/libplasmagenericshell/libplasmagenericshell-4.11.22.ebuild
new file mode 100644
index 0000000..9aec676
--- /dev/null
+++ b/kde-plasma/libplasmagenericshell/libplasmagenericshell-4.11.22.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DECLARATIVE_REQUIRED="always"
+KMNAME="kde-workspace"
+KMMODULE="libs/plasmagenericshell"
+inherit kde4-meta
+
+DESCRIPTION="Libraries for the KDE Plasma shell"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug test"
+
+DEPEND="
+       kde-plasma/kephal:4
+       kde-plasma/libkworkspace:4
+       x11-libs/libX11
+"
+RDEPEND="${DEPEND}"
+
+KMSAVELIBS="true"
+
+KMEXTRACTONLY="
+       libs/kephal/kephal/
+       plasma/desktop/shell/data/
+"

diff --git a/kde-plasma/libplasmagenericshell/metadata.xml 
b/kde-plasma/libplasmagenericshell/metadata.xml
new file mode 100644
index 0000000..7a38bb9
--- /dev/null
+++ b/kde-plasma/libplasmagenericshell/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+</pkgmetadata>

diff --git a/kde-plasma/libtaskmanager/libtaskmanager-4.11.22.ebuild 
b/kde-plasma/libtaskmanager/libtaskmanager-4.11.22.ebuild
new file mode 100644
index 0000000..92b62f8
--- /dev/null
+++ b/kde-plasma/libtaskmanager/libtaskmanager-4.11.22.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+KMNAME="kde-workspace"
+KMMODULE="libs/taskmanager"
+inherit kde4-meta
+
+DESCRIPTION="A library that provides basic taskmanager functionality"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug"
+
+DEPEND="
+       kde-frameworks/kactivities:4
+       kde-plasma/kephal:4
+       kde-plasma/ksysguard:4
+       kde-plasma/libkworkspace:4
+       x11-libs/libX11
+"
+RDEPEND="${DEPEND}"
+
+KMSAVELIBS="true"
+
+KMEXTRACTONLY="
+       libs/kephal/
+       libs/kworkspace/
+"
+
+src_prepare() {
+       kde4-meta_src_prepare
+       sed -e 's:ksysguard/processcore/processes.h:ksysguard/processes.h:g' -i 
"${S}/libs/taskmanager/taskitem.cpp" || die
+       sed -e 's:ksysguard/processcore/process.h:ksysguard/process.h:g' -i 
"${S}/libs/taskmanager/taskitem.cpp" || die
+}

diff --git a/kde-plasma/libtaskmanager/metadata.xml 
b/kde-plasma/libtaskmanager/metadata.xml
new file mode 100644
index 0000000..7a38bb9
--- /dev/null
+++ b/kde-plasma/libtaskmanager/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+</pkgmetadata>

diff --git a/kde-plasma/metadata.xml b/kde-plasma/metadata.xml
new file mode 100644
index 0000000..b545c25
--- /dev/null
+++ b/kde-plasma/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE catmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<catmetadata>
+       <longdescription lang="en">
+               The kde-plasma category contains KDE Plasma
+       </longdescription>
+</catmetadata>

diff --git a/kde-plasma/milou/metadata.xml b/kde-plasma/milou/metadata.xml
new file mode 100644
index 0000000..7a38bb9
--- /dev/null
+++ b/kde-plasma/milou/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+</pkgmetadata>

diff --git a/kde-plasma/milou/milou-0.1.ebuild 
b/kde-plasma/milou/milou-0.1.ebuild
new file mode 100644
index 0000000..ba7b4f8
--- /dev/null
+++ b/kde-plasma/milou/milou-0.1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+KDE_MINIMAL="4.13"
+KDE_LINGUAS="bs ca cs da de el es fi fr hu ja ko lt nds nl pl pt pt_BR ro sk sv
+uk zh_CN zh_TW"
+inherit kde4-base
+
+DESCRIPTION="Dedicated search application built on top of Baloo"
+HOMEPAGE="https://projects.kde.org/projects/extragear/base/milou";
+SRC_URI="mirror://kde/unstable/${PN}/${PV}/src/${P}.tar.xz"
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="4"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug"
+
+RDEPEND="
+       $(add_kdeapps_dep kdepimlibs)
+       kde-frameworks/baloo:4
+"
+DEPEND="${RDEPEND}
+       kde-frameworks/kfilemetadata:4
+"

diff --git 
a/kde-plasma/plasma-nm/files/plasma-nm-0.9.3.6-networkmanager-1.0.6.patch 
b/kde-plasma/plasma-nm/files/plasma-nm-0.9.3.6-networkmanager-1.0.6.patch
new file mode 100644
index 0000000..1151763
--- /dev/null
+++ b/kde-plasma/plasma-nm/files/plasma-nm-0.9.3.6-networkmanager-1.0.6.patch
@@ -0,0 +1,14 @@
+Fixes build with networkmanager-1.0.6.
+
+Triggered by 
http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?h=nm-1-0&id=6f616d4c4b04d5478f60d0311317bc84c5459ea4.
+
+--- CMakeLists.txt
++++ CMakeLists.txt
+@@ -49,6 +49,7 @@
+                     ${CMAKE_CURRENT_SOURCE_DIR}/libs
+                     ${CMAKE_CURRENT_SOURCE_DIR}/libs/editor/
+                     ${NETWORKMANAGER_INCLUDE_DIRS}
++                    ${NM-UTIL_INCLUDE_DIRS}
+                     ${NETWORKMANAGERQT_INCLUDE_DIRS}
+                     ${KDE4_INCLUDES})
+ 

diff --git a/kde-plasma/plasma-nm/metadata.xml 
b/kde-plasma/plasma-nm/metadata.xml
new file mode 100644
index 0000000..79c1b9f
--- /dev/null
+++ b/kde-plasma/plasma-nm/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+       <use>
+               <flag name="modemmanager">Enable support for mobile broadband 
devices</flag>
+               <flag name="openconnect">Build support for the OpenConnect VPN 
client</flag>
+       </use>
+</pkgmetadata>

diff --git a/kde-plasma/plasma-nm/plasma-nm-0.9.3.6.ebuild 
b/kde-plasma/plasma-nm/plasma-nm-0.9.3.6.ebuild
new file mode 100644
index 0000000..3ad890e
--- /dev/null
+++ b/kde-plasma/plasma-nm/plasma-nm-0.9.3.6.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+KDE_LINGUAS="ar bg bs ca ca@valencia cs da de el en_GB eo es et fa fi fr ga gl
+hr hu is it ja km ko lt lv mai mr ms nb nds nl nn pa pl pt pt_BR ro ru sk
+sl sr sr@ijekavian sr@ijekavianlatin sr@latin sv th tr ug uk zh_CN zh_TW"
+DECLARATIVE_REQUIRED="always"
+inherit kde4-base
+
+if [[ ${KDE_BUILD_TYPE} != live ]]; then
+       KEYWORDS="~amd64 ~x86"
+       SRC_URI="mirror://kde/stable/${PN}/${P}.tar.xz"
+else
+       KEYWORDS=""
+fi
+
+DESCRIPTION="KDE Plasma applet for NetworkManager"
+HOMEPAGE="https://projects.kde.org/projects/playground/network/plasma-nm";
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="4"
+IUSE="debug modemmanager openconnect"
+
+RDEPEND="
+       >=net-libs/libnm-qt-0.9.8.2[modemmanager?]
+       net-misc/mobile-broadband-provider-info
+       >=net-misc/networkmanager-0.9.8.0
+       modemmanager? ( >=net-libs/libmm-qt-1.0.0 )
+       openconnect? (
+               net-misc/networkmanager-openconnect
+               net-misc/openconnect:=
+       )
+       !kde-misc/networkmanagement
+"
+DEPEND="${RDEPEND}
+       sys-devel/gettext
+"
+
+PATCHES=( "${FILESDIR}/${P}-networkmanager-1.0.6.patch" )
+
+src_configure() {
+       local mycmakeargs=(
+               $(cmake-utils_use !modemmanager DISABLE_MODEMMANAGER_SUPPORT)
+               $(cmake-utils_use_find_package openconnect OpenConnect)
+       )
+
+       kde4-base_src_configure
+}

diff --git a/kde-plasma/plasma-workspace/metadata.xml 
b/kde-plasma/plasma-workspace/metadata.xml
new file mode 100644
index 0000000..e85d6c4
--- /dev/null
+++ b/kde-plasma/plasma-workspace/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+       <use>
+               <flag name="json">Enable JSON support via 
<pkg>dev-libs/qjson</pkg></flag>
+               <flag name="pim">KDE PIM integration via 
<pkg>kde-apps/kdepimlibs</pkg></flag>
+               <flag name="qalculate">Enable Qalculate runner using 
<pkg>sci-libs/libqalculate</pkg></flag>
+       </use>
+</pkgmetadata>

diff --git a/kde-plasma/plasma-workspace/plasma-workspace-4.11.22.ebuild 
b/kde-plasma/plasma-workspace/plasma-workspace-4.11.22.ebuild
new file mode 100644
index 0000000..3c05c81
--- /dev/null
+++ b/kde-plasma/plasma-workspace/plasma-workspace-4.11.22.ebuild
@@ -0,0 +1,117 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DECLARATIVE_REQUIRED="always"
+KDE_HANDBOOK="optional"
+KMNAME="kde-workspace"
+KMMODULE="plasma"
+PYTHON_COMPAT=( python2_7 )
+OPENGL_REQUIRED="always"
+WEBKIT_REQUIRED="always"
+inherit python-single-r1 kde4-meta
+
+DESCRIPTION="Plasma: KDE desktop framework"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug gps json +pim python qalculate"
+
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+COMMONDEPEND="
+       dev-libs/libdbusmenu-qt
+       >=dev-qt/qtcore-4.8.4-r3:4
+       kde-frameworks/kactivities:4
+       kde-plasma/kephal:4
+       kde-plasma/ksysguard:4
+       kde-plasma/libkworkspace:4
+       kde-plasma/libplasmaclock:4[pim?]
+       kde-plasma/libplasmagenericshell:4
+       kde-plasma/libtaskmanager:4
+       x11-libs/libX11
+       x11-libs/libXcomposite
+       x11-libs/libXdamage
+       x11-libs/libXext
+       x11-libs/libXfixes
+       x11-libs/libXi
+       x11-libs/libXrender
+       gps? ( >=sci-geosciences/gpsd-2.37 )
+       json? ( dev-libs/qjson )
+       pim? ( $(add_kdeapps_dep kdepimlibs) )
+       python? (
+               ${PYTHON_DEPS}
+               >=dev-python/PyQt4-4.4.0[X,${PYTHON_USEDEP}]
+               $(add_kdeapps_dep pykde4 "${PYTHON_USEDEP}")
+       )
+       qalculate? ( sci-libs/libqalculate )
+"
+DEPEND="${COMMONDEPEND}
+       dev-libs/boost
+       x11-proto/compositeproto
+       x11-proto/damageproto
+       x11-proto/fixesproto
+       x11-proto/renderproto
+"
+RDEPEND="${COMMONDEPEND}
+       $(add_kdeapps_dep plasma-runtime)
+"
+
+KMEXTRA="
+       appmenu/
+       ktouchpadenabler/
+       statusnotifierwatcher/
+"
+KMEXTRACTONLY="
+       kcheckpass/
+       krunner/dbus/org.freedesktop.ScreenSaver.xml
+       krunner/dbus/org.kde.krunner.App.xml
+       ksmserver/org.kde.KSMServerInterface.xml
+       ksmserver/screenlocker/
+       libs/kephal/
+       libs/kworkspace/
+       libs/taskmanager/
+       libs/plasmagenericshell/
+       libs/ksysguard/
+       libs/kdm/kgreeterplugin.h
+       ksysguard/
+"
+
+pkg_setup() {
+       if use python ; then
+               python-single-r1_pkg_setup
+       fi
+       kde4-meta_pkg_setup
+}
+
+src_unpack() {
+       if use handbook; then
+               KMEXTRA+=" doc/plasma-desktop"
+       fi
+
+       kde4-meta_src_unpack
+}
+
+src_configure() {
+       local mycmakeargs=(
+               -DWITH_NepomukCore=OFF
+               -DWITH_Soprano=OFF
+               -DWITH_Xmms=OFF
+               $(cmake-utils_use_with gps libgps)
+               $(cmake-utils_use_with json QJSON)
+               $(cmake-utils_use_with pim Akonadi)
+               $(cmake-utils_use_with pim KdepimLibs)
+               $(cmake-utils_use_with python PythonLibrary)
+               $(cmake-utils_use_with qalculate)
+       )
+
+       kde4-meta_src_configure
+}
+
+src_install() {
+       kde4-meta_src_install
+
+       if use python; then
+               python_optimize "${ED}"
+       fi
+}

diff --git a/kde-plasma/powerdevil/metadata.xml 
b/kde-plasma/powerdevil/metadata.xml
new file mode 100644
index 0000000..8b66c39
--- /dev/null
+++ b/kde-plasma/powerdevil/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+       <use>
+               <flag name="pm-utils">Adds support for suspend/resume the 
system through <pkg>sys-power/pm-utils</pkg></flag>
+       </use>
+</pkgmetadata>

diff --git a/kde-plasma/powerdevil/powerdevil-4.11.22.ebuild 
b/kde-plasma/powerdevil/powerdevil-4.11.22.ebuild
new file mode 100644
index 0000000..8048d5e
--- /dev/null
+++ b/kde-plasma/powerdevil/powerdevil-4.11.22.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+KMNAME="kde-workspace"
+inherit kde4-meta
+
+DESCRIPTION="PowerDevil is an utility for KDE4 for Laptop Powermanagement"
+HOMEPAGE="https://solid.kde.org";
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug +pm-utils"
+
+DEPEND="
+       kde-frameworks/kactivities:4
+       kde-plasma/libkworkspace:4
+       !aqua? (
+               x11-libs/libX11
+               x11-libs/libXext
+               x11-libs/libXrandr
+       )
+"
+RDEPEND="${DEPEND}
+       pm-utils? ( sys-power/pm-utils )
+"
+
+KMEXTRACTONLY="
+       krunner/
+       ksmserver/org.kde.KSMServerInterface.xml
+       ksmserver/screenlocker/dbus/org.freedesktop.ScreenSaver.xml
+"

diff --git a/kde-plasma/qguiplatformplugin_kde/metadata.xml 
b/kde-plasma/qguiplatformplugin_kde/metadata.xml
new file mode 100644
index 0000000..7a38bb9
--- /dev/null
+++ b/kde-plasma/qguiplatformplugin_kde/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+</pkgmetadata>

diff --git 
a/kde-plasma/qguiplatformplugin_kde/qguiplatformplugin_kde-4.11.22.ebuild 
b/kde-plasma/qguiplatformplugin_kde/qguiplatformplugin_kde-4.11.22.ebuild
new file mode 100644
index 0000000..4e81e60
--- /dev/null
+++ b/kde-plasma/qguiplatformplugin_kde/qguiplatformplugin_kde-4.11.22.ebuild
@@ -0,0 +1,12 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+KMNAME="kde-workspace"
+inherit kde4-meta
+
+DESCRIPTION="Helps integration of pure Qt applications with KDE Plasma"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug"

diff --git a/kde-plasma/solid-actions-kcm/metadata.xml 
b/kde-plasma/solid-actions-kcm/metadata.xml
new file mode 100644
index 0000000..7a38bb9
--- /dev/null
+++ b/kde-plasma/solid-actions-kcm/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+</pkgmetadata>

diff --git a/kde-plasma/solid-actions-kcm/solid-actions-kcm-4.11.22.ebuild 
b/kde-plasma/solid-actions-kcm/solid-actions-kcm-4.11.22.ebuild
new file mode 100644
index 0000000..d8cd455
--- /dev/null
+++ b/kde-plasma/solid-actions-kcm/solid-actions-kcm-4.11.22.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+KMNAME="kde-workspace"
+CPPUNIT_REQUIRED="test"
+inherit kde4-meta
+
+DESCRIPTION="KDE Plasma control module for Solid actions"
+HOMEPAGE="https://solid.kde.org";
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug"
+
+RDEPEND="
+       $(add_kdeapps_dep solid-runtime)
+       !kde-base/solid:4
+"

diff --git 
a/kde-plasma/systemsettings/files/systemsettings-4.11.22-strigi-removal.patch 
b/kde-plasma/systemsettings/files/systemsettings-4.11.22-strigi-removal.patch
new file mode 100644
index 0000000..e98387f
--- /dev/null
+++ 
b/kde-plasma/systemsettings/files/systemsettings-4.11.22-strigi-removal.patch
@@ -0,0 +1,35 @@
+diff -Naur kde-workspace-4.11.22.orig/CMakeLists.txt 
kde-workspace-4.11.22/CMakeLists.txt
+--- kde-workspace-4.11.22.orig/CMakeLists.txt  2015-08-12 09:03:15.000000000 
+0200
++++ kde-workspace-4.11.22/CMakeLists.txt       2016-05-25 21:17:36.503606974 
+0200
+@@ -20,12 +20,6 @@
+ 
+ option(WITH_XINERAMA "Xinerama support for multi-headed X displays" ON)
+ 
+-find_package(Strigi)
+-
+-set_package_properties(Strigi PROPERTIES DESCRIPTION "Desktop indexing and 
search support"
+-                       URL "http://strigi.sourceforge.net";
+-                       TYPE REQUIRED
+-                      )
+ 
+ find_package(ZLIB)
+ set_package_properties(ZLIB PROPERTIES DESCRIPTION "Support for gzip 
compressed files and data streams"
+diff -Naur kde-workspace-4.11.22.orig/kcontrol/kfontinst/CMakeLists.txt 
kde-workspace-4.11.22/kcontrol/kfontinst/CMakeLists.txt
+--- kde-workspace-4.11.22.orig/kcontrol/kfontinst/CMakeLists.txt       
2015-08-12 09:03:15.000000000 +0200
++++ kde-workspace-4.11.22/kcontrol/kfontinst/CMakeLists.txt    2016-05-25 
21:18:13.023186175 +0200
+@@ -4,7 +4,6 @@
+     find_package(Qt4 REQUIRED)
+     find_package(Freetype REQUIRED)
+     find_package(Fontconfig REQUIRED)
+-    find_package(Strigi REQUIRED)
+     find_package(X11 REQUIRED)
+     macro_log_feature(X11_Xft_FOUND "libxft" "X FreeType interface library" 
"http://www.x.org"; FALSE "" "Font installer and font previews")
+     include(KDE4Defaults)
+@@ -40,7 +39,6 @@
+     add_subdirectory( lib ) 
+     add_subdirectory( dbus )
+     add_subdirectory( kcmfontinst ) 
+-    add_subdirectory( strigi-analyzer )
+     add_subdirectory( apps )
+     add_subdirectory( kio ) 
+     add_subdirectory( thumbnail )

diff --git a/kde-plasma/systemsettings/files/systemsettings-kcm-randr.patch 
b/kde-plasma/systemsettings/files/systemsettings-kcm-randr.patch
new file mode 100644
index 0000000..43019fc
--- /dev/null
+++ b/kde-plasma/systemsettings/files/systemsettings-kcm-randr.patch
@@ -0,0 +1,20 @@
+Adds option to disable the randr KCM (to use KScreen instead) wrt bug #524266.
+
+Source: 
http://pkgs.fedoraproject.org/cgit/kde-workspace.git/plain/kde-workspace-4.10.2-BUILD_KCM_RANDR.patch
+
+diff -up kde-workspace-4.10.2/kcontrol/CMakeLists.txt.BUILD_KCM_RANDR 
kde-workspace-4.10.2/kcontrol/CMakeLists.txt
+--- kde-workspace-4.10.2/kcontrol/CMakeLists.txt.BUILD_KCM_RANDR       
2013-03-01 00:32:25.040847159 -0600
++++ kde-workspace-4.10.2/kcontrol/CMakeLists.txt       2013-04-18 
08:58:31.086753204 -0500
+@@ -6,9 +6,10 @@ macro_log_feature(FREETYPE_FOUND "FreeTy
+ set(libkxftconfig_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/fonts/kxftconfig.cpp )
+ 
+ 
+-if( X11_Xrandr_FOUND )
++OPTION(BUILD_KCM_RANDR "Build kcontrol/randr module" ON)
++if(BUILD_KCM_RANDR AND X11_Xrandr_FOUND)
+    add_subdirectory( randr )
+-endif(X11_Xrandr_FOUND )
++endif(BUILD_KCM_RANDR AND X11_Xrandr_FOUND)
+ 
+ if(X11_Xkb_FOUND)
+     add_subdirectory( keyboard )

diff --git a/kde-plasma/systemsettings/metadata.xml 
b/kde-plasma/systemsettings/metadata.xml
new file mode 100644
index 0000000..4d46ebe
--- /dev/null
+++ b/kde-plasma/systemsettings/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <!-- maintainer-needed -->
+       <use>
+               <flag name="kscreen">Use <pkg>kde-plasma/kscreen</pkg> for 
screen management</flag>
+       </use>
+</pkgmetadata>

diff --git a/kde-plasma/systemsettings/systemsettings-4.11.22-r2.ebuild 
b/kde-plasma/systemsettings/systemsettings-4.11.22-r2.ebuild
new file mode 100644
index 0000000..b53c234
--- /dev/null
+++ b/kde-plasma/systemsettings/systemsettings-4.11.22-r2.ebuild
@@ -0,0 +1,108 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+KDE_HANDBOOK="optional"
+KMNAME="kde-workspace"
+OPENGL_REQUIRED="optional"
+VIRTUALX_REQUIRED="test"
+VIRTUALDBUS_TEST="true"
+inherit kde4-meta
+
+DESCRIPTION="System settings utility"
+HOMEPAGE+=" https://userbase.kde.org/System_Settings";
+IUSE="debug gtk +kscreen +usb"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+
+COMMONDEPEND="
+       dev-libs/glib:2
+       kde-plasma/kwin:4
+       kde-plasma/libkworkspace:4
+       media-libs/fontconfig
+       >=media-libs/freetype-2
+       >=x11-libs/libxklavier-3.2
+       x11-libs/libX11
+       x11-libs/libXcursor
+       x11-libs/libXext
+       x11-libs/libXfixes
+       x11-libs/libXft
+       x11-libs/libXi
+       x11-libs/libxkbfile
+       x11-libs/libXrandr
+       x11-libs/libXtst
+       opengl? ( virtual/opengl )
+       usb? ( virtual/libusb:0 )
+"
+DEPEND="${COMMONDEPEND}
+       x11-proto/kbproto
+       x11-proto/xextproto
+"
+RDEPEND="${COMMONDEPEND}
+       >=kde-frameworks/oxygen-icons-5.19.0:5
+       sys-libs/timezone-data
+       x11-apps/setxkbmap
+       x11-misc/xkeyboard-config
+       gtk? ( kde-plasma/kde-gtk-config:4 )
+       kscreen? ( kde-plasma/kscreen:4 )
+"
+
+KMEXTRA="
+       kcontrol/
+"
+KMEXTRACTONLY="
+       krunner/dbus/org.kde.krunner.App.xml
+       krunner/dbus/org.kde.screensaver.xml
+       ksmserver/screenlocker/dbus/org.kde.screensaver.xml
+       kwin/
+       libs/
+       plasma/
+"
+# fails to connect to a kded instance
+RESTRICT="test"
+
+PATCHES=(
+       "${FILESDIR}/${PN}-kcm-randr.patch"
+)
+
+src_unpack() {
+       if use handbook; then
+               KMEXTRA+="
+                       doc/kcontrol
+                       doc/kfontview
+               "
+       fi
+
+       kde4-meta_src_unpack
+}
+
+src_prepare() {
+       eapply "${FILESDIR}/${P}-strigi-removal.patch"
+
+       sed -i -e 's/systemsettingsrc DESTINATION 
${SYSCONF_INSTALL_DIR}/systemsettingsrc DESTINATION ${CONFIG_INSTALL_DIR}/' \
+               systemsettings/CMakeLists.txt \
+               || die "Failed to fix systemsettingsrc install location"
+
+       sed -i -e '/kde4_install_icons/ s/^/#/' 
kcontrol/kfontinst/kio/CMakeLists.txt \
+               || die "Failed to disable icons"
+
+       kde4-meta_src_prepare
+}
+
+# FIXME: is have_openglxvisual found without screensaver
+src_configure() {
+       # Old keyboard-detection code is unmaintained,
+       # so we force the new stuff, using libxklavier.
+       local mycmakeargs=(
+               -DUSE_XKLAVIER=ON
+               -DWITH_LibXKlavier=ON
+               -DWITH_GLIB2=ON
+               -DWITH_GObject=ON
+               -DBUILD_KCM_RANDR=$(usex !kscreen)
+               -DWITH_OpenGL=$(usex opengl)
+               -DWITH_USB=$(usex usb)
+       )
+
+       kde4-meta_src_configure
+}

Reply via email to