Gentoo Archives: gentoo-commits

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