Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/lightdm-gtk-greeter/
Date: Wed, 01 Mar 2023 21:43:52
Message-Id: 1677707013.b8afea15baf635b92ba7eeb4773cff3c298d7d9c.marecki@gentoo
1 commit: b8afea15baf635b92ba7eeb4773cff3c298d7d9c
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 1 21:30:21 2023 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 1 21:43:33 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8afea15
7
8 x11-misc/lightdm-gtk-greeter: migrate to ayatana indicators
9
10 While at it, update EAPI 7 -> 8.
11
12 Closes: https://bugs.gentoo.org/898396
13 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
14
15 .../lightdm-gtk-greeter-2.0.8-r1.ebuild | 87 ++++++++++++++++++++++
16 1 file changed, 87 insertions(+)
17
18 diff --git a/x11-misc/lightdm-gtk-greeter/lightdm-gtk-greeter-2.0.8-r1.ebuild b/x11-misc/lightdm-gtk-greeter/lightdm-gtk-greeter-2.0.8-r1.ebuild
19 new file mode 100644
20 index 000000000000..0052ced4045a
21 --- /dev/null
22 +++ b/x11-misc/lightdm-gtk-greeter/lightdm-gtk-greeter-2.0.8-r1.ebuild
23 @@ -0,0 +1,87 @@
24 +# Copyright 1999-2023 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=8
28 +
29 +inherit autotools xdg-utils
30 +
31 +DESCRIPTION="LightDM GTK+ Greeter"
32 +HOMEPAGE="https://github.com/Xubuntu/lightdm-gtk-greeter"
33 +SRC_URI="https://github.com/Xubuntu/${PN}/releases/download/${P}/${P}.tar.gz
34 + branding? ( https://dev.gentoo.org/~polynomial-c/dist/lightdm-gentoo-patch-2.tar.gz )"
35 +
36 +LICENSE="GPL-3 LGPL-3
37 + branding? ( CC-BY-3.0 )"
38 +SLOT="0"
39 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86"
40 +IUSE="appindicator branding"
41 +
42 +DEPEND="x11-libs/gtk+:3
43 + >=x11-misc/lightdm-1.2.2
44 + appindicator? (
45 + dev-libs/ayatana-ido
46 + dev-libs/libayatana-indicator:3
47 + )"
48 +
49 +BDEPEND="
50 + dev-util/intltool
51 + dev-util/xfce4-dev-tools
52 + sys-devel/gettext
53 +"
54 +
55 +RDEPEND="${DEPEND}
56 + x11-themes/gnome-themes-standard
57 + >=x11-themes/adwaita-icon-theme-3.14.1"
58 +
59 +GENTOO_BG="gentoo-bg_65.jpg"
60 +
61 +src_prepare() {
62 + # Ok, this has to be fixed in the tarball but I am too lazy to do it.
63 + # I will fix this once I decide to update the tarball with a new gentoo
64 + # background
65 + # Bug #404467
66 + if use branding; then
67 + sed \
68 + -e "/xft-hintstyle/s:slight:hintslight:" \
69 + -e "/background/s:=.*:=/usr/share/lightdm/backgrounds/${GENTOO_BG}:" \
70 + -i "${WORKDIR}"/${PN}.conf || die
71 + # Add back the reboot/shutdown buttons
72 + echo 'indicators=~host;~spacer;~clock;~spacer;~session;~language;~a11y;~power;~' \
73 + >> "${WORKDIR}"/${PN}.conf || die
74 + fi
75 + default
76 +
77 + # Fix docdir
78 + sed "/^docdir/s@${PN}@${PF}@" -i data/Makefile.am || die
79 + eautoreconf
80 +}
81 +
82 +src_configure() {
83 + local myeconfargs=(
84 + --enable-kill-on-sigterm
85 + --enable-at-spi-command="${EPREFIX}/usr/libexec/at-spi-bus-launcher --launch-immediately"
86 + --with-libindicator=ayatana
87 + $(use_enable appindicator libindicator)
88 + )
89 + econf "${myeconfargs[@]}"
90 +}
91 +
92 +src_install() {
93 + default
94 +
95 + if use branding; then
96 + insinto /etc/lightdm/
97 + doins "${WORKDIR}"/${PN}.conf
98 + insinto /usr/share/lightdm/backgrounds/
99 + doins "${WORKDIR}"/${GENTOO_BG}
100 + newdoc "${WORKDIR}"/README.txt README-background.txt
101 + fi
102 +}
103 +
104 +pkg_postinst() {
105 + xdg_icon_cache_update
106 +}
107 +
108 +pkg_postrm() {
109 + xdg_icon_cache_update
110 +}