Gentoo Archives: gentoo-commits

From: "Markos Chandras (hwoarang)" <hwoarang@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-misc/lightdm: ChangeLog lightdm-0.9.8.ebuild lightdm-0.9.7.ebuild
Date: Sun, 25 Sep 2011 17:29:29
Message-Id: 20110925172919.60EB120036@flycatcher.gentoo.org
1 hwoarang 11/09/25 17:29:19
2
3 Modified: ChangeLog
4 Added: lightdm-0.9.8.ebuild
5 Removed: lightdm-0.9.7.ebuild
6 Log:
7 Version bump. Drop pkg_setup
8
9 (Portage version: 2.2.0_alpha55/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.9 x11-misc/lightdm/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/lightdm/ChangeLog?rev=1.9&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/lightdm/ChangeLog?rev=1.9&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/lightdm/ChangeLog?r1=1.8&r2=1.9
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/x11-misc/lightdm/ChangeLog,v
21 retrieving revision 1.8
22 retrieving revision 1.9
23 diff -u -r1.8 -r1.9
24 --- ChangeLog 17 Sep 2011 13:47:00 -0000 1.8
25 +++ ChangeLog 25 Sep 2011 17:29:18 -0000 1.9
26 @@ -1,6 +1,12 @@
27 # ChangeLog for x11-misc/lightdm
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/x11-misc/lightdm/ChangeLog,v 1.8 2011/09/17 13:47:00 hwoarang Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/lightdm/ChangeLog,v 1.9 2011/09/25 17:29:18 hwoarang Exp $
31 +
32 +*lightdm-0.9.8 (25 Sep 2011)
33 +
34 + 25 Sep 2011; Markos Chandras <hwoarang@g.o> -lightdm-0.9.7.ebuild,
35 + +lightdm-0.9.8.ebuild:
36 + Version bump. Drop pkg_setup
37
38 *lightdm-0.9.7 (17 Sep 2011)
39
40
41
42
43 1.1 x11-misc/lightdm/lightdm-0.9.8.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/lightdm/lightdm-0.9.8.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/lightdm/lightdm-0.9.8.ebuild?rev=1.1&content-type=text/plain
47
48 Index: lightdm-0.9.8.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/x11-misc/lightdm/lightdm-0.9.8.ebuild,v 1.1 2011/09/25 17:29:18 hwoarang Exp $
53
54 EAPI=4
55 inherit autotools eutils pam
56
57 DESCRIPTION="A lightweight display manager"
58 HOMEPAGE="http://www.freedesktop.org/wiki/Software/LightDM"
59 SRC_URI="http://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz
60 gtk? ( http://dev.gentoo.org/~hwoarang/distfiles/${PN}-gentoo-patch.tar.gz )"
61
62 LICENSE="GPL-3 LGPL-3"
63 SLOT="0"
64 KEYWORDS="~amd64 ~x86"
65 IUSE="branding +gtk +introspection qt4"
66
67 RDEPEND="dev-libs/glib:2
68 virtual/pam
69 x11-libs/libxklavier
70 x11-libs/libX11
71 dev-libs/libxml2
72 gtk? ( x11-libs/gtk+:3
73 x11-themes/gnome-themes-standard
74 x11-themes/gnome-icon-theme )
75 qt4? ( x11-libs/qt-core:4
76 x11-libs/qt-dbus:4 )
77 sys-apps/accountsservice"
78 DEPEND="${RDEPEND}
79 dev-lang/vala:0.12
80 dev-util/intltool
81 dev-util/pkgconfig
82 sys-devel/gettext
83 introspection? ( dev-libs/gobject-introspection )"
84
85 REQUIRED_USE="branding? ( gtk ) || ( gtk qt4 )"
86 DOCS=( NEWS )
87
88 src_prepare() {
89 # Make gtk greeter optional
90 epatch "${FILESDIR}/${PN}-0.9.7-gtk.patch"
91 # remove GNOME_COMPILE_WARNING reference which requires
92 # gnome-base/gnome-common dependency.
93 sed -i -e "/GNOME_COMPILE_WARNING/d" "${S}"/configure.ac || die
94 # Hide users with uid < 1000
95 sed -i -e "/minimum-uid/s:500:1000:" "${S}"/data/users.conf || die
96 eautoreconf
97 }
98
99 src_configure() {
100 # Maybe in the future, we can support some automatic session and user
101 # recognition. Until then, use default values
102 local default=gnome greeter= user=root
103
104 # gtk has higher priority because Qt4 interface sucks :)
105 use qt4 && greeter=lightdm-qt-greeter
106 use gtk && greeter=lightdm-gtk-greeter
107
108 # Let user know how lightdm is configured
109 einfo "Gentoo configuration"
110 einfo "Default greeter: ${greeter}"
111 einfo "Default session: ${default}"
112 einfo "Greeter user: ${user}"
113
114 # do the actual configuration
115 econf --localstatedir=/var \
116 --disable-static \
117 $(use_enable introspection) \
118 $(use_enable qt4 liblightdm-qt) \
119 $(use_enable gtk liblightdm-gtk) \
120 --with-user-session=${default} \
121 --with-greeter-session=${greeter} \
122 --with-greeter-user=${user} \
123 --with-html-dir="${EPREFIX}"/usr/share/doc/${PF}/html
124 }
125
126 src_install() {
127 default
128
129 # Install missing files
130 insinto /etc/${PN}/
131 doins "${S}"/data/{users,keys}.conf
132 # remove .la files
133 find "${ED}" -name "*.la" -exec rm -rf {} +
134 rm -Rf "${ED}"/etc/init || die
135
136 if use gtk; then
137 insinto /etc/${PN}/
138 doins "${WORKDIR}"/${PN}-gtk-greeter.conf
139 if use branding; then
140 insinto /usr/share/${PN}/backgrounds/
141 doins "${WORKDIR}"/gentoo1024x768.png
142 sed -i -e "/background/s:=.*:=/usr/share/${PN}/backgrounds/gentoo1024x768.png:" \
143 "${D}"/etc/${PN}/${PN}-gtk-greeter.conf || die
144 fi
145 fi
146 pamd_mimic system-local-login lightdm auth account session
147 }
148
149 pkg_postinst() {
150 elog
151 elog "Even though the default /etc/${PN}/${PN}.conf will work for"
152 elog "most users, make sure you configure it to suit your needs"
153 elog "before using ${PN} for the first time."
154 elog "You can test the configuration file using the following"
155 elog "command: ${PN} --test-mode -c /etc/${PN}/${PN}.conf. This"
156 elog "requires xorg-server to be built with the 'kdrive' useflag."
157 elog
158 }