Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/lightdm-gtk-greeter/
Date: Thu, 06 Jul 2017 15:09:42
Message-Id: 1499353768.5841073eb6a332c2d352c5b9600c90ac2d739e61.polynomial-c@gentoo
1 commit: 5841073eb6a332c2d352c5b9600c90ac2d739e61
2 Author: Alexander Tsoy <alexander <AT> tsoy <DOT> me>
3 AuthorDate: Sun May 14 11:23:47 2017 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 6 15:09:28 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5841073e
7
8 x11-misc/lightdm-gtk-greeter: fix path to at-spi-bus-launcher
9
10 Fixes the following warning:
11 WARNING **: [PIDs] Failed to execute command: /usr/lib/at-spi2-core/at-spi-bus-launcher
12
13 Bug: https://bugs.gentoo.org/600260
14 Closes: https://github.com/gentoo/gentoo/pull/4627
15
16 .../lightdm-gtk-greeter-2.0.2-r1.ebuild | 64 ++++++++++++++++++++++
17 1 file changed, 64 insertions(+)
18
19 diff --git a/x11-misc/lightdm-gtk-greeter/lightdm-gtk-greeter-2.0.2-r1.ebuild b/x11-misc/lightdm-gtk-greeter/lightdm-gtk-greeter-2.0.2-r1.ebuild
20 new file mode 100644
21 index 00000000000..8ca89ccabce
22 --- /dev/null
23 +++ b/x11-misc/lightdm-gtk-greeter/lightdm-gtk-greeter-2.0.2-r1.ebuild
24 @@ -0,0 +1,64 @@
25 +# Copyright 1999-2016 Gentoo Foundation
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=6
29 +
30 +inherit versionator
31 +
32 +DESCRIPTION="LightDM GTK+ Greeter"
33 +HOMEPAGE="https://launchpad.net/lightdm-gtk-greeter"
34 +SRC_URI="https://launchpad.net/lightdm-gtk-greeter/$(get_version_component_range 1-2)/${PV}/+download/${P}.tar.gz
35 + branding? ( https://dev.gentoo.org/~hwoarang/distfiles/lightdm-gentoo-patch-2.tar.gz )"
36 +
37 +LICENSE="GPL-3 LGPL-3
38 + branding? ( CC-BY-3.0 )"
39 +SLOT="0"
40 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
41 +IUSE="ayatana branding"
42 +
43 +COMMON_DEPEND="ayatana? ( dev-libs/libindicator:3 )
44 + x11-libs/gtk+:3
45 + >=x11-misc/lightdm-1.2.2"
46 +
47 +DEPEND="${COMMON_DEPEND}
48 + sys-devel/gettext
49 + xfce-base/exo"
50 +
51 +RDEPEND="${COMMON_DEPEND}
52 + x11-themes/gnome-themes-standard
53 + >=x11-themes/adwaita-icon-theme-3.14.1"
54 +
55 +GENTOO_BG="gentoo-bg_65.jpg"
56 +
57 +src_prepare() {
58 + # Ok, this has to be fixed in the tarball but I am too lazy to do it.
59 + # I will fix this once I decide to update the tarball with a new gentoo
60 + # background
61 + # Bug #404467
62 + if use branding; then
63 + sed -i -e "/xft-hintstyle/s:slight:hintslight:" \
64 + "${WORKDIR}"/${PN}.conf || die
65 + fi
66 + default
67 +}
68 +
69 +src_configure() {
70 + econf --enable-kill-on-sigterm \
71 + --enable-at-spi-command="${EPREFIX}/usr/libexec/at-spi-bus-launcher --launch-immediately" \
72 + $(use_enable ayatana libindicator)
73 +}
74 +
75 +src_install() {
76 + default
77 +
78 + if use branding; then
79 + insinto /etc/lightdm/
80 + doins "${WORKDIR}"/${PN}.conf
81 + insinto /usr/share/lightdm/backgrounds/
82 + doins "${WORKDIR}"/${GENTOO_BG}
83 + sed -i -e \
84 + "/background/s:=.*:=/usr/share/lightdm/backgrounds/${GENTOO_BG}:" \
85 + "${D}"/etc/lightdm/${PN}.conf || die
86 + newdoc "${WORKDIR}"/README.txt README-background.txt
87 + fi
88 +}