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