1 |
hwoarang 12/01/29 10:08:32 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: lightdm-1.0.6-r4.ebuild |
5 |
Log: |
6 |
Drop bundled moc files. This should allow building with multiple Qt versions. Thanks to Ben de Groot <yngwin@×××××.com>. Bug #401259 |
7 |
|
8 |
(Portage version: 2.2.0_alpha84/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.25 x11-misc/lightdm/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/lightdm/ChangeLog?rev=1.25&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/lightdm/ChangeLog?rev=1.25&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/lightdm/ChangeLog?r1=1.24&r2=1.25 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/x11-misc/lightdm/ChangeLog,v |
20 |
retrieving revision 1.24 |
21 |
retrieving revision 1.25 |
22 |
diff -u -r1.24 -r1.25 |
23 |
--- ChangeLog 13 Jan 2012 23:23:48 -0000 1.24 |
24 |
+++ ChangeLog 29 Jan 2012 10:08:31 -0000 1.25 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for x11-misc/lightdm |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/x11-misc/lightdm/ChangeLog,v 1.24 2012/01/13 23:23:48 hwoarang Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/lightdm/ChangeLog,v 1.25 2012/01/29 10:08:31 hwoarang Exp $ |
30 |
+ |
31 |
+*lightdm-1.0.6-r4 (29 Jan 2012) |
32 |
+ |
33 |
+ 29 Jan 2012; Markos Chandras <hwoarang@g.o> +lightdm-1.0.6-r4.ebuild: |
34 |
+ Drop bundled moc files. This should allow building with multiple Qt versions. |
35 |
+ Thanks to Ben de Groot <yngwin@×××××.com>. Bug #401259 |
36 |
|
37 |
13 Jan 2012; Markos Chandras <hwoarang@g.o> |
38 |
+files/lightdm-1.0.6-pkglibexec.patch, lightdm-1.0.6-r3.ebuild: |
39 |
|
40 |
|
41 |
|
42 |
1.1 x11-misc/lightdm/lightdm-1.0.6-r4.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/lightdm/lightdm-1.0.6-r4.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/lightdm/lightdm-1.0.6-r4.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: lightdm-1.0.6-r4.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2012 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/x11-misc/lightdm/lightdm-1.0.6-r4.ebuild,v 1.1 2012/01/29 10:08:32 hwoarang Exp $ |
52 |
|
53 |
EAPI=4 |
54 |
inherit autotools eutils pam |
55 |
|
56 |
DESCRIPTION="A lightweight display manager" |
57 |
HOMEPAGE="http://www.freedesktop.org/wiki/Software/LightDM" |
58 |
SRC_URI="http://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz |
59 |
mirror://gentoo/introspection-20110205.m4.tar.bz2 |
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 |
introspection? ( dev-libs/gobject-introspection ) |
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 |
gnome-base/gnome-common |
84 |
sys-devel/gettext" |
85 |
|
86 |
REQUIRED_USE="branding? ( gtk ) || ( gtk qt4 )" |
87 |
DOCS=( NEWS ) |
88 |
|
89 |
src_prepare() { |
90 |
sed -i -e "/minimum-uid/s:500:1000:" data/users.conf || die |
91 |
sed -i -e "s:gtk+-3.0:gtk+-2.0:" configure.ac || die |
92 |
epatch "${FILESDIR}"/session-wrapper-${PN}.patch |
93 |
epatch "${FILESDIR}"/${P}-pkglibexec.patch |
94 |
|
95 |
# remove bundled moc files, bug #401259 |
96 |
einfo "Removing bundled mocs" |
97 |
rm "${S}"/{liblightdm-qt,greeters/qt,tests/src}/*moc.cpp || die |
98 |
|
99 |
if has_version dev-libs/gobject-introspection; then |
100 |
eautoreconf |
101 |
else |
102 |
AT_M4DIR=${WORKDIR} eautoreconf |
103 |
fi |
104 |
} |
105 |
|
106 |
src_configure() { |
107 |
# Maybe in the future, we can support some automatic session and user |
108 |
# recognition. Until then, use default values |
109 |
local default=gnome greeter= user=root |
110 |
|
111 |
# gtk has higher priority because Qt4 interface sucks :) |
112 |
use qt4 && greeter=lightdm-qt-greeter |
113 |
use gtk && greeter=lightdm-gtk-greeter |
114 |
|
115 |
# Let user know how lightdm is configured |
116 |
einfo "Gentoo configuration" |
117 |
einfo "Default greeter: ${greeter}" |
118 |
einfo "Default session: ${default}" |
119 |
einfo "Greeter user: ${user}" |
120 |
|
121 |
# do the actual configuration |
122 |
econf --localstatedir=/var \ |
123 |
--disable-static \ |
124 |
$(use_enable introspection) \ |
125 |
$(use_enable qt4 liblightdm-qt) \ |
126 |
$(use_enable qt4 qt-greeter) \ |
127 |
$(use_enable gtk gtk-greeter) \ |
128 |
--with-user-session=${default} \ |
129 |
--with-greeter-session=${greeter} \ |
130 |
--with-greeter-user=${user} \ |
131 |
--with-html-dir="${EPREFIX}"/usr/share/doc/${PF}/html |
132 |
} |
133 |
|
134 |
src_install() { |
135 |
default |
136 |
|
137 |
# Install missing files |
138 |
insinto /etc/${PN}/ |
139 |
doins "${S}"/data/{users,keys}.conf |
140 |
doins "${FILESDIR}"/Xsession |
141 |
fperms +x /etc/${PN}/Xsession |
142 |
# remove .la files |
143 |
find "${ED}" -name "*.la" -exec rm -rf {} + |
144 |
rm -Rf "${ED}"/etc/init || die |
145 |
|
146 |
if use gtk; then |
147 |
insinto /etc/${PN}/ |
148 |
doins "${WORKDIR}"/${PN}-gtk-greeter.conf |
149 |
if use branding; then |
150 |
insinto /usr/share/${PN}/backgrounds/ |
151 |
doins "${WORKDIR}"/gentoo1024x768.png |
152 |
sed -i -e "/background/s:=.*:=/usr/share/${PN}/backgrounds/gentoo1024x768.png:" \ |
153 |
"${D}"/etc/${PN}/${PN}-gtk-greeter.conf || die |
154 |
fi |
155 |
fi |
156 |
|
157 |
dopamd "${FILESDIR}"/${PN} |
158 |
dopamd "${FILESDIR}"/${PN}-autologin |
159 |
} |
160 |
|
161 |
pkg_postinst() { |
162 |
elog |
163 |
elog "Even though the default /etc/${PN}/${PN}.conf will work for" |
164 |
elog "most users, make sure you configure it to suit your needs" |
165 |
elog "before using ${PN} for the first time." |
166 |
elog "You can test the configuration file using the following" |
167 |
elog "command: ${PN} --test-mode -c /etc/${PN}/${PN}.conf. This" |
168 |
elog "requires xorg-server to be built with the 'kdrive' useflag." |
169 |
elog |
170 |
} |