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