1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit cmake-utils systemd user
8 DESCRIPTION="Simple Desktop Display Manager"
9 HOMEPAGE="https://github.com/sddm/sddm"
10 SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.gz"
11 KEYWORDS="amd64 ~arm ~arm64 x86"
13 LICENSE="GPL-2+ MIT CC-BY-3.0 CC-BY-SA-3.0 public-domain"
15 IUSE="consolekit elogind +pam systemd"
17 REQUIRED_USE="?? ( elogind systemd )"
23 >=dev-qt/qtdeclarative-5.6:5
24 >=dev-qt/qtnetwork-5.6:5
25 >=x11-base/xorg-server-1.15.1
27 consolekit? ( >=sys-auth/consolekit-0.9.4 )
28 elogind? ( sys-auth/elogind )
30 systemd? ( sys-apps/systemd:= )
31 !systemd? ( sys-power/upower )"
35 >=dev-qt/linguist-tools-5.6:5
37 kde-frameworks/extra-cmake-modules
40 # fix for flags handling and bug 563108
41 PATCHES=( "${FILESDIR}/${PN}-0.12.0-respect-user-flags.patch" )
44 use consolekit && eapply "${FILESDIR}/${PN}-0.14.0-consolekit.patch"
45 cmake-utils_src_prepare
50 -DENABLE_PAM=$(usex pam)
51 -DNO_SYSTEMD=$(usex '!systemd')
52 -DUSE_ELOGIND=$(usex 'elogind')
54 -DDBUS_CONFIG_FILENAME="org.freedesktop.sddm.conf"
56 cmake-utils_src_configure
61 enewuser ${PN} -1 -1 /var/lib/${PN} ${PN},video
63 systemd_reenable sddm.service