dev-python/nvchecker: enable py3.11
[gentoo-zh.git] / x11-misc / lightdm-slick-greeter / lightdm-slick-greeter-9999.ebuild
blobbb52b18eadc2ecafc6ea7fe2d0677f08110b510c
1 # Copyright 1999-2021 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=6
6 VALA_MIN_API_VERSION="0.34"
7 VALA_USE_DEPEND="vapigen"
9 inherit autotools gnome2-utils vala
11 DESCRIPTION="LightDM greeter forked from Unity by Linux Mint team"
12 HOMEPAGE="https://github.com/linuxmint/slick-greeter"
14 if [[ ${PV} == 9999 ]];then
15 inherit git-r3
16 SRC_URI=""
17 KEYWORDS=""
18 EGIT_REPO_URI="${HOMEPAGE}"
19 else
20 SRC_URI="${HOMEPAGE}/archive/${PV}.tar.gz -> ${P}.tar.gz"
21 KEYWORDS="~x86 ~amd64"
22 S="${WORKDIR}/${PN//lightdm-}-${PV}"
25 LICENSE="GPL-3"
26 SLOT="0"
27 IUSE=""
29 DEPEND="
30 $(vala_depend)
31 >=x11-misc/lightdm-1.12[introspection,vala]
32 >=dev-util/intltool-0.35.0
33 sys-devel/gettext
35 RDEPEND="${DEPEND}
36 x11-libs/cairo
37 media-libs/freetype
38 >=x11-libs/gtk+-3.20:3
39 media-libs/libcanberra
40 x11-libs/libXext
41 x11-libs/pixman
44 src_prepare(){
45 default_src_prepare
46 export VALAC="$(type -P valac-$(vala_best_api_version))"
47 eautoreconf
50 src_install(){
51 default_src_install
52 insinto /etc/lightdm
53 doins "${FILESDIR}/${PN//lightdm-}.conf"
56 pkg_preinst(){
57 gnome2_schemas_savelist
60 pkg_postinst(){
61 gnome2_schemas_update
62 einfo "To enable the slick-greeter support, set the greeter-session option"
63 einfo "to 'slick-greeter' in your lightdm.conf in order to get this:"
64 einfo "greeter-session=slick-greeter"
65 einfo "then, restart your session and the lightdm/xdm daemon."
68 pkg_postrm(){
69 gnome2_schemas_update