Gentoo Archives: gentoo-commits

From: "Manuel Rüger" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/sddm/
Date: Mon, 29 Aug 2016 10:09:31
Message-Id: 1472465350.cec1882183eee8385b9d4b3b13a04c1fc2201860.mrueg@gentoo
1 commit: cec1882183eee8385b9d4b3b13a04c1fc2201860
2 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 29 10:08:10 2016 +0000
4 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 29 10:09:10 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cec18821
7
8 x11-misc/sddm: Add user to video group, fix QT dependencies
9
10 Gentoo-Bug: 592116
11
12 Package-Manager: portage-2.3.0
13
14 x11-misc/sddm/sddm-0.14.0-r1.ebuild | 81 +++++++++++++++++++++++++++++++++++++
15 1 file changed, 81 insertions(+)
16
17 diff --git a/x11-misc/sddm/sddm-0.14.0-r1.ebuild b/x11-misc/sddm/sddm-0.14.0-r1.ebuild
18 new file mode 100644
19 index 00000000..d92b86b
20 --- /dev/null
21 +++ b/x11-misc/sddm/sddm-0.14.0-r1.ebuild
22 @@ -0,0 +1,81 @@
23 +# Copyright 1999-2016 Gentoo Foundation
24 +# Distributed under the terms of the GNU General Public License v2
25 +# $Id$
26 +
27 +EAPI=6
28 +inherit cmake-utils user
29 +
30 +DESCRIPTION="Simple Desktop Display Manager"
31 +HOMEPAGE="https://github.com/sddm/sddm"
32 +SRC_URI="https://github.com/${PN}/${PN}/releases/download/v${PV}/${P}.tar.xz"
33 +KEYWORDS="~amd64 ~arm ~x86"
34 +
35 +LICENSE="GPL-2+ MIT CC-BY-3.0 CC-BY-SA-3.0 public-domain"
36 +SLOT="0"
37 +IUSE="consolekit +pam systemd"
38 +
39 +RDEPEND=">=dev-qt/qtcore-5.6:5
40 + >=dev-qt/qtdbus-5.6:5
41 + >=dev-qt/qtgui-5.6:5
42 + >=dev-qt/qtdeclarative-5.6:5
43 + >=dev-qt/qtnetwork-5.6:5
44 + >=x11-base/xorg-server-1.15.1
45 + x11-libs/libxcb[xkb(-)]
46 + consolekit? ( >=sys-auth/consolekit-0.9.4 )
47 + pam? ( sys-libs/pam )
48 + systemd? ( sys-apps/systemd:= )
49 + !systemd? ( || ( sys-power/upower sys-power/upower-pm-utils ) )"
50 +
51 +DEPEND="${RDEPEND}
52 + dev-python/docutils
53 + >=dev-qt/linguist-tools-5.6:5
54 + >=dev-qt/qttest-5.6:5
55 + kde-frameworks/extra-cmake-modules
56 + virtual/pkgconfig"
57 +
58 +pkg_pretend() {
59 + if [[ ${MERGE_TYPE} != binary && $(tc-getCC) == *gcc* ]]; then
60 + if [[ $(gcc-major-version) -lt 4 || $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 7 ]] ; then
61 + die 'The active compiler needs to be gcc 4.7 (or newer)'
62 + fi
63 + fi
64 +}
65 +
66 +src_prepare() {
67 + eapply "${FILESDIR}/${PN}-0.13.0-pam_kwallet.patch"
68 + # fix for flags handling and bug 563108
69 + eapply "${FILESDIR}/${PN}-0.12.0-respect-user-flags.patch"
70 + use consolekit && eapply "${FILESDIR}/${P}-consolekit.patch"
71 +
72 + cmake-utils_src_prepare
73 +}
74 +
75 +src_configure() {
76 + local mycmakeargs=(
77 + -DENABLE_PAM=$(usex pam)
78 + -DNO_SYSTEMD=$(usex '!systemd')
79 + -DBUILD_MAN_PAGES=ON
80 + -DDBUS_CONFIG_FILENAME="org.freedesktop.sddm.conf"
81 + )
82 +
83 + cmake-utils_src_configure
84 +}
85 +
86 +pkg_postinst() {
87 + enewgroup ${PN}
88 + enewuser ${PN} -1 -1 /var/lib/${PN} ${PN},video
89 +
90 + if use consolekit && use pam && [[ -e "${ROOT}"/etc/pam.d/system-login ]]; then
91 + local line=$(grep "pam_ck_connector.*nox11" "${ROOT}"/etc/pam.d/system-login)
92 + if [[ -z ${line} ]]; then
93 + ewarn
94 + ewarn "Erroneous /etc/pam.d/system-login settings detected!"
95 + ewarn "Please restore 'nox11' option in the line containing pam_ck_connector:"
96 + ewarn
97 + ewarn "session optional pam_ck_connector.so nox11"
98 + ewarn
99 + ewarn "or 'emerge -1 sys-auth/pambase' and run etc-update."
100 + ewarn
101 + fi
102 + fi
103 +}