commit:     5841073eb6a332c2d352c5b9600c90ac2d739e61
Author:     Alexander Tsoy <alexander <AT> tsoy <DOT> me>
AuthorDate: Sun May 14 11:23:47 2017 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Thu Jul  6 15:09:28 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5841073e

x11-misc/lightdm-gtk-greeter: fix path to at-spi-bus-launcher

Fixes the following warning:
WARNING **: [PIDs] Failed to execute command: 
/usr/lib/at-spi2-core/at-spi-bus-launcher

Bug: https://bugs.gentoo.org/600260
Closes: https://github.com/gentoo/gentoo/pull/4627

 .../lightdm-gtk-greeter-2.0.2-r1.ebuild            | 64 ++++++++++++++++++++++
 1 file changed, 64 insertions(+)

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
new file mode 100644
index 00000000000..8ca89ccabce
--- /dev/null
+++ b/x11-misc/lightdm-gtk-greeter/lightdm-gtk-greeter-2.0.2-r1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit versionator
+
+DESCRIPTION="LightDM GTK+ Greeter"
+HOMEPAGE="https://launchpad.net/lightdm-gtk-greeter";
+SRC_URI="https://launchpad.net/lightdm-gtk-greeter/$(get_version_component_range
 1-2)/${PV}/+download/${P}.tar.gz
+       branding? ( 
https://dev.gentoo.org/~hwoarang/distfiles/lightdm-gentoo-patch-2.tar.gz )"
+
+LICENSE="GPL-3 LGPL-3
+       branding? ( CC-BY-3.0 )"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
+IUSE="ayatana branding"
+
+COMMON_DEPEND="ayatana? ( dev-libs/libindicator:3 )
+       x11-libs/gtk+:3
+       >=x11-misc/lightdm-1.2.2"
+
+DEPEND="${COMMON_DEPEND}
+       sys-devel/gettext
+       xfce-base/exo"
+
+RDEPEND="${COMMON_DEPEND}
+       x11-themes/gnome-themes-standard
+       >=x11-themes/adwaita-icon-theme-3.14.1"
+
+GENTOO_BG="gentoo-bg_65.jpg"
+
+src_prepare() {
+       # Ok, this has to be fixed in the tarball but I am too lazy to do it.
+       # I will fix this once I decide to update the tarball with a new gentoo
+       # background
+       # Bug #404467
+       if use branding; then
+               sed -i -e "/xft-hintstyle/s:slight:hintslight:" \
+                       "${WORKDIR}"/${PN}.conf || die
+       fi
+       default
+}
+
+src_configure() {
+       econf --enable-kill-on-sigterm \
+               
--enable-at-spi-command="${EPREFIX}/usr/libexec/at-spi-bus-launcher 
--launch-immediately" \
+               $(use_enable ayatana libindicator)
+}
+
+src_install() {
+       default
+
+       if use branding; then
+               insinto /etc/lightdm/
+               doins "${WORKDIR}"/${PN}.conf
+               insinto /usr/share/lightdm/backgrounds/
+               doins "${WORKDIR}"/${GENTOO_BG}
+               sed -i -e \
+                       
"/background/s:=.*:=/usr/share/lightdm/backgrounds/${GENTOO_BG}:" \
+                       "${D}"/etc/lightdm/${PN}.conf || die
+               newdoc "${WORKDIR}"/README.txt README-background.txt
+       fi
+}

Reply via email to