summaryrefslogtreecommitdiff
path: root/kde-plasma/kscreenlocker/kscreenlocker-9999.ebuild
diff options
context:
space:
mode:
authorElias Probst <mail@eliasprobst.eu>2015-11-09 10:08:37 +0100
committerMichael Palimaka <kensington@gentoo.org>2015-11-17 04:38:06 +1100
commitba383e5f6a02e57c395d8f349521c28a3b6de356 (patch)
tree8cdeacbbc282a6880ae32969aa7f37fac958d4df /kde-plasma/kscreenlocker/kscreenlocker-9999.ebuild
parent31bd82d85e8e49ce404d95af87fc1a6bcf515dcd (diff)
downloadkde-ba383e5f6a02e57c395d8f349521c28a3b6de356.tar.gz
kde-ba383e5f6a02e57c395d8f349521c28a3b6de356.tar.bz2
kde-ba383e5f6a02e57c395d8f349521c28a3b6de356.zip
kde-plasma/kscreenlocker: Add live ebuild
Package-Manager: portage-2.2.23
Diffstat (limited to 'kde-plasma/kscreenlocker/kscreenlocker-9999.ebuild')
-rw-r--r--kde-plasma/kscreenlocker/kscreenlocker-9999.ebuild79
1 files changed, 79 insertions, 0 deletions
diff --git a/kde-plasma/kscreenlocker/kscreenlocker-9999.ebuild b/kde-plasma/kscreenlocker/kscreenlocker-9999.ebuild
new file mode 100644
index 00000000000..e5bb9c9684b
--- /dev/null
+++ b/kde-plasma/kscreenlocker/kscreenlocker-9999.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+KDE_TEST="forceoptional"
+VIRTUALX_REQUIRED="test"
+inherit kde5 pam
+
+DESCRIPTION="Library and components for secure lock screen architecture"
+KEYWORDS=""
+IUSE="pam"
+
+COMMON_DEPEND="
+ $(add_frameworks_dep kcmutils)
+ $(add_frameworks_dep kconfig)
+ $(add_frameworks_dep kconfigwidgets)
+ $(add_frameworks_dep kcoreaddons)
+ $(add_frameworks_dep kcrash)
+ $(add_frameworks_dep kdeclarative)
+ $(add_frameworks_dep kdelibs4support)
+ $(add_frameworks_dep kglobalaccel)
+ $(add_frameworks_dep ki18n)
+ $(add_frameworks_dep kidletime)
+ $(add_frameworks_dep knotifications)
+ $(add_frameworks_dep kpackage)
+ $(add_frameworks_dep kwindowsystem)
+ $(add_frameworks_dep kxmlgui)
+ $(add_frameworks_dep plasma)
+ $(add_plasma_dep kwayland)
+ dev-libs/wayland
+ dev-qt/qtdbus:5
+ dev-qt/qtdeclarative:5[widgets]
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtx11extras:5
+ x11-libs/libX11
+ x11-libs/libXi
+ x11-libs/libxcb
+ x11-libs/xcb-util-keysyms
+ pam? ( virtual/pam )
+"
+DEPEND="${COMMON_DEPEND}"
+
+RDEPEND="${COMMON_DEPEND}
+ !<kde-base/kcheckpass-4.11.22-r1:4
+ !kde-base/kdebase-pam:4
+ !<kde-plasma/plasma-workspace-5.4.50
+"
+
+PATCHES=( "${FILESDIR}/${PN}-5.4.90-no-SUID-no-GUID.patch" )
+
+src_prepare() {
+ kde5_src_prepare
+
+ use test || sed -i \
+ -e "/add_subdirectory(autotests)/ s/^/#/" greeter/CMakeLists.txt || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_find_package pam)
+ )
+ kde5_src_configure
+}
+
+src_install() {
+ kde5_src_install
+
+ newpamd "${FILESDIR}/kde.pam" kde
+ newpamd "${FILESDIR}/kde-np.pam" kde-np
+
+ if ! use pam; then
+ chown root "${ED}"usr/$(get_libdir)/libexec/kcheckpass || die
+ chmod +s "${ED}"usr/$(get_libdir)/libexec/kcheckpass || die
+ fi
+}