1 |
remi 09/07/03 11:52:56 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: xorg-server-1.6.1.902.ebuild |
5 |
Log: |
6 |
x11-base/xorg-server: bump to 1.6.1.902, add a couple patches to tentatively fix bug #275861 |
7 |
(Portage version: 2.2_rc33/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.419 x11-base/xorg-server/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-base/xorg-server/ChangeLog?rev=1.419&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-base/xorg-server/ChangeLog?rev=1.419&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-base/xorg-server/ChangeLog?r1=1.418&r2=1.419 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/x11-base/xorg-server/ChangeLog,v |
19 |
retrieving revision 1.418 |
20 |
retrieving revision 1.419 |
21 |
diff -u -r1.418 -r1.419 |
22 |
--- ChangeLog 28 Jun 2009 17:34:33 -0000 1.418 |
23 |
+++ ChangeLog 3 Jul 2009 11:52:56 -0000 1.419 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for x11-base/xorg-server |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/ChangeLog,v 1.418 2009/06/28 17:34:33 remi Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/ChangeLog,v 1.419 2009/07/03 11:52:56 remi Exp $ |
29 |
+ |
30 |
+*xorg-server-1.6.1.902 (03 Jul 2009) |
31 |
+ |
32 |
+ 03 Jul 2009; RĂ©mi Cardona <remi@g.o> |
33 |
+ +xorg-server-1.6.1.902.ebuild: |
34 |
+ bump to 1.6.1.902, add a couple patches to tentatively fix bug #275861 |
35 |
|
36 |
*xorg-server-1.6.1.901-r5 (28 Jun 2009) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 x11-base/xorg-server/xorg-server-1.6.1.902.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-base/xorg-server/xorg-server-1.6.1.902.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-base/xorg-server/xorg-server-1.6.1.902.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: xorg-server-1.6.1.902.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2009 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/xorg-server-1.6.1.902.ebuild,v 1.1 2009/07/03 11:52:56 remi Exp $ |
51 |
|
52 |
EAPI="2" |
53 |
|
54 |
# Must be before x-modular eclass is inherited |
55 |
#SNAPSHOT="yes" |
56 |
|
57 |
inherit x-modular multilib |
58 |
|
59 |
# keithp put this one in archive/ instead of releases/ for unknown reasons |
60 |
BASE_INDIVIDUAL_URI="http://xorg.freedesktop.org/archive/individual" |
61 |
SRC_URI="${SRC_URI} |
62 |
${BASE_INDIVIDUAL_URI}/${MODULE}/${P}.tar.bz2 |
63 |
mirror://gentoo/${P}-gentoo-patches-01.tar.bz2" |
64 |
|
65 |
OPENGL_DIR="xorg-x11" |
66 |
|
67 |
DESCRIPTION="X.Org X servers" |
68 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" |
69 |
IUSE_INPUT_DEVICES=" |
70 |
input_devices_acecad |
71 |
input_devices_aiptek |
72 |
input_devices_calcomp |
73 |
input_devices_citron |
74 |
input_devices_digitaledge |
75 |
input_devices_dmc |
76 |
input_devices_dynapro |
77 |
input_devices_elo2300 |
78 |
input_devices_elographics |
79 |
input_devices_evdev |
80 |
input_devices_fpit |
81 |
input_devices_hyperpen |
82 |
input_devices_jamstudio |
83 |
input_devices_joystick |
84 |
input_devices_keyboard |
85 |
input_devices_magellan |
86 |
input_devices_microtouch |
87 |
input_devices_mouse |
88 |
input_devices_mutouch |
89 |
input_devices_palmax |
90 |
input_devices_penmount |
91 |
input_devices_spaceorb |
92 |
input_devices_summa |
93 |
input_devices_tek4957 |
94 |
input_devices_tslib |
95 |
input_devices_ur98 |
96 |
input_devices_virtualbox |
97 |
input_devices_vmmouse |
98 |
input_devices_void |
99 |
|
100 |
input_devices_synaptics |
101 |
input_devices_wacom" |
102 |
IUSE_VIDEO_CARDS=" |
103 |
video_cards_apm |
104 |
video_cards_ark |
105 |
video_cards_ast |
106 |
video_cards_chips |
107 |
video_cards_cirrus |
108 |
video_cards_dummy |
109 |
video_cards_epson |
110 |
video_cards_fbdev |
111 |
video_cards_geode |
112 |
video_cards_glint |
113 |
video_cards_i128 |
114 |
video_cards_i740 |
115 |
video_cards_intel |
116 |
video_cards_impact |
117 |
video_cards_imstt |
118 |
video_cards_mach64 |
119 |
video_cards_mga |
120 |
video_cards_neomagic |
121 |
video_cards_nv |
122 |
video_cards_r128 |
123 |
video_cards_radeon |
124 |
video_cards_radeonhd |
125 |
video_cards_rendition |
126 |
video_cards_s3 |
127 |
video_cards_s3virge |
128 |
video_cards_savage |
129 |
video_cards_siliconmotion |
130 |
video_cards_sis |
131 |
video_cards_sisusb |
132 |
video_cards_sunbw2 |
133 |
video_cards_suncg14 |
134 |
video_cards_suncg3 |
135 |
video_cards_suncg6 |
136 |
video_cards_sunffb |
137 |
video_cards_sunleo |
138 |
video_cards_suntcx |
139 |
video_cards_tdfx |
140 |
video_cards_tga |
141 |
video_cards_trident |
142 |
video_cards_tseng |
143 |
video_cards_v4l |
144 |
video_cards_vermilion |
145 |
video_cards_vesa |
146 |
video_cards_via |
147 |
video_cards_virtualbox |
148 |
video_cards_vmware |
149 |
video_cards_voodoo |
150 |
video_cards_xgi |
151 |
video_cards_fglrx |
152 |
video_cards_nvidia" |
153 |
IUSE_SERVERS="dmx kdrive xorg" |
154 |
IUSE="${IUSE_VIDEO_CARDS} |
155 |
${IUSE_INPUT_DEVICES} |
156 |
${IUSE_SERVERS} |
157 |
tslib hal ipv6 minimal nptl sdl" |
158 |
RDEPEND="hal? ( sys-apps/hal ) |
159 |
tslib? ( >=x11-libs/tslib-1.0 x11-proto/xcalibrateproto ) |
160 |
dev-libs/openssl |
161 |
>=x11-libs/libXfont-1.4.0 |
162 |
>=x11-libs/xtrans-1.2.3 |
163 |
>=x11-libs/libXau-1.0.4 |
164 |
>=x11-libs/libXext-1.0.4 |
165 |
>=x11-libs/libX11-1.1.5 |
166 |
>=x11-libs/libxkbfile-1.0.4 |
167 |
>=x11-libs/libXdmcp-1.0.2 |
168 |
>=x11-libs/libXmu-1.0.3 |
169 |
>=x11-libs/libXrender-0.9.4 |
170 |
>=x11-libs/libXi-1.2.1 |
171 |
>=x11-libs/pixman-0.14.0 |
172 |
media-libs/freetype |
173 |
>=x11-misc/xbitmaps-1.0.1 |
174 |
>=x11-misc/xkeyboard-config-1.4 |
175 |
x11-apps/xkbcomp |
176 |
>=x11-apps/iceauth-1.0.2 |
177 |
>=x11-apps/rgb-1.0.3 |
178 |
>=x11-apps/xauth-1.0.3 |
179 |
>=x11-apps/xinit-1.0.8-r3 |
180 |
>=app-admin/eselect-opengl-1.0.7 |
181 |
>=x11-libs/libXaw-1.0.5 |
182 |
>=x11-libs/libXpm-3.5.7 |
183 |
>=x11-libs/libXinerama-1.0.3 |
184 |
>=x11-libs/libpciaccess-0.10.3 |
185 |
dmx? ( |
186 |
>=x11-libs/libdmx-1.0.2 |
187 |
>=x11-libs/libXfixes-4.0.3 |
188 |
) |
189 |
!minimal? ( |
190 |
>=x11-libs/libXtst-1.0.3 |
191 |
>=x11-libs/libXres-1.0.3 |
192 |
>=media-libs/mesa-7.3_rc1[nptl=] |
193 |
) |
194 |
>=x11-libs/libxkbui-1.0.2 |
195 |
kdrive? ( sdl? ( media-libs/libsdl ) )" |
196 |
# Xres is dmx-dependent |
197 |
# Xaw is dmx-dependent |
198 |
# Xpm is dmx-dependent, pulls in Xt |
199 |
# xkbcomp is launched at startup but not checked by ./configure |
200 |
DEPEND="${RDEPEND} |
201 |
!net-dialup/dtrace |
202 |
sys-devel/flex |
203 |
>=x11-proto/randrproto-1.2.99.4 |
204 |
>=x11-proto/renderproto-0.9.3 |
205 |
>=x11-proto/fixesproto-4 |
206 |
>=x11-proto/damageproto-1.1 |
207 |
>=x11-proto/xextproto-7.0.4 |
208 |
>=x11-proto/xproto-7.0.14 |
209 |
>=x11-proto/xf86dgaproto-2.0.3 |
210 |
>=x11-proto/xf86rushproto-1.1.2 |
211 |
>=x11-proto/xf86vidmodeproto-2.2.2 |
212 |
>=x11-proto/compositeproto-0.4 |
213 |
>=x11-proto/recordproto-1.13.2 |
214 |
>=x11-proto/resourceproto-1.0.2 |
215 |
>=x11-proto/videoproto-2.2.2 |
216 |
>=x11-proto/scrnsaverproto-1.1.0 |
217 |
>=x11-proto/trapproto-3.4.3 |
218 |
>=x11-proto/xineramaproto-1.1.2 |
219 |
>=x11-proto/fontsproto-2.0.2 |
220 |
>=x11-proto/kbproto-1.0.3 |
221 |
>=x11-proto/inputproto-1.5.0 |
222 |
>=x11-proto/bigreqsproto-1.0.2 |
223 |
>=x11-proto/xcmiscproto-1.1.2 |
224 |
>=x11-proto/glproto-1.4.9 |
225 |
dmx? ( >=x11-proto/dmxproto-2.2.2 ) |
226 |
!minimal? ( |
227 |
>=x11-proto/xf86driproto-2.0.4 |
228 |
>=x11-proto/dri2proto-2.1 |
229 |
>=x11-libs/libdrm-2.3 |
230 |
)" |
231 |
|
232 |
# Drivers |
233 |
PDEPEND=" |
234 |
xorg? ( |
235 |
input_devices_acecad? ( >=x11-drivers/xf86-input-acecad-1.3.0 ) |
236 |
input_devices_aiptek? ( >=x11-drivers/xf86-input-aiptek-1.2.0 ) |
237 |
input_devices_calcomp? ( >=x11-drivers/xf86-input-calcomp-1.1.2 ) |
238 |
input_devices_citron? ( >=x11-drivers/xf86-input-citron-2.2.1 ) |
239 |
input_devices_digitaledge? ( >=x11-drivers/xf86-input-digitaledge-1.1.1 ) |
240 |
input_devices_dmc? ( >=x11-drivers/xf86-input-dmc-1.1.2 ) |
241 |
input_devices_dynapro? ( >=x11-drivers/xf86-input-dynapro-1.1.2 ) |
242 |
input_devices_elo2300? ( >=x11-drivers/xf86-input-elo2300-1.1.2 ) |
243 |
input_devices_elographics? ( >=x11-drivers/xf86-input-elographics-1.2.3 ) |
244 |
input_devices_evdev? ( >=x11-drivers/xf86-input-evdev-2.1.3 ) |
245 |
input_devices_fpit? ( >=x11-drivers/xf86-input-fpit-1.3.0 ) |
246 |
input_devices_hyperpen? ( >=x11-drivers/xf86-input-hyperpen-1.2.0 ) |
247 |
input_devices_jamstudio? ( >=x11-drivers/xf86-input-jamstudio-1.2.0 ) |
248 |
input_devices_joystick? ( >=x11-drivers/xf86-input-joystick-1.4.0 ) |
249 |
input_devices_keyboard? ( >=x11-drivers/xf86-input-keyboard-1.3.2 ) |
250 |
input_devices_magellan? ( >=x11-drivers/xf86-input-magellan-1.2.0 ) |
251 |
input_devices_microtouch? ( >=x11-drivers/xf86-input-microtouch-1.2.0 ) |
252 |
input_devices_mouse? ( >=x11-drivers/xf86-input-mouse-1.4.0 ) |
253 |
input_devices_mutouch? ( >=x11-drivers/xf86-input-mutouch-1.2.1 ) |
254 |
input_devices_palmax? ( >=x11-drivers/xf86-input-palmax-1.2.0 ) |
255 |
input_devices_penmount? ( >=x11-drivers/xf86-input-penmount-1.4.0 ) |
256 |
input_devices_spaceorb? ( >=x11-drivers/xf86-input-spaceorb-1.1.1 ) |
257 |
input_devices_summa? ( >=x11-drivers/xf86-input-summa-1.2.0 ) |
258 |
input_devices_tek4957? ( >=x11-drivers/xf86-input-tek4957-1.2.0 ) |
259 |
input_devices_tslib? ( x11-drivers/xf86-input-tslib ) |
260 |
input_devices_ur98? ( >=x11-drivers/xf86-input-ur98-1.1.0 ) |
261 |
input_devices_virtualbox? ( x11-drivers/xf86-input-virtualbox ) |
262 |
input_devices_vmmouse? ( >=x11-drivers/xf86-input-vmmouse-12.6.3 ) |
263 |
input_devices_void? ( >=x11-drivers/xf86-input-void-1.2.0 ) |
264 |
input_devices_synaptics? ( >=x11-drivers/xf86-input-synaptics-0.15.0 ) |
265 |
input_devices_wacom? ( x11-drivers/linuxwacom ) |
266 |
|
267 |
video_cards_apm? ( >=x11-drivers/xf86-video-apm-1.2.1 ) |
268 |
video_cards_ark? ( >=x11-drivers/xf86-video-ark-0.7.1 ) |
269 |
video_cards_ast? ( >=x11-drivers/xf86-video-ast-0.87.0 ) |
270 |
video_cards_chips? ( >=x11-drivers/xf86-video-chips-1.2.1 ) |
271 |
video_cards_cirrus? ( >=x11-drivers/xf86-video-cirrus-1.2.1 ) |
272 |
video_cards_dummy? ( >=x11-drivers/xf86-video-dummy-0.3.1 ) |
273 |
video_cards_fbdev? ( >=x11-drivers/xf86-video-fbdev-0.4.0 ) |
274 |
video_cards_geode? ( >=x11-drivers/xf86-video-geode-2.9.0 ) |
275 |
video_cards_glint? ( >=x11-drivers/xf86-video-glint-1.2.2 ) |
276 |
video_cards_i128? ( >=x11-drivers/xf86-video-i128-1.3.1 ) |
277 |
video_cards_i740? ( >=x11-drivers/xf86-video-i740-1.2.0 ) |
278 |
video_cards_intel? ( >=x11-drivers/xf86-video-intel-2.4.2-r1 ) |
279 |
video_cards_mach64? ( >=x11-drivers/xf86-video-mach64-6.8.0 ) |
280 |
video_cards_mga? ( >=x11-drivers/xf86-video-mga-1.4.9 ) |
281 |
video_cards_neomagic? ( >=x11-drivers/xf86-video-neomagic-1.2.2 ) |
282 |
video_cards_nv? ( >=x11-drivers/xf86-video-nv-2.1.12 ) |
283 |
video_cards_nvidia? ( x11-drivers/nvidia-drivers ) |
284 |
video_cards_fglrx? ( >=x11-drivers/ati-drivers-8.552-r2 ) |
285 |
video_cards_r128? ( >=x11-drivers/xf86-video-r128-6.8.0 ) |
286 |
video_cards_radeon? ( >=x11-drivers/xf86-video-ati-6.11.0 ) |
287 |
video_cards_radeonhd? ( >=x11-drivers/xf86-video-radeonhd-1.2.1 ) |
288 |
video_cards_rendition? ( >=x11-drivers/xf86-video-rendition-4.2.1 ) |
289 |
video_cards_s3? ( >=x11-drivers/xf86-video-s3-0.6.1 ) |
290 |
video_cards_s3virge? ( >=x11-drivers/xf86-video-s3virge-1.10.2 ) |
291 |
video_cards_savage? ( >=x11-drivers/xf86-video-savage-2.2.1 ) |
292 |
video_cards_siliconmotion? ( >=x11-drivers/xf86-video-siliconmotion-1.7.0 ) |
293 |
video_cards_sis? ( >=x11-drivers/xf86-video-sis-0.10.1 ) |
294 |
video_cards_sisusb? ( >=x11-drivers/xf86-video-sisusb-0.9.1 ) |
295 |
video_cards_sunffb? ( >=x11-drivers/xf86-video-sunffb-1.2.0 ) |
296 |
video_cards_sunleo? ( >=x11-drivers/xf86-video-sunleo-1.2.0 ) |
297 |
video_cards_tdfx? ( >=x11-drivers/xf86-video-tdfx-1.4.1 ) |
298 |
video_cards_tga? ( >=x11-drivers/xf86-video-tga-1.2.0 ) |
299 |
video_cards_trident? ( >=x11-drivers/xf86-video-trident-1.3.1 ) |
300 |
video_cards_tseng? ( >=x11-drivers/xf86-video-tseng-1.2.1 ) |
301 |
video_cards_v4l? ( >=x11-drivers/xf86-video-v4l-0.2.0 ) |
302 |
video_cards_vesa? ( >=x11-drivers/xf86-video-vesa-2.2.0 ) |
303 |
video_cards_via? ( >=x11-drivers/xf86-video-openchrome-0.2.903 ) |
304 |
video_cards_virtualbox? ( x11-drivers/xf86-video-virtualbox ) |
305 |
video_cards_vmware? ( >=x11-drivers/xf86-video-vmware-10.16.5 ) |
306 |
video_cards_voodoo? ( >=x11-drivers/xf86-video-voodoo-1.2.1 ) |
307 |
video_cards_xgi? ( >=x11-drivers/xf86-video-xgi-1.5.0 ) |
308 |
|
309 |
!x11-drivers/xf86-video-impact |
310 |
!x11-drivers/xf86-video-imstt |
311 |
!x11-drivers/xf86-video-newport |
312 |
!x11-drivers/xf86-video-sunbw2 |
313 |
!x11-drivers/xf86-video-suncg14 |
314 |
!x11-drivers/xf86-video-suncg3 |
315 |
!x11-drivers/xf86-video-suncg6 |
316 |
!x11-drivers/xf86-video-suntcx |
317 |
!x11-drivers/xf86-video-vermilion |
318 |
|
319 |
!x11-drivers/xf86-video-cyrix |
320 |
!x11-drivers/xf86-video-nsc |
321 |
!x11-drivers/xf86-video-vga |
322 |
)" |
323 |
LICENSE="${LICENSE} MIT" |
324 |
|
325 |
EPATCH_FORCE="yes" |
326 |
EPATCH_SUFFIX="patch" |
327 |
|
328 |
# Local customizations, unsuitable for upstream |
329 |
GENTOO_PATCHES=( |
330 |
"${FILESDIR}/1.4-fpic-libxf86config.patch" |
331 |
) |
332 |
|
333 |
# These have been sent upstream |
334 |
UPSTREAMED_PATCHES=( |
335 |
"${WORKDIR}/patches/" |
336 |
) |
337 |
|
338 |
PATCHES=( |
339 |
"${GENTOO_PATCHES[@]}" |
340 |
"${UPSTREAMED_PATCHES[@]}" |
341 |
) |
342 |
|
343 |
pkg_setup() { |
344 |
use minimal || ensure_a_server_is_building |
345 |
|
346 |
# SDL only available in kdrive build |
347 |
if use kdrive && use sdl; then |
348 |
conf_opts="${conf_opts} --enable-xsdl" |
349 |
else |
350 |
conf_opts="${conf_opts} --disable-xsdl" |
351 |
fi |
352 |
|
353 |
# localstatedir is used for the log location; we need to override the default |
354 |
# from ebuild.sh |
355 |
# sysconfdir is used for the xorg.conf location; same applies |
356 |
# --enable-install-setuid needed because sparcs default off |
357 |
CONFIGURE_OPTIONS=" |
358 |
$(use_enable ipv6) |
359 |
$(use_enable dmx) |
360 |
$(use_enable kdrive) |
361 |
$(use_enable tslib) |
362 |
$(use_enable tslib xcalibrate) |
363 |
$(use_enable !minimal xvfb) |
364 |
$(use_enable !minimal xnest) |
365 |
$(use_enable !minimal record) |
366 |
$(use_enable !minimal xfree86-utils) |
367 |
$(use_enable !minimal install-libxf86config) |
368 |
$(use_enable !minimal dri) |
369 |
$(use_enable !minimal dri2) |
370 |
$(use_enable !minimal glx) |
371 |
$(use_enable xorg) |
372 |
$(use_enable nptl glx-tls) |
373 |
$(use_enable hal config-dbus) |
374 |
$(use_enable hal config-hal) |
375 |
--sysconfdir=/etc/X11 |
376 |
--localstatedir=/var |
377 |
--enable-install-setuid |
378 |
--with-fontdir=/usr/share/fonts |
379 |
--with-xkb-output=/var/lib/xkb |
380 |
--without-dtrace |
381 |
${conf_opts}" |
382 |
|
383 |
# (#121394) Causes window corruption |
384 |
filter-flags -fweb |
385 |
|
386 |
# Incompatible with GCC 3.x SSP on x86, bug #244352 |
387 |
if use x86 ; then |
388 |
if [[ $(gcc-major-version) -lt 4 ]]; then |
389 |
filter-flags -fstack-protector |
390 |
fi |
391 |
fi |
392 |
|
393 |
OLD_IMPLEM="$(eselect opengl show)" |
394 |
eselect opengl set --impl-headers ${OPENGL_DIR} |
395 |
} |
396 |
|
397 |
src_prepare() { |
398 |
x-modular_patch_source |
399 |
|
400 |
if use hal; then |
401 |
sed -i \ |
402 |
-e "s:^\(dbusconfigdir = \).*\(dbus-1.*\):\1/etc/\2:g" \ |
403 |
"${S}"/config/Makefile.am \ |
404 |
|| die "failed to fix DBUS config directory" |
405 |
SNAPSHOT="yes" |
406 |
fi |
407 |
|
408 |
x-modular_reconf_source |
409 |
} |
410 |
|
411 |
src_install() { |
412 |
x-modular_src_install |
413 |
|
414 |
dynamic_libgl_install |
415 |
|
416 |
server_based_install |
417 |
|
418 |
# Install video mode files for system-config-display |
419 |
insinto /usr/share/xorg |
420 |
doins hw/xfree86/common/{extra,vesa}modes \ |
421 |
|| die "couldn't install extra modes" |
422 |
|
423 |
# Bug #151421 - this file is not built with USE="minimal" |
424 |
# Bug #151670 - this file is also not build if USE="-xorg" |
425 |
if ! use minimal && use xorg; then |
426 |
# Install xorg.conf.example |
427 |
insinto /etc/X11 |
428 |
doins hw/xfree86/xorg.conf.example \ |
429 |
|| die "couldn't install xorg.conf.example" |
430 |
fi |
431 |
} |
432 |
|
433 |
pkg_postinst() { |
434 |
switch_opengl_implem |
435 |
|
436 |
# Bug #135544 |
437 |
ewarn "Users of reduced blanking now need:" |
438 |
ewarn " Option \"ReducedBlanking\"" |
439 |
ewarn "In the relevant Monitor section(s)." |
440 |
ewarn "Make sure your reduced blanking modelines are safe!" |
441 |
|
442 |
echo |
443 |
ewarn "You must rebuild all drivers if upgrading from xorg-server 1.5" |
444 |
ewarn "or earlier, because the ABI changed. If you cannot start X because" |
445 |
ewarn "of module version mismatch errors, this is your problem." |
446 |
|
447 |
echo |
448 |
ewarn "You can generate a list of all installed packages in the x11-drivers" |
449 |
ewarn "category using this command:" |
450 |
ewarn "emerge portage-utils; qlist -I -C x11-drivers/" |
451 |
|
452 |
ebeep 5 |
453 |
epause 10 |
454 |
} |
455 |
|
456 |
pkg_postrm() { |
457 |
# Get rid of module dir to ensure opengl-update works properly |
458 |
if ! has_version x11-base/xorg-server; then |
459 |
if [[ -e ${ROOT}/usr/$(get_libdir)/xorg/modules ]]; then |
460 |
rm -rf "${ROOT}"/usr/$(get_libdir)/xorg/modules |
461 |
fi |
462 |
fi |
463 |
} |
464 |
|
465 |
dynamic_libgl_install() { |
466 |
# next section is to setup the dynamic libGL stuff |
467 |
ebegin "Moving GL files for dynamic switching" |
468 |
dodir /usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions |
469 |
local x="" |
470 |
for x in "${D}"/usr/$(get_libdir)/xorg/modules/extensions/lib{glx,dri}*; do |
471 |
if [ -f ${x} -o -L ${x} ]; then |
472 |
mv -f ${x} "${D}"/usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions |
473 |
fi |
474 |
done |
475 |
eend 0 |
476 |
} |
477 |
|
478 |
server_based_install() { |
479 |
if ! use xorg; then |
480 |
rm "${D}"/usr/share/man/man1/Xserver.1x \ |
481 |
"${D}"/usr/$(get_libdir)/xserver/SecurityPolicy \ |
482 |
"${D}"/usr/$(get_libdir)/pkgconfig/xorg-server.pc \ |
483 |
"${D}"/usr/share/man/man1/Xserver.1x |
484 |
fi |
485 |
} |
486 |
|
487 |
switch_opengl_implem() { |
488 |
# Switch to the xorg implementation. |
489 |
# Use new opengl-update that will not reset user selected |
490 |
# OpenGL interface ... |
491 |
echo |
492 |
eselect opengl set ${OLD_IMPLEM} |
493 |
} |
494 |
|
495 |
ensure_a_server_is_building() { |
496 |
for server in ${IUSE_SERVERS}; do |
497 |
use ${server} && return; |
498 |
done |
499 |
eerror "You need to specify at least one server to build." |
500 |
eerror "Valid servers are: ${IUSE_SERVERS}." |
501 |
die "No servers were specified to build." |
502 |
} |