/[gentoo-x86]/x11-misc/lightdm/lightdm-1.2.2-r2.ebuild
Gentoo

Contents of /x11-misc/lightdm/lightdm-1.2.2-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Jun 24 12:31:33 2012 UTC (10 months, 3 weeks ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
old

(Portage version: 2.2.0_alpha111/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-misc/lightdm/lightdm-1.2.2-r2.ebuild,v 1.2 2012/06/21 07:37:15 yngwin Exp $
4
5 EAPI=4
6 inherit autotools eutils pam
7
8 DESCRIPTION="A lightweight display manager"
9 HOMEPAGE="http://www.freedesktop.org/wiki/Software/LightDM"
10 SRC_URI="http://launchpad.net/${PN}/${PV%.*}/${PV}/+download/${P}.tar.gz
11 mirror://gentoo/introspection-20110205.m4.tar.bz2"
12
13 LICENSE="GPL-3 LGPL-3"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="+introspection qt4"
17
18 COMMON_DEPEND="dev-libs/glib:2
19 dev-libs/libxml2
20 sys-apps/accountsservice
21 virtual/pam
22 x11-libs/libX11
23 >=x11-libs/libxklavier-5
24 introspection? ( dev-libs/gobject-introspection )
25 qt4? ( x11-libs/qt-core:4
26 x11-libs/qt-dbus:4
27 x11-libs/qt-gui:4 )"
28 RDEPEND="${COMMON_DEPEND}
29 >=sys-auth/pambase-20101024-r2"
30 DEPEND="${COMMON_DEPEND}
31 dev-util/gtk-doc-am
32 dev-util/intltool
33 gnome-base/gnome-common
34 sys-devel/gettext
35 virtual/pkgconfig"
36
37 DOCS=( NEWS )
38
39 src_prepare() {
40 sed -i -e 's:getgroups:lightdm_&:' tests/src/libsystem.c || die #412369
41 sed -i -e '/minimum-uid/s:500:1000:' data/users.conf || die
42
43 epatch "${FILESDIR}"/session-wrapper-${PN}.patch
44 epatch "${FILESDIR}/${PN}"-1.2.0-fix-configure.patch
45 epatch_user
46
47 if has_version dev-libs/gobject-introspection; then
48 eautoreconf
49 else
50 AT_M4DIR=${WORKDIR} eautoreconf
51 fi
52 }
53
54 src_configure() {
55 # Set default values if global vars unset
56 local _greeter _session _user
57 _greeter=${LIGHTDM_GREETER:=lightdm-gtk-greeter}
58 _session=${LIGHTDM_SESSION:=gnome}
59 _user=${LIGHTDM_USER:=root}
60 # Let user know how lightdm is configured
61 einfo "Gentoo configuration"
62 einfo "Default greeter: ${_greeter}"
63 einfo "Default session: ${_session}"
64 einfo "Greeter user: ${_user}"
65
66 econf --localstatedir=/var \
67 --disable-static \
68 $(use_enable introspection) \
69 $(use_enable qt4 liblightdm-qt) \
70 --with-user-session=${_session} \
71 --with-greeter-session=${_greeter} \
72 --with-greeter-user=${_user} \
73 --with-html-dir="${EPREFIX}"/usr/share/doc/${PF}/html
74 }
75
76 src_install() {
77 default
78
79 # Install missing files
80 insinto /etc/${PN}
81 doins data/{${PN},users,keys}.conf
82 doins "${FILESDIR}"/Xsession
83 fperms +x /etc/${PN}/Xsession
84
85 # Remove unnecessary files
86 prune_libtool_files --all
87 rm -rf "${ED}"/etc/init
88
89 # Install proper pam files
90 pamd_mimic system-local-login ${PN} auth account session
91 pamd_mimic system-local-login ${PN}-autologin auth account session
92 }
93
94 pkg_postinst() {
95 elog
96 elog "You will need to install a greeter as actual GUI for LightDM."
97 elog
98 elog "Even though the default /etc/${PN}/${PN}.conf will work for"
99 elog "most users, make sure you configure it to suit your needs"
100 elog "before using ${PN} for the first time."
101 elog "You can test the configuration file using the following"
102 elog "command: ${PN} --test-mode -c /etc/${PN}/${PN}.conf. This"
103 elog "requires xorg-server to be built with the 'kdrive' useflag."
104 elog
105 elog "You can also set your own default values for LIGHTDM_GREETER,"
106 elog "LIGHTDM_SESSION, LIGHTDM_USER in /etc/make.conf"
107 elog
108 }

  ViewVC Help
Powered by ViewVC 1.1.13