blob: 6c30951d784d0159c9cd2eae0ed20df319f4609d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
inherit versionator
DESCRIPTION="LightDM GTK+ Greeter"
HOMEPAGE="http://launchpad.net/lightdm-gtk-greeter"
SRC_URI="http://launchpad.net/lightdm-gtk-greeter/$(get_version_component_range 1-2)/${PV}/+download/${P}.tar.gz"
LICENSE="GPL-3 LGPL-3"
SLOT="0"
KEYWORDS="amd64 ~arm ~ppc x86"
IUSE=""
# This ebuild needs custom RogentOS themes, thus it must depend on rogentos-artwork-core
DEPEND="x11-libs/gtk+:3
>=x11-misc/lightdm-1.2.2"
RDEPEND="!!<x11-misc/lightdm-1.1.1
app-admin/eselect-lightdm
x11-libs/gtk+:3
>=x11-misc/lightdm-1.2.2
x11-themes/gnome-themes-standard
x11-themes/gnome-icon-theme
x11-themes/rogentos-artwork-core"
src_prepare() {
# Apply custom RogentOS theme
sed -i \
-e 's:#background=.*:background=/usr/share/backgrounds/kgdm.png:' \
-e 's:#show-language-selector=.*:show-language-selector=true:' \
-e 's:#xft-hintstyle=.*:xft-hintstyle=hintfull:' \
-e 's:#xft-antialias=.*:xft-antialias=true:' \
-e 's:#xft-rgba=.*:xft-rgba=rgb:' "data/${PN}.conf" || die
}
pkg_postinst() {
# Make sure to have a greeter properly configured
eselect lightdm set lightdm-gtk-greeter --use-old
}
pkg_postrm() {
eselect lightdm set 1 # hope some other greeter is installed
}
|