1 |
chithanh 12/01/30 12:38:52 |
2 |
|
3 |
Modified: xorg-server-1.11.2-r2.ebuild |
4 |
xorg-server-1.11.3.ebuild ChangeLog |
5 |
xorg-server-1.11.2-r1.ebuild |
6 |
Added: xorg-server-1.11.99.902.ebuild |
7 |
xorg-server-1.11.4.ebuild |
8 |
Removed: xorg-server-1.11.99.901.ebuild |
9 |
Log: |
10 |
Version bumps. Include upstream patches to address gtk+:3.3 triggered issues. Raise dependency on xkeyboard-config to avoid security bug #399347. |
11 |
|
12 |
(Portage version: 2.2.0_alpha84/cvs/Linux x86_64) |
13 |
|
14 |
Revision Changes Path |
15 |
1.7 x11-base/xorg-server/xorg-server-1.11.2-r2.ebuild |
16 |
|
17 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-base/xorg-server/xorg-server-1.11.2-r2.ebuild?rev=1.7&view=markup |
18 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-base/xorg-server/xorg-server-1.11.2-r2.ebuild?rev=1.7&content-type=text/plain |
19 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-base/xorg-server/xorg-server-1.11.2-r2.ebuild?r1=1.6&r2=1.7 |
20 |
|
21 |
Index: xorg-server-1.11.2-r2.ebuild |
22 |
=================================================================== |
23 |
RCS file: /var/cvsroot/gentoo-x86/x11-base/xorg-server/xorg-server-1.11.2-r2.ebuild,v |
24 |
retrieving revision 1.6 |
25 |
retrieving revision 1.7 |
26 |
diff -u -r1.6 -r1.7 |
27 |
--- xorg-server-1.11.2-r2.ebuild 16 Jan 2012 00:43:38 -0000 1.6 |
28 |
+++ xorg-server-1.11.2-r2.ebuild 30 Jan 2012 12:38:52 -0000 1.7 |
29 |
@@ -1,6 +1,6 @@ |
30 |
# Copyright 1999-2012 Gentoo Foundation |
31 |
# Distributed under the terms of the GNU General Public License v2 |
32 |
-# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/xorg-server-1.11.2-r2.ebuild,v 1.6 2012/01/16 00:43:38 chithanh Exp $ |
33 |
+# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/xorg-server-1.11.2-r2.ebuild,v 1.7 2012/01/30 12:38:52 chithanh Exp $ |
34 |
|
35 |
EAPI=4 |
36 |
|
37 |
@@ -30,7 +30,7 @@ |
38 |
>=x11-libs/pixman-0.21.8 |
39 |
>=x11-libs/xtrans-1.2.2 |
40 |
>=x11-misc/xbitmaps-1.0.1 |
41 |
- >=x11-misc/xkeyboard-config-1.4 |
42 |
+ >=x11-misc/xkeyboard-config-2.4.1-r3 |
43 |
dmx? ( |
44 |
x11-libs/libXt |
45 |
>=x11-libs/libdmx-1.0.99.1 |
46 |
|
47 |
|
48 |
|
49 |
1.3 x11-base/xorg-server/xorg-server-1.11.3.ebuild |
50 |
|
51 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-base/xorg-server/xorg-server-1.11.3.ebuild?rev=1.3&view=markup |
52 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-base/xorg-server/xorg-server-1.11.3.ebuild?rev=1.3&content-type=text/plain |
53 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-base/xorg-server/xorg-server-1.11.3.ebuild?r1=1.2&r2=1.3 |
54 |
|
55 |
Index: xorg-server-1.11.3.ebuild |
56 |
=================================================================== |
57 |
RCS file: /var/cvsroot/gentoo-x86/x11-base/xorg-server/xorg-server-1.11.3.ebuild,v |
58 |
retrieving revision 1.2 |
59 |
retrieving revision 1.3 |
60 |
diff -u -r1.2 -r1.3 |
61 |
--- xorg-server-1.11.3.ebuild 16 Jan 2012 00:43:38 -0000 1.2 |
62 |
+++ xorg-server-1.11.3.ebuild 30 Jan 2012 12:38:52 -0000 1.3 |
63 |
@@ -1,6 +1,6 @@ |
64 |
# Copyright 1999-2012 Gentoo Foundation |
65 |
# Distributed under the terms of the GNU General Public License v2 |
66 |
-# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/xorg-server-1.11.3.ebuild,v 1.2 2012/01/16 00:43:38 chithanh Exp $ |
67 |
+# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/xorg-server-1.11.3.ebuild,v 1.3 2012/01/30 12:38:52 chithanh Exp $ |
68 |
|
69 |
EAPI=4 |
70 |
|
71 |
@@ -30,7 +30,7 @@ |
72 |
>=x11-libs/pixman-0.21.8 |
73 |
>=x11-libs/xtrans-1.2.2 |
74 |
>=x11-misc/xbitmaps-1.0.1 |
75 |
- >=x11-misc/xkeyboard-config-1.4 |
76 |
+ >=x11-misc/xkeyboard-config-2.4.1-r3 |
77 |
dmx? ( |
78 |
x11-libs/libXt |
79 |
>=x11-libs/libdmx-1.0.99.1 |
80 |
|
81 |
|
82 |
|
83 |
1.637 x11-base/xorg-server/ChangeLog |
84 |
|
85 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-base/xorg-server/ChangeLog?rev=1.637&view=markup |
86 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-base/xorg-server/ChangeLog?rev=1.637&content-type=text/plain |
87 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-base/xorg-server/ChangeLog?r1=1.636&r2=1.637 |
88 |
|
89 |
Index: ChangeLog |
90 |
=================================================================== |
91 |
RCS file: /var/cvsroot/gentoo-x86/x11-base/xorg-server/ChangeLog,v |
92 |
retrieving revision 1.636 |
93 |
retrieving revision 1.637 |
94 |
diff -u -r1.636 -r1.637 |
95 |
--- ChangeLog 16 Jan 2012 00:43:38 -0000 1.636 |
96 |
+++ ChangeLog 30 Jan 2012 12:38:52 -0000 1.637 |
97 |
@@ -1,6 +1,18 @@ |
98 |
# ChangeLog for x11-base/xorg-server |
99 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
100 |
-# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/ChangeLog,v 1.636 2012/01/16 00:43:38 chithanh Exp $ |
101 |
+# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/ChangeLog,v 1.637 2012/01/30 12:38:52 chithanh Exp $ |
102 |
+ |
103 |
+*xorg-server-1.11.99.902 (30 Jan 2012) |
104 |
+*xorg-server-1.11.4 (30 Jan 2012) |
105 |
+ |
106 |
+ 30 Jan 2012; Chí-Thanh Christopher Nguyễn <chithanh@g.o> |
107 |
+ xorg-server-1.11.2-r1.ebuild, xorg-server-1.11.2-r2.ebuild, |
108 |
+ xorg-server-1.11.3.ebuild, +xorg-server-1.11.4.ebuild, |
109 |
+ -xorg-server-1.11.99.901.ebuild, +xorg-server-1.11.99.902.ebuild, |
110 |
+ +files/xorg-server-1.11-dix-pointerrootwin-send-focusin.patch, |
111 |
+ +files/xorg-server-1.11-dix-send-focus-events.patch: |
112 |
+ Version bumps. Include upstream patches to address gtk+:3.3 triggered issues. |
113 |
+ Raise dependency on xkeyboard-config to avoid security bug #399347. |
114 |
|
115 |
16 Jan 2012; Chí-Thanh Christopher Nguyễn <chithanh@g.o> |
116 |
xorg-server-1.11.2-r2.ebuild, xorg-server-1.11.3.ebuild, |
117 |
|
118 |
|
119 |
|
120 |
1.2 x11-base/xorg-server/xorg-server-1.11.2-r1.ebuild |
121 |
|
122 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-base/xorg-server/xorg-server-1.11.2-r1.ebuild?rev=1.2&view=markup |
123 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-base/xorg-server/xorg-server-1.11.2-r1.ebuild?rev=1.2&content-type=text/plain |
124 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-base/xorg-server/xorg-server-1.11.2-r1.ebuild?r1=1.1&r2=1.2 |
125 |
|
126 |
Index: xorg-server-1.11.2-r1.ebuild |
127 |
=================================================================== |
128 |
RCS file: /var/cvsroot/gentoo-x86/x11-base/xorg-server/xorg-server-1.11.2-r1.ebuild,v |
129 |
retrieving revision 1.1 |
130 |
retrieving revision 1.2 |
131 |
diff -u -r1.1 -r1.2 |
132 |
--- xorg-server-1.11.2-r1.ebuild 16 Nov 2011 21:49:59 -0000 1.1 |
133 |
+++ xorg-server-1.11.2-r1.ebuild 30 Jan 2012 12:38:52 -0000 1.2 |
134 |
@@ -1,6 +1,6 @@ |
135 |
-# Copyright 1999-2011 Gentoo Foundation |
136 |
+# Copyright 1999-2012 Gentoo Foundation |
137 |
# Distributed under the terms of the GNU General Public License v2 |
138 |
-# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/xorg-server-1.11.2-r1.ebuild,v 1.1 2011/11/16 21:49:59 chithanh Exp $ |
139 |
+# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/xorg-server-1.11.2-r1.ebuild,v 1.2 2012/01/30 12:38:52 chithanh Exp $ |
140 |
|
141 |
EAPI=4 |
142 |
|
143 |
@@ -29,7 +29,7 @@ |
144 |
>=x11-libs/pixman-0.21.8 |
145 |
>=x11-libs/xtrans-1.2.2 |
146 |
>=x11-misc/xbitmaps-1.0.1 |
147 |
- >=x11-misc/xkeyboard-config-1.4 |
148 |
+ >=x11-misc/xkeyboard-config-2.4.1-r3 |
149 |
dmx? ( |
150 |
x11-libs/libXt |
151 |
>=x11-libs/libdmx-1.0.99.1 |
152 |
|
153 |
|
154 |
|
155 |
1.1 x11-base/xorg-server/xorg-server-1.11.99.902.ebuild |
156 |
|
157 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-base/xorg-server/xorg-server-1.11.99.902.ebuild?rev=1.1&view=markup |
158 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-base/xorg-server/xorg-server-1.11.99.902.ebuild?rev=1.1&content-type=text/plain |
159 |
|
160 |
Index: xorg-server-1.11.99.902.ebuild |
161 |
=================================================================== |
162 |
# Copyright 1999-2012 Gentoo Foundation |
163 |
# Distributed under the terms of the GNU General Public License v2 |
164 |
# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/xorg-server-1.11.99.902.ebuild,v 1.1 2012/01/30 12:38:52 chithanh Exp $ |
165 |
|
166 |
EAPI=4 |
167 |
|
168 |
XORG_DOC=doc |
169 |
inherit xorg-2 multilib versionator |
170 |
EGIT_REPO_URI="git://anongit.freedesktop.org/git/xorg/xserver" |
171 |
|
172 |
DESCRIPTION="X.Org X servers" |
173 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" |
174 |
|
175 |
IUSE_SERVERS="dmx kdrive xnest xorg xvfb" |
176 |
IUSE="${IUSE_SERVERS} ipv6 minimal nptl tslib +udev" |
177 |
|
178 |
RDEPEND=">=app-admin/eselect-opengl-1.0.8 |
179 |
dev-libs/openssl |
180 |
media-libs/freetype |
181 |
>=x11-apps/iceauth-1.0.2 |
182 |
>=x11-apps/rgb-1.0.3 |
183 |
>=x11-apps/xauth-1.0.3 |
184 |
x11-apps/xkbcomp |
185 |
>=x11-libs/libpciaccess-0.12.901 |
186 |
>=x11-libs/libXau-1.0.4 |
187 |
>=x11-libs/libXdmcp-1.0.2 |
188 |
>=x11-libs/libXfont-1.4.2 |
189 |
>=x11-libs/libxkbfile-1.0.4 |
190 |
>=x11-libs/pixman-0.21.8 |
191 |
>=x11-libs/xtrans-1.2.2 |
192 |
>=x11-misc/xbitmaps-1.0.1 |
193 |
>=x11-misc/xkeyboard-config-2.4.1-r3 |
194 |
dmx? ( |
195 |
x11-libs/libXt |
196 |
>=x11-libs/libdmx-1.0.99.1 |
197 |
>=x11-libs/libX11-1.1.5 |
198 |
>=x11-libs/libXaw-1.0.4 |
199 |
>=x11-libs/libXext-1.0.99.4 |
200 |
>=x11-libs/libXfixes-5.0 |
201 |
>=x11-libs/libXi-1.2.99.1 |
202 |
>=x11-libs/libXmu-1.0.3 |
203 |
x11-libs/libXrender |
204 |
>=x11-libs/libXres-1.0.3 |
205 |
>=x11-libs/libXtst-1.0.99.2 |
206 |
) |
207 |
kdrive? ( |
208 |
>=x11-libs/libXext-1.0.5 |
209 |
x11-libs/libXv |
210 |
) |
211 |
!minimal? ( |
212 |
>=x11-libs/libX11-1.1.5 |
213 |
>=x11-libs/libXext-1.0.5 |
214 |
>=media-libs/mesa-7.8_rc[nptl=] |
215 |
) |
216 |
tslib? ( >=x11-libs/tslib-1.0 ) |
217 |
udev? ( >=sys-fs/udev-150 ) |
218 |
>=x11-apps/xinit-1.3" |
219 |
|
220 |
DEPEND="${RDEPEND} |
221 |
sys-devel/flex |
222 |
>=x11-proto/bigreqsproto-1.1.0 |
223 |
>=x11-proto/compositeproto-0.4 |
224 |
>=x11-proto/damageproto-1.1 |
225 |
>=x11-proto/fixesproto-5.0 |
226 |
>=x11-proto/fontsproto-2.0.2 |
227 |
>=x11-proto/glproto-1.4.14 |
228 |
>=x11-proto/inputproto-2.1.99.3 |
229 |
>=x11-proto/kbproto-1.0.3 |
230 |
>=x11-proto/randrproto-1.2.99.3 |
231 |
>=x11-proto/recordproto-1.13.99.1 |
232 |
>=x11-proto/renderproto-0.11 |
233 |
>=x11-proto/resourceproto-1.0.2 |
234 |
>=x11-proto/scrnsaverproto-1.1 |
235 |
>=x11-proto/trapproto-3.4.3 |
236 |
>=x11-proto/videoproto-2.2.2 |
237 |
>=x11-proto/xcmiscproto-1.2.0 |
238 |
>=x11-proto/xextproto-7.1.99 |
239 |
>=x11-proto/xf86dgaproto-2.0.99.1 |
240 |
>=x11-proto/xf86rushproto-1.1.2 |
241 |
>=x11-proto/xf86vidmodeproto-2.2.99.1 |
242 |
>=x11-proto/xineramaproto-1.1.3 |
243 |
>=x11-proto/xproto-7.0.22 |
244 |
dmx? ( |
245 |
>=x11-proto/dmxproto-2.2.99.1 |
246 |
doc? ( |
247 |
|| ( |
248 |
www-client/links |
249 |
www-client/lynx |
250 |
www-client/w3m |
251 |
) |
252 |
) |
253 |
) |
254 |
!minimal? ( |
255 |
>=x11-proto/xf86driproto-2.1.0 |
256 |
>=x11-proto/dri2proto-2.6 |
257 |
>=x11-libs/libdrm-2.4.20 |
258 |
)" |
259 |
|
260 |
PDEPEND=" |
261 |
xorg? ( >=x11-base/xorg-drivers-$(get_version_component_range 1-2) )" |
262 |
|
263 |
REQUIRED_USE="!minimal? ( |
264 |
|| ( ${IUSE_SERVERS} ) |
265 |
)" |
266 |
|
267 |
#UPSTREAMED_PATCHES=( |
268 |
# "${WORKDIR}/patches/" |
269 |
#) |
270 |
|
271 |
PATCHES=( |
272 |
"${UPSTREAMED_PATCHES[@]}" |
273 |
"${FILESDIR}"/${PN}-1.12-disable-acpi.patch |
274 |
) |
275 |
|
276 |
pkg_pretend() { |
277 |
# older gcc is not supported |
278 |
[[ "${MERGE_TYPE}" != "binary" && $(gcc-major-version) -lt 4 ]] && \ |
279 |
die "Sorry, but gcc earlier than 4.0 wont work for xorg-server." |
280 |
} |
281 |
|
282 |
pkg_setup() { |
283 |
xorg-2_pkg_setup |
284 |
|
285 |
# localstatedir is used for the log location; we need to override the default |
286 |
# from ebuild.sh |
287 |
# sysconfdir is used for the xorg.conf location; same applies |
288 |
# --enable-install-setuid needed because sparcs default off |
289 |
# NOTE: fop is used for doc generating ; and i have no idea if gentoo |
290 |
# package it somewhere |
291 |
XORG_CONFIGURE_OPTIONS=( |
292 |
$(use_enable ipv6) |
293 |
$(use_enable dmx) |
294 |
$(use_enable kdrive) |
295 |
$(use_enable kdrive kdrive-kbd) |
296 |
$(use_enable kdrive kdrive-mouse) |
297 |
$(use_enable kdrive kdrive-evdev) |
298 |
$(use_enable tslib) |
299 |
$(use_enable !minimal record) |
300 |
$(use_enable !minimal xfree86-utils) |
301 |
$(use_enable !minimal install-libxf86config) |
302 |
$(use_enable !minimal dri) |
303 |
$(use_enable !minimal dri2) |
304 |
$(use_enable !minimal glx) |
305 |
$(use_enable xnest) |
306 |
$(use_enable xorg) |
307 |
$(use_enable xvfb) |
308 |
$(use_enable nptl glx-tls) |
309 |
$(use_enable udev config-udev) |
310 |
$(use_with doc doxygen) |
311 |
$(use_with doc xmlto) |
312 |
--sysconfdir=/etc/X11 |
313 |
--localstatedir=/var |
314 |
--enable-install-setuid |
315 |
--with-fontrootdir=/usr/share/fonts |
316 |
--with-xkb-output=/var/lib/xkb |
317 |
--disable-config-hal |
318 |
--without-dtrace |
319 |
--without-fop |
320 |
--with-os-vendor=Gentoo |
321 |
) |
322 |
|
323 |
# Xorg-server requires includes from OS mesa which are not visible for |
324 |
# users of binary drivers. |
325 |
mkdir -p "${T}/mesa-symlinks/GL" |
326 |
for i in gl glx glxmd glxproto glxtokens; do |
327 |
ln -s "${EROOT}usr/$(get_libdir)/opengl/xorg-x11/include/$i.h" "${T}/mesa-symlinks/GL/$i.h" || die |
328 |
done |
329 |
for i in glext glxext; do |
330 |
ln -s "${EROOT}usr/$(get_libdir)/opengl/global/include/$i.h" "${T}/mesa-symlinks/GL/$i.h" || die |
331 |
done |
332 |
append-cppflags "-I${T}/mesa-symlinks" |
333 |
} |
334 |
|
335 |
src_install() { |
336 |
xorg-2_src_install |
337 |
|
338 |
dynamic_libgl_install |
339 |
|
340 |
server_based_install |
341 |
|
342 |
if ! use minimal && use xorg; then |
343 |
# Install xorg.conf.example into docs |
344 |
dodoc "${AUTOTOOLS_BUILD_DIR}"/hw/xfree86/xorg.conf.example |
345 |
fi |
346 |
|
347 |
newinitd "${FILESDIR}"/xdm-setup.initd-1 xdm-setup |
348 |
newinitd "${FILESDIR}"/xdm.initd-5 xdm |
349 |
newconfd "${FILESDIR}"/xdm.confd-4 xdm |
350 |
|
351 |
# install the @x11-module-rebuild set for Portage |
352 |
insinto /usr/share/portage/config/sets |
353 |
newins "${FILESDIR}"/xorg-sets.conf xorg.conf |
354 |
} |
355 |
|
356 |
pkg_postinst() { |
357 |
# sets up libGL and DRI2 symlinks if needed (ie, on a fresh install) |
358 |
eselect opengl set xorg-x11 --use-old |
359 |
|
360 |
if [[ ${PV} != 9999 && $(get_version_component_range 2 ${REPLACING_VERSIONS}) != $(get_version_component_range 2 ${PV}) ]]; then |
361 |
ewarn "You must rebuild all drivers if upgrading from <xorg-server-$(get_version_component_range 1-2)" |
362 |
ewarn "because the ABI changed. If you cannot start X because" |
363 |
ewarn "of module version mismatch errors, this is your problem." |
364 |
|
365 |
echo |
366 |
ewarn "You can generate a list of all installed packages in the x11-drivers" |
367 |
ewarn "category using this command:" |
368 |
ewarn " emerge portage-utils; qlist -I -C x11-drivers/" |
369 |
ewarn "or using sets from portage-2.2:" |
370 |
ewarn " emerge @x11-module-rebuild" |
371 |
fi |
372 |
} |
373 |
|
374 |
pkg_postrm() { |
375 |
# Get rid of module dir to ensure opengl-update works properly |
376 |
if [[ -z ${REPLACED_BY_VERSION} && -e ${ROOT}/usr/$(get_libdir)/xorg/modules ]]; then |
377 |
rm -rf "${ROOT}"/usr/$(get_libdir)/xorg/modules |
378 |
fi |
379 |
} |
380 |
|
381 |
dynamic_libgl_install() { |
382 |
# next section is to setup the dynamic libGL stuff |
383 |
ebegin "Moving GL files for dynamic switching" |
384 |
dodir /usr/$(get_libdir)/opengl/xorg-x11/extensions |
385 |
local x="" |
386 |
for x in "${D}"/usr/$(get_libdir)/xorg/modules/extensions/lib{glx,dri,dri2}*; do |
387 |
if [ -f ${x} -o -L ${x} ]; then |
388 |
mv -f ${x} "${D}"/usr/$(get_libdir)/opengl/xorg-x11/extensions |
389 |
fi |
390 |
done |
391 |
eend 0 |
392 |
} |
393 |
|
394 |
server_based_install() { |
395 |
if ! use xorg; then |
396 |
rm "${D}"/usr/share/man/man1/Xserver.1x \ |
397 |
"${D}"/usr/$(get_libdir)/xserver/SecurityPolicy \ |
398 |
"${D}"/usr/$(get_libdir)/pkgconfig/xorg-server.pc \ |
399 |
"${D}"/usr/share/man/man1/Xserver.1x |
400 |
fi |
401 |
} |
402 |
|
403 |
|
404 |
|
405 |
1.1 x11-base/xorg-server/xorg-server-1.11.4.ebuild |
406 |
|
407 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-base/xorg-server/xorg-server-1.11.4.ebuild?rev=1.1&view=markup |
408 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-base/xorg-server/xorg-server-1.11.4.ebuild?rev=1.1&content-type=text/plain |
409 |
|
410 |
Index: xorg-server-1.11.4.ebuild |
411 |
=================================================================== |
412 |
# Copyright 1999-2012 Gentoo Foundation |
413 |
# Distributed under the terms of the GNU General Public License v2 |
414 |
# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/xorg-server-1.11.4.ebuild,v 1.1 2012/01/30 12:38:52 chithanh Exp $ |
415 |
|
416 |
EAPI=4 |
417 |
|
418 |
XORG_DOC=doc |
419 |
XORG_EAUTORECONF=yes |
420 |
inherit xorg-2 multilib versionator |
421 |
EGIT_REPO_URI="git://anongit.freedesktop.org/git/xorg/xserver" |
422 |
|
423 |
DESCRIPTION="X.Org X servers" |
424 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" |
425 |
|
426 |
IUSE_SERVERS="dmx kdrive xnest xorg xvfb" |
427 |
IUSE="${IUSE_SERVERS} ipv6 minimal nptl tslib +udev" |
428 |
|
429 |
RDEPEND=">=app-admin/eselect-opengl-1.0.8 |
430 |
dev-libs/openssl |
431 |
media-libs/freetype |
432 |
>=x11-apps/iceauth-1.0.2 |
433 |
>=x11-apps/rgb-1.0.3 |
434 |
>=x11-apps/xauth-1.0.3 |
435 |
x11-apps/xkbcomp |
436 |
>=x11-libs/libpciaccess-0.10.3 |
437 |
>=x11-libs/libXau-1.0.4 |
438 |
>=x11-libs/libXdmcp-1.0.2 |
439 |
>=x11-libs/libXfont-1.4.2 |
440 |
>=x11-libs/libxkbfile-1.0.4 |
441 |
>=x11-libs/pixman-0.21.8 |
442 |
>=x11-libs/xtrans-1.2.2 |
443 |
>=x11-misc/xbitmaps-1.0.1 |
444 |
>=x11-misc/xkeyboard-config-2.4.1-r3 |
445 |
dmx? ( |
446 |
x11-libs/libXt |
447 |
>=x11-libs/libdmx-1.0.99.1 |
448 |
>=x11-libs/libX11-1.1.5 |
449 |
>=x11-libs/libXaw-1.0.4 |
450 |
>=x11-libs/libXext-1.0.99.4 |
451 |
>=x11-libs/libXfixes-5.0 |
452 |
>=x11-libs/libXi-1.2.99.1 |
453 |
>=x11-libs/libXmu-1.0.3 |
454 |
x11-libs/libXrender |
455 |
>=x11-libs/libXres-1.0.3 |
456 |
>=x11-libs/libXtst-1.0.99.2 |
457 |
) |
458 |
kdrive? ( |
459 |
>=x11-libs/libXext-1.0.5 |
460 |
x11-libs/libXv |
461 |
) |
462 |
!minimal? ( |
463 |
>=x11-libs/libX11-1.1.5 |
464 |
>=x11-libs/libXext-1.0.5 |
465 |
>=media-libs/mesa-7.8_rc[nptl=] |
466 |
) |
467 |
tslib? ( >=x11-libs/tslib-1.0 ) |
468 |
udev? ( >=sys-fs/udev-150 ) |
469 |
>=x11-apps/xinit-1.3" |
470 |
|
471 |
DEPEND="${RDEPEND} |
472 |
sys-devel/flex |
473 |
>=x11-proto/bigreqsproto-1.1.0 |
474 |
>=x11-proto/compositeproto-0.4 |
475 |
>=x11-proto/damageproto-1.1 |
476 |
>=x11-proto/fixesproto-5.0 |
477 |
>=x11-proto/fontsproto-2.0.2 |
478 |
>=x11-proto/glproto-1.4.14 |
479 |
>=x11-proto/inputproto-1.9.99.902 |
480 |
>=x11-proto/kbproto-1.0.3 |
481 |
>=x11-proto/randrproto-1.2.99.3 |
482 |
>=x11-proto/recordproto-1.13.99.1 |
483 |
>=x11-proto/renderproto-0.11 |
484 |
>=x11-proto/resourceproto-1.0.2 |
485 |
>=x11-proto/scrnsaverproto-1.1 |
486 |
>=x11-proto/trapproto-3.4.3 |
487 |
>=x11-proto/videoproto-2.2.2 |
488 |
>=x11-proto/xcmiscproto-1.2.0 |
489 |
>=x11-proto/xextproto-7.1.99 |
490 |
>=x11-proto/xf86dgaproto-2.0.99.1 |
491 |
>=x11-proto/xf86rushproto-1.1.2 |
492 |
>=x11-proto/xf86vidmodeproto-2.2.99.1 |
493 |
>=x11-proto/xineramaproto-1.1.3 |
494 |
>=x11-proto/xproto-7.0.22 |
495 |
dmx? ( |
496 |
>=x11-proto/dmxproto-2.2.99.1 |
497 |
doc? ( |
498 |
|| ( |
499 |
www-client/links |
500 |
www-client/lynx |
501 |
www-client/w3m |
502 |
) |
503 |
) |
504 |
) |
505 |
!minimal? ( |
506 |
>=x11-proto/xf86driproto-2.1.0 |
507 |
>=x11-proto/dri2proto-2.6 |
508 |
>=x11-libs/libdrm-2.4.20 |
509 |
)" |
510 |
|
511 |
PDEPEND=" |
512 |
xorg? ( >=x11-base/xorg-drivers-$(get_version_component_range 1-2) )" |
513 |
|
514 |
REQUIRED_USE="!minimal? ( |
515 |
|| ( ${IUSE_SERVERS} ) |
516 |
)" |
517 |
|
518 |
#UPSTREAMED_PATCHES=( |
519 |
# "${WORKDIR}/patches/" |
520 |
#) |
521 |
|
522 |
PATCHES=( |
523 |
"${UPSTREAMED_PATCHES[@]}" |
524 |
"${FILESDIR}"/${PN}-disable-acpi.patch |
525 |
"${FILESDIR}"/${PN}-1.9-nouveau-default.patch |
526 |
"${FILESDIR}"/${PN}-1.11-disable-tests-without-ddx.patch |
527 |
"${FILESDIR}"/${PN}-1.11-dix-pointerrootwin-send-focusin.patch |
528 |
"${FILESDIR}"/${PN}-1.11-dix-send-focus-events.patch |
529 |
) |
530 |
|
531 |
pkg_pretend() { |
532 |
# older gcc is not supported |
533 |
[[ "${MERGE_TYPE}" != "binary" && $(gcc-major-version) -lt 4 ]] && \ |
534 |
die "Sorry, but gcc earlier than 4.0 wont work for xorg-server." |
535 |
} |
536 |
|
537 |
pkg_setup() { |
538 |
xorg-2_pkg_setup |
539 |
|
540 |
# localstatedir is used for the log location; we need to override the default |
541 |
# from ebuild.sh |
542 |
# sysconfdir is used for the xorg.conf location; same applies |
543 |
# --enable-install-setuid needed because sparcs default off |
544 |
# NOTE: fop is used for doc generating ; and i have no idea if gentoo |
545 |
# package it somewhere |
546 |
XORG_CONFIGURE_OPTIONS=( |
547 |
$(use_enable ipv6) |
548 |
$(use_enable dmx) |
549 |
$(use_enable kdrive) |
550 |
$(use_enable kdrive kdrive-kbd) |
551 |
$(use_enable kdrive kdrive-mouse) |
552 |
$(use_enable kdrive kdrive-evdev) |
553 |
$(use_enable tslib) |
554 |
$(use_enable !minimal record) |
555 |
$(use_enable !minimal xfree86-utils) |
556 |
$(use_enable !minimal install-libxf86config) |
557 |
$(use_enable !minimal dri) |
558 |
$(use_enable !minimal dri2) |
559 |
$(use_enable !minimal glx) |
560 |
$(use_enable xnest) |
561 |
$(use_enable xorg) |
562 |
$(use_enable xvfb) |
563 |
$(use_enable nptl glx-tls) |
564 |
$(use_enable udev config-udev) |
565 |
$(use_with doc doxygen) |
566 |
$(use_with doc xmlto) |
567 |
--sysconfdir=/etc/X11 |
568 |
--localstatedir=/var |
569 |
--enable-install-setuid |
570 |
--with-fontrootdir=/usr/share/fonts |
571 |
--with-xkb-output=/var/lib/xkb |
572 |
--disable-config-hal |
573 |
--without-dtrace |
574 |
--without-fop |
575 |
--with-os-vendor=Gentoo |
576 |
) |
577 |
|
578 |
# Xorg-server requires includes from OS mesa which are not visible for |
579 |
# users of binary drivers. |
580 |
mkdir -p "${T}/mesa-symlinks/GL" |
581 |
for i in gl glx glxmd glxproto glxtokens; do |
582 |
ln -s "${EROOT}usr/$(get_libdir)/opengl/xorg-x11/include/$i.h" "${T}/mesa-symlinks/GL/$i.h" || die |
583 |
done |
584 |
for i in glext glxext; do |
585 |
ln -s "${EROOT}usr/$(get_libdir)/opengl/global/include/$i.h" "${T}/mesa-symlinks/GL/$i.h" || die |
586 |
done |
587 |
append-cppflags "-I${T}/mesa-symlinks" |
588 |
} |
589 |
|
590 |
src_install() { |
591 |
xorg-2_src_install |
592 |
|
593 |
dynamic_libgl_install |
594 |
|
595 |
server_based_install |
596 |
|
597 |
if ! use minimal && use xorg; then |
598 |
# Install xorg.conf.example into docs |
599 |
dodoc "${AUTOTOOLS_BUILD_DIR}"/hw/xfree86/xorg.conf.example |
600 |
fi |
601 |
|
602 |
newinitd "${FILESDIR}"/xdm-setup.initd-1 xdm-setup |
603 |
newinitd "${FILESDIR}"/xdm.initd-5 xdm |
604 |
newconfd "${FILESDIR}"/xdm.confd-4 xdm |
605 |
|
606 |
# install the @x11-module-rebuild set for Portage |
607 |
insinto /usr/share/portage/config/sets |
608 |
newins "${FILESDIR}"/xorg-sets.conf xorg.conf |
609 |
} |
610 |
|
611 |
pkg_postinst() { |
612 |
# sets up libGL and DRI2 symlinks if needed (ie, on a fresh install) |
613 |
eselect opengl set xorg-x11 --use-old |
614 |
|
615 |
if [[ ${PV} != 9999 && $(get_version_component_range 2 ${REPLACING_VERSIONS}) != $(get_version_component_range 2 ${PV}) ]]; then |
616 |
ewarn "You must rebuild all drivers if upgrading from <xorg-server-$(get_version_component_range 1-2)" |
617 |
ewarn "because the ABI changed. If you cannot start X because" |
618 |
ewarn "of module version mismatch errors, this is your problem." |
619 |
|
620 |
echo |
621 |
ewarn "You can generate a list of all installed packages in the x11-drivers" |
622 |
ewarn "category using this command:" |
623 |
ewarn " emerge portage-utils; qlist -I -C x11-drivers/" |
624 |
ewarn "or using sets from portage-2.2:" |
625 |
ewarn " emerge @x11-module-rebuild" |
626 |
fi |
627 |
} |
628 |
|
629 |
pkg_postrm() { |
630 |
# Get rid of module dir to ensure opengl-update works properly |
631 |
if [[ -z ${REPLACED_BY_VERSION} && -e ${ROOT}/usr/$(get_libdir)/xorg/modules ]]; then |
632 |
rm -rf "${ROOT}"/usr/$(get_libdir)/xorg/modules |
633 |
fi |
634 |
} |
635 |
|
636 |
dynamic_libgl_install() { |
637 |
# next section is to setup the dynamic libGL stuff |
638 |
ebegin "Moving GL files for dynamic switching" |
639 |
dodir /usr/$(get_libdir)/opengl/xorg-x11/extensions |
640 |
local x="" |
641 |
for x in "${D}"/usr/$(get_libdir)/xorg/modules/extensions/lib{glx,dri,dri2}*; do |
642 |
if [ -f ${x} -o -L ${x} ]; then |
643 |
mv -f ${x} "${D}"/usr/$(get_libdir)/opengl/xorg-x11/extensions |
644 |
fi |
645 |
done |
646 |
eend 0 |
647 |
} |
648 |
|
649 |
server_based_install() { |
650 |
if ! use xorg; then |
651 |
rm "${D}"/usr/share/man/man1/Xserver.1x \ |
652 |
"${D}"/usr/$(get_libdir)/xserver/SecurityPolicy \ |
653 |
"${D}"/usr/$(get_libdir)/pkgconfig/xorg-server.pc \ |
654 |
"${D}"/usr/share/man/man1/Xserver.1x |
655 |
fi |
656 |
} |