1 |
dberkholz 08/10/14 17:15:42 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: xorg-server-1.5.2.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
(Portage version: 2.2_rc12/cvs/Linux 2.6.27-rc9 x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.358 x11-base/xorg-server/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-base/xorg-server/ChangeLog?rev=1.358&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-base/xorg-server/ChangeLog?rev=1.358&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-base/xorg-server/ChangeLog?r1=1.357&r2=1.358 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/x11-base/xorg-server/ChangeLog,v |
19 |
retrieving revision 1.357 |
20 |
retrieving revision 1.358 |
21 |
diff -u -r1.357 -r1.358 |
22 |
--- ChangeLog 3 Oct 2008 09:02:41 -0000 1.357 |
23 |
+++ ChangeLog 14 Oct 2008 17:15:42 -0000 1.358 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for x11-base/xorg-server |
26 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/ChangeLog,v 1.357 2008/10/03 09:02:41 armin76 Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/ChangeLog,v 1.358 2008/10/14 17:15:42 dberkholz Exp $ |
29 |
+ |
30 |
+*xorg-server-1.5.2 (14 Oct 2008) |
31 |
+ |
32 |
+ 14 Oct 2008; Donnie Berkholz <dberkholz@g.o>; |
33 |
+ +xorg-server-1.5.2.ebuild: |
34 |
+ Version bump. |
35 |
|
36 |
03 Oct 2008; Raúl Porcel <armin76@g.o> xorg-server-1.5.1.ebuild: |
37 |
Add ~ia64 wrt #237411 |
38 |
|
39 |
|
40 |
|
41 |
1.1 x11-base/xorg-server/xorg-server-1.5.2.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-base/xorg-server/xorg-server-1.5.2.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-base/xorg-server/xorg-server-1.5.2.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: xorg-server-1.5.2.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2008 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.5.2.ebuild,v 1.1 2008/10/14 17:15:42 dberkholz Exp $ |
51 |
|
52 |
# Must be before x-modular eclass is inherited |
53 |
SNAPSHOT="yes" |
54 |
|
55 |
inherit x-modular multilib |
56 |
|
57 |
OPENGL_DIR="xorg-x11" |
58 |
|
59 |
SRC_URI="${SRC_URI} |
60 |
http://xorg.freedesktop.org/releases/individual/xserver/${P}.tar.bz2" |
61 |
DESCRIPTION="X.Org X servers" |
62 |
KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86 ~x86-fbsd" |
63 |
IUSE_INPUT_DEVICES=" |
64 |
input_devices_acecad |
65 |
input_devices_aiptek |
66 |
input_devices_calcomp |
67 |
input_devices_citron |
68 |
input_devices_digitaledge |
69 |
input_devices_dmc |
70 |
input_devices_dynapro |
71 |
input_devices_elo2300 |
72 |
input_devices_elographics |
73 |
input_devices_evdev |
74 |
input_devices_fpit |
75 |
input_devices_hyperpen |
76 |
input_devices_jamstudio |
77 |
input_devices_joystick |
78 |
input_devices_keyboard |
79 |
input_devices_magellan |
80 |
input_devices_microtouch |
81 |
input_devices_mouse |
82 |
input_devices_mutouch |
83 |
input_devices_palmax |
84 |
input_devices_penmount |
85 |
input_devices_spaceorb |
86 |
input_devices_summa |
87 |
input_devices_tek4957 |
88 |
input_devices_ur98 |
89 |
input_devices_vmmouse |
90 |
input_devices_void |
91 |
|
92 |
input_devices_synaptics |
93 |
input_devices_wacom" |
94 |
IUSE_VIDEO_CARDS=" |
95 |
video_cards_apm |
96 |
video_cards_ark |
97 |
video_cards_ast |
98 |
video_cards_chips |
99 |
video_cards_cirrus |
100 |
video_cards_cyrix |
101 |
video_cards_dummy |
102 |
video_cards_epson |
103 |
video_cards_fbdev |
104 |
video_cards_geode |
105 |
video_cards_glint |
106 |
video_cards_i128 |
107 |
video_cards_i740 |
108 |
video_cards_i810 |
109 |
video_cards_impact |
110 |
video_cards_imstt |
111 |
video_cards_mach64 |
112 |
video_cards_mga |
113 |
video_cards_neomagic |
114 |
video_cards_newport |
115 |
video_cards_nsc |
116 |
video_cards_nv |
117 |
video_cards_r128 |
118 |
video_cards_radeon |
119 |
video_cards_radeonhd |
120 |
video_cards_rendition |
121 |
video_cards_s3 |
122 |
video_cards_s3virge |
123 |
video_cards_savage |
124 |
video_cards_siliconmotion |
125 |
video_cards_sis |
126 |
video_cards_sisusb |
127 |
video_cards_sunbw2 |
128 |
video_cards_suncg14 |
129 |
video_cards_suncg3 |
130 |
video_cards_suncg6 |
131 |
video_cards_sunffb |
132 |
video_cards_sunleo |
133 |
video_cards_suntcx |
134 |
video_cards_tdfx |
135 |
video_cards_tga |
136 |
video_cards_trident |
137 |
video_cards_tseng |
138 |
video_cards_v4l |
139 |
video_cards_vermilion |
140 |
video_cards_vesa |
141 |
video_cards_vga |
142 |
video_cards_via |
143 |
video_cards_vmware |
144 |
video_cards_voodoo |
145 |
video_cards_xgi |
146 |
video_cards_fglrx |
147 |
video_cards_nvidia" |
148 |
IUSE_SERVERS="dmx kdrive xorg" |
149 |
IUSE="${IUSE_VIDEO_CARDS} |
150 |
${IUSE_INPUT_DEVICES} |
151 |
${IUSE_SERVERS} |
152 |
3dfx |
153 |
dri hal ipv6 minimal nptl sdl" |
154 |
RDEPEND="hal? ( sys-apps/hal ) |
155 |
>=x11-libs/libXfont-1.3.3 |
156 |
>=x11-libs/xtrans-1.2.1 |
157 |
>=x11-libs/libXau-1.0.4 |
158 |
>=x11-libs/libXext-1.0.4 |
159 |
>=x11-libs/libX11-1.1.5 |
160 |
>=x11-libs/libxkbfile-1.0.4 |
161 |
>=x11-libs/libXdmcp-1.0.2 |
162 |
>=x11-libs/libXmu-1.0.3 |
163 |
>=x11-libs/libXrender-0.9.4 |
164 |
>=x11-libs/libXi-1.1.3 |
165 |
>=x11-libs/pixman-0.12 |
166 |
media-libs/freetype |
167 |
>=media-libs/mesa-7.1 |
168 |
media-fonts/font-adobe-75dpi |
169 |
media-fonts/font-misc-misc |
170 |
media-fonts/font-cursor-misc |
171 |
>=x11-misc/xbitmaps-1.0.1 |
172 |
>=x11-misc/xkeyboard-config-1.3 |
173 |
>=x11-apps/iceauth-1.0.2 |
174 |
>=x11-apps/rgb-1.0.3 |
175 |
>=x11-apps/xauth-1.0.3 |
176 |
>=x11-apps/xinit-1.0.8-r3 |
177 |
app-admin/eselect-opengl |
178 |
>=x11-libs/libXaw-1.0.4 |
179 |
>=x11-libs/libXpm-3.5.7 |
180 |
>=x11-libs/libXxf86misc-1.0.1 |
181 |
>=x11-libs/libXxf86vm-1.0.2 |
182 |
>=x11-libs/libpciaccess-0.10.3 |
183 |
dmx? ( >=x11-libs/libdmx-1.0.2 |
184 |
>=x11-libs/libXfixes-4.0.3 ) |
185 |
!minimal? ( >=x11-libs/libXtst-1.0.3 |
186 |
>=x11-libs/libXres-1.0.3 ) |
187 |
>=x11-libs/libxkbui-1.0.2 |
188 |
>=x11-libs/liblbxutil-1.0.1 |
189 |
kdrive? ( sdl? ( media-libs/libsdl ) )" |
190 |
# Xres is dmx-dependent, xkbui is xorgcfg-dependent |
191 |
# Xaw is dmx- and xorgcfg-dependent |
192 |
# Xpm is dmx- and xorgcfg-dependent, pulls in Xt |
193 |
# Xxf86misc and Xxf86vm are xorgcfg-dependent |
194 |
# liblbxutil is lbx- dependent |
195 |
DEPEND="${RDEPEND} |
196 |
!net-dialup/dtrace |
197 |
>=x11-proto/randrproto-1.2.2 |
198 |
>=x11-proto/renderproto-0.9.3 |
199 |
>=x11-proto/fixesproto-4 |
200 |
>=x11-proto/damageproto-1.1 |
201 |
>=x11-proto/xextproto-7.0.3 |
202 |
>=x11-proto/xproto-7.0.13 |
203 |
>=x11-proto/xf86dgaproto-2.0.3 |
204 |
>=x11-proto/xf86miscproto-0.9.2 |
205 |
>=x11-proto/xf86rushproto-1.1.2 |
206 |
>=x11-proto/xf86vidmodeproto-2.2.2 |
207 |
>=x11-proto/xf86bigfontproto-1.1.2 |
208 |
>=x11-proto/compositeproto-0.4 |
209 |
>=x11-proto/recordproto-1.13.2 |
210 |
>=x11-proto/resourceproto-1.0.2 |
211 |
>=x11-proto/videoproto-2.2.2 |
212 |
>=x11-proto/scrnsaverproto-1.1.0 |
213 |
>=x11-proto/evieext-1.0.2 |
214 |
>=x11-proto/trapproto-3.4.3 |
215 |
>=x11-proto/xineramaproto-1.1.2 |
216 |
>=x11-proto/fontsproto-2.0.2 |
217 |
>=x11-proto/kbproto-1.0.3 |
218 |
>=x11-proto/inputproto-1.4.4 |
219 |
>=x11-proto/bigreqsproto-1.0.2 |
220 |
>=x11-proto/xcmiscproto-1.1.2 |
221 |
>=x11-proto/glproto-1.4.9 |
222 |
dmx? ( >=x11-proto/dmxproto-2.2.2 ) |
223 |
dri? ( >=x11-proto/xf86driproto-2.0.4 |
224 |
>=x11-libs/libdrm-2.3 )" |
225 |
|
226 |
# Drivers |
227 |
PDEPEND=" |
228 |
xorg? ( |
229 |
input_devices_acecad? ( >=x11-drivers/xf86-input-acecad-1.2.2 ) |
230 |
input_devices_aiptek? ( >=x11-drivers/xf86-input-aiptek-1.1.1 ) |
231 |
input_devices_calcomp? ( >=x11-drivers/xf86-input-calcomp-1.1.2 ) |
232 |
input_devices_citron? ( >=x11-drivers/xf86-input-citron-2.2.1 ) |
233 |
input_devices_digitaledge? ( >=x11-drivers/xf86-input-digitaledge-1.1.1 ) |
234 |
input_devices_dmc? ( >=x11-drivers/xf86-input-dmc-1.1.2 ) |
235 |
input_devices_dynapro? ( >=x11-drivers/xf86-input-dynapro-1.1.2 ) |
236 |
input_devices_elo2300? ( >=x11-drivers/xf86-input-elo2300-1.1.2 ) |
237 |
input_devices_elographics? ( >=x11-drivers/xf86-input-elographics-1.2.2 ) |
238 |
input_devices_evdev? ( >=x11-drivers/xf86-input-evdev-2.0.2 ) |
239 |
input_devices_fpit? ( >=x11-drivers/xf86-input-fpit-1.2.0 ) |
240 |
input_devices_hyperpen? ( >=x11-drivers/xf86-input-hyperpen-1.2.0 ) |
241 |
input_devices_jamstudio? ( >=x11-drivers/xf86-input-jamstudio-1.2.0 ) |
242 |
input_devices_joystick? ( >=x11-drivers/xf86-input-joystick-1.3.2 ) |
243 |
input_devices_keyboard? ( >=x11-drivers/xf86-input-keyboard-1.3.1 ) |
244 |
input_devices_magellan? ( >=x11-drivers/xf86-input-magellan-1.2.0 ) |
245 |
input_devices_microtouch? ( >=x11-drivers/xf86-input-microtouch-1.2.0 ) |
246 |
input_devices_mouse? ( >=x11-drivers/xf86-input-mouse-1.3.0 ) |
247 |
input_devices_mutouch? ( >=x11-drivers/xf86-input-mutouch-1.2.0 ) |
248 |
input_devices_palmax? ( >=x11-drivers/xf86-input-palmax-1.2.0 ) |
249 |
input_devices_penmount? ( >=x11-drivers/xf86-input-penmount-1.3.0 ) |
250 |
input_devices_spaceorb? ( >=x11-drivers/xf86-input-spaceorb-1.1.1 ) |
251 |
input_devices_summa? ( >=x11-drivers/xf86-input-summa-1.2.0 ) |
252 |
input_devices_tek4957? ( >=x11-drivers/xf86-input-tek4957-1.2.0 ) |
253 |
input_devices_ur98? ( >=x11-drivers/xf86-input-ur98-1.1.0 ) |
254 |
input_devices_vmmouse? ( >=x11-drivers/xf86-input-vmmouse-12.5.0 ) |
255 |
input_devices_void? ( >=x11-drivers/xf86-input-void-1.1.1 ) |
256 |
input_devices_synaptics? ( >=x11-drivers/xf86-input-synaptics-0.15.0 ) |
257 |
input_devices_wacom? ( x11-drivers/linuxwacom ) |
258 |
|
259 |
video_cards_apm? ( >=x11-drivers/xf86-video-apm-1.2.0 ) |
260 |
video_cards_ark? ( >=x11-drivers/xf86-video-ark-0.7.0 ) |
261 |
video_cards_ast? ( >=x11-drivers/xf86-video-ast-0.85.0 ) |
262 |
video_cards_chips? ( >=x11-drivers/xf86-video-chips-1.2.0 ) |
263 |
video_cards_cirrus? ( >=x11-drivers/xf86-video-cirrus-1.2.1 ) |
264 |
video_cards_dummy? ( >=x11-drivers/xf86-video-dummy-0.3.0 ) |
265 |
video_cards_fbdev? ( >=x11-drivers/xf86-video-fbdev-0.4.0 ) |
266 |
video_cards_geode? ( >=x11-drivers/xf86-video-geode-2.9.0 ) |
267 |
video_cards_glint? ( >=x11-drivers/xf86-video-glint-1.2.1 ) |
268 |
video_cards_i128? ( >=x11-drivers/xf86-video-i128-1.3.1 ) |
269 |
video_cards_i740? ( >=x11-drivers/xf86-video-i740-1.2.0 ) |
270 |
video_cards_i810? ( >=x11-drivers/xf86-video-i810-2.4.2-r1 ) |
271 |
video_cards_mach64? ( >=x11-drivers/xf86-video-mach64-6.8.0 ) |
272 |
video_cards_mga? ( >=x11-drivers/xf86-video-mga-1.4.9 ) |
273 |
video_cards_neomagic? ( >=x11-drivers/xf86-video-neomagic-1.2.1 ) |
274 |
video_cards_nv? ( >=x11-drivers/xf86-video-nv-2.1.12 ) |
275 |
video_cards_nvidia? ( >=x11-drivers/nvidia-drivers-173.14.09 ) |
276 |
video_cards_r128? ( >=x11-drivers/xf86-video-r128-6.8.0 ) |
277 |
video_cards_radeon? ( >=x11-drivers/xf86-video-ati-6.9.0 ) |
278 |
video_cards_radeonhd? ( >=x11-drivers/xf86-video-radeonhd-1.2.1 ) |
279 |
video_cards_rendition? ( >=x11-drivers/xf86-video-rendition-4.2.0 ) |
280 |
video_cards_s3? ( >=x11-drivers/xf86-video-s3-0.6.0 ) |
281 |
video_cards_s3virge? ( >=x11-drivers/xf86-video-s3virge-1.10.1 ) |
282 |
video_cards_savage? ( >=x11-drivers/xf86-video-savage-2.2.1 ) |
283 |
video_cards_siliconmotion? ( >=x11-drivers/xf86-video-siliconmotion-1.6.0 ) |
284 |
video_cards_sis? ( >=x11-drivers/xf86-video-sis-0.10.0 ) |
285 |
video_cards_sisusb? ( >=x11-drivers/xf86-video-sisusb-0.9.0 ) |
286 |
video_cards_sunffb? ( >=x11-drivers/xf86-video-sunffb-1.2.0 ) |
287 |
video_cards_sunleo? ( >=x11-drivers/xf86-video-sunleo-1.2.0 ) |
288 |
video_cards_tdfx? ( >=x11-drivers/xf86-video-tdfx-1.4.0 ) |
289 |
video_cards_tga? ( >=x11-drivers/xf86-video-tga-1.2.0 ) |
290 |
video_cards_trident? ( >=x11-drivers/xf86-video-trident-1.3.0 ) |
291 |
video_cards_tseng? ( >=x11-drivers/xf86-video-tseng-1.2.0 ) |
292 |
video_cards_v4l? ( >=x11-drivers/xf86-video-v4l-0.2.0 ) |
293 |
video_cards_vesa? ( >=x11-drivers/xf86-video-vesa-2.0.0 ) |
294 |
video_cards_via? ( >=x11-drivers/xf86-video-openchrome-0.2.903 ) |
295 |
video_cards_vmware? ( >=x11-drivers/xf86-video-vmware-10.16.5 ) |
296 |
video_cards_voodoo? ( >=x11-drivers/xf86-video-voodoo-1.2.0 ) |
297 |
video_cards_xgi? ( >=x11-drivers/xf86-video-xgi-1.5.0 ) |
298 |
|
299 |
video_cards_tdfx? ( 3dfx? ( >=media-libs/glide-v3-3.10 ) ) |
300 |
!x11-drivers/ati-drivers |
301 |
|
302 |
!x11-drivers/xf86-video-impact |
303 |
!x11-drivers/xf86-video-imstt |
304 |
!x11-drivers/xf86-video-newport |
305 |
!x11-drivers/xf86-video-sunbw2 |
306 |
!x11-drivers/xf86-video-suncg14 |
307 |
!x11-drivers/xf86-video-suncg3 |
308 |
!x11-drivers/xf86-video-suncg6 |
309 |
!x11-drivers/xf86-video-suntcx |
310 |
!x11-drivers/xf86-video-vermilion |
311 |
|
312 |
!x11-drivers/xf86-video-cyrix |
313 |
!x11-drivers/xf86-video-nsc |
314 |
!x11-drivers/xf86-video-vga |
315 |
)" |
316 |
LICENSE="${LICENSE} MIT" |
317 |
|
318 |
EPATCH_FORCE="yes" |
319 |
EPATCH_SUFFIX="patch" |
320 |
|
321 |
# Local customizations, unsuitable for upstream |
322 |
GENTOO_PATCHES=( |
323 |
"${FILESDIR}/1.4-fpic-libxf86config.patch" |
324 |
"${FILESDIR}/1.4-fix-kdrive-automake.patch" |
325 |
) |
326 |
|
327 |
# These have been sent upstream |
328 |
UPSTREAMED_PATCHES=( |
329 |
) |
330 |
|
331 |
PATCHES=( |
332 |
"${GENTOO_PATCHES[@]}" |
333 |
"${UPSTREAMED_PATCHES[@]}" |
334 |
) |
335 |
|
336 |
pkg_setup() { |
337 |
use minimal || ensure_a_server_is_building |
338 |
|
339 |
# SDL only available in kdrive build |
340 |
if use kdrive && use sdl; then |
341 |
conf_opts="${conf_opts} --enable-xsdl" |
342 |
else |
343 |
conf_opts="${conf_opts} --disable-xsdl" |
344 |
fi |
345 |
|
346 |
# localstatedir is used for the log location; we need to override the default |
347 |
# from ebuild.sh |
348 |
# sysconfdir is used for the xorg.conf location; same applies |
349 |
# --enable-install-setuid needed because sparcs default off |
350 |
CONFIGURE_OPTIONS=" |
351 |
$(use_enable ipv6) |
352 |
$(use_enable dmx) |
353 |
$(use_enable kdrive) |
354 |
$(use_enable !minimal xvfb) |
355 |
$(use_enable !minimal xnest) |
356 |
$(use_enable !minimal xtrap) |
357 |
$(use_enable !minimal record) |
358 |
$(use_enable !minimal xfree86-utils) |
359 |
$(use_enable !minimal install-libxf86config) |
360 |
$(use_enable dri) |
361 |
$(use_enable xorg) |
362 |
$(use_enable nptl glx-tls) |
363 |
$(use_enable !minimal xorgcfg) |
364 |
$(use_enable hal config-dbus) |
365 |
$(use_enable hal config-hal) |
366 |
--disable-dri2 |
367 |
--sysconfdir=/etc/X11 |
368 |
--localstatedir=/var |
369 |
--enable-install-setuid |
370 |
--with-fontdir=/usr/share/fonts |
371 |
--with-xkb-output=/var/lib/xkb |
372 |
${conf_opts}" |
373 |
|
374 |
local diemsg="You must build xorg-server and mesa with the same nptl USE setting." |
375 |
if built_with_use media-libs/mesa nptl; then |
376 |
use nptl || die "${diemsg}" |
377 |
else |
378 |
use nptl && die "${diemsg}" |
379 |
fi |
380 |
|
381 |
# (#121394) Causes window corruption |
382 |
filter-flags -fweb |
383 |
|
384 |
# Nothing else provides new enough glxtokens.h |
385 |
ewarn "Forcing on xorg-x11 for new enough glxtokens.h..." |
386 |
OLD_IMPLEM="$(eselect opengl show)" |
387 |
eselect opengl set --impl-headers ${OPENGL_DIR} |
388 |
} |
389 |
|
390 |
src_unpack() { |
391 |
x-modular_specs_check |
392 |
x-modular_dri_check |
393 |
x-modular_unpack_source |
394 |
x-modular_patch_source |
395 |
|
396 |
# Set up kdrive servers to build |
397 |
if use kdrive; then |
398 |
kdrive_setup |
399 |
fi |
400 |
|
401 |
# Make sure eautoreconf gets run if we need the autoconf/make |
402 |
# changes. |
403 |
if [[ ${SNAPSHOT} != "yes" ]]; then |
404 |
if use kdrive || use dmx; then |
405 |
SNAPSHOT="yes" |
406 |
fi |
407 |
fi |
408 |
|
409 |
if use hal; then |
410 |
sed -i \ |
411 |
-e "s:^\(dbusconfigdir = \).*\(dbus-1.*\):\1/etc/\2:g" \ |
412 |
"${S}"/config/Makefile.am \ |
413 |
|| die "failed to fix DBUS config directory" |
414 |
SNAPSHOT="yes" |
415 |
fi |
416 |
|
417 |
x-modular_reconf_source |
418 |
} |
419 |
|
420 |
src_install() { |
421 |
x-modular_src_install |
422 |
|
423 |
dynamic_libgl_install |
424 |
|
425 |
server_based_install |
426 |
|
427 |
# Install video mode files for system-config-display |
428 |
insinto /usr/share/xorg |
429 |
doins hw/xfree86/common/{extra,vesa}modes \ |
430 |
|| die "couldn't install extra modes" |
431 |
|
432 |
# Bug #151421 - this file is not built with USE="minimal" |
433 |
# Bug #151670 - this file is also not build if USE="-xorg" |
434 |
if ! use minimal && use xorg; then |
435 |
# Install xorg.conf.example |
436 |
insinto /etc/X11 |
437 |
doins hw/xfree86/xorg.conf.example \ |
438 |
|| die "couldn't install xorg.conf.example" |
439 |
fi |
440 |
} |
441 |
|
442 |
pkg_postinst() { |
443 |
switch_opengl_implem |
444 |
|
445 |
# Bug #135544 |
446 |
ewarn "Users of reduced blanking now need:" |
447 |
ewarn " Option \"ReducedBlanking\"" |
448 |
ewarn "In the relevant Monitor section(s)." |
449 |
ewarn "Make sure your reduced blanking modelines are safe!" |
450 |
|
451 |
echo |
452 |
ewarn "You must rebuild all drivers if upgrading from xorg-server 1.4.1" |
453 |
ewarn "or earlier, because the ABI changed. If you cannot start X because" |
454 |
ewarn "of module version mismatch errors, this is your problem." |
455 |
|
456 |
echo |
457 |
ewarn "You can generate a list of all installed packages in the x11-drivers" |
458 |
ewarn "category using this command:" |
459 |
ewarn "emerge portage-utils; qlist -I -C x11-drivers/" |
460 |
|
461 |
ebeep 5 |
462 |
epause 10 |
463 |
} |
464 |
|
465 |
pkg_postrm() { |
466 |
# Get rid of module dir to ensure opengl-update works properly |
467 |
if ! has_version x11-base/xorg-server; then |
468 |
if [[ -e ${ROOT}/usr/$(get_libdir)/xorg/modules ]]; then |
469 |
rm -rf "${ROOT}"/usr/$(get_libdir)/xorg/modules |
470 |
fi |
471 |
fi |
472 |
} |
473 |
|
474 |
kdrive_setup() { |
475 |
local card real_card disable_card kdrive_fbdev kdrive_vesa |
476 |
|
477 |
einfo "Removing unused kdrive drivers ..." |
478 |
|
479 |
# Some kdrive servers require fbdev and vesa |
480 |
kdrive_fbdev="radeon neomagic sis siliconmotion" |
481 |
# Some kdrive servers require just vesa |
482 |
kdrive_vesa="chips mach64 mga nv glint r128 via" |
483 |
|
484 |
for card in ${IUSE_VIDEO_CARDS}; do |
485 |
real_card=${card#video_cards_} |
486 |
|
487 |
# Differences between VIDEO_CARDS name and kdrive server name |
488 |
real_card=${real_card/glint/pm2} |
489 |
real_card=${real_card/radeon/ati} |
490 |
real_card=${real_card/%nv/nvidia} |
491 |
real_card=${real_card/siliconmotion/smi} |
492 |
real_card=${real_card/%sis/sis300} |
493 |
|
494 |
disable_card=0 |
495 |
|
496 |
# Check whether it's a valid kdrive server before we waste time |
497 |
# on the rest of this |
498 |
if ! grep -q -o "\b${real_card}\b" "${S}"/hw/kdrive/Makefile.am; then |
499 |
continue |
500 |
fi |
501 |
|
502 |
if ! use ${card}; then |
503 |
if use x86; then |
504 |
# Some kdrive servers require fbdev and vesa |
505 |
for i in ${kdrive_fbdev}; do |
506 |
if use video_cards_${i}; then |
507 |
if [[ ${real_card} = fbdev ]] \ |
508 |
|| [[ ${real_card} = vesa ]]; then |
509 |
continue 2 # Don't disable |
510 |
fi |
511 |
fi |
512 |
done |
513 |
|
514 |
# Some kdrive servers require just vesa |
515 |
for i in ${kdrive_vesa}; do |
516 |
if use video_cards_${i}; then |
517 |
if [[ ${real_card} = vesa ]]; then |
518 |
continue 2 # Don't disable |
519 |
fi |
520 |
fi |
521 |
done |
522 |
fi |
523 |
disable_card=1 |
524 |
# Bug #150052 |
525 |
# fbdev is the only VIDEO_CARDS setting that works on non-x86 |
526 |
elif ! use x86 \ |
527 |
&& [[ ${real_card} != fbdev ]]; then |
528 |
ewarn " $real_card does not work on your architecture; disabling." |
529 |
disable_card=1 |
530 |
fi |
531 |
|
532 |
if [[ $disable_card = 1 ]]; then |
533 |
ebegin " ${real_card}" |
534 |
sed -i \ |
535 |
-e "s:\b${real_card}\b::g" \ |
536 |
"${S}"/hw/kdrive/Makefile.am \ |
537 |
|| die "sed of ${real_card} failed" |
538 |
eend |
539 |
fi |
540 |
|
541 |
done |
542 |
} |
543 |
|
544 |
dynamic_libgl_install() { |
545 |
# next section is to setup the dynamic libGL stuff |
546 |
ebegin "Moving GL files for dynamic switching" |
547 |
dodir /usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions |
548 |
local x="" |
549 |
for x in "${D}"/usr/$(get_libdir)/xorg/modules/extensions/libglx*; do |
550 |
if [ -f ${x} -o -L ${x} ]; then |
551 |
mv -f ${x} "${D}"/usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions |
552 |
fi |
553 |
done |
554 |
eend 0 |
555 |
} |
556 |
|
557 |
server_based_install() { |
558 |
if ! use xorg; then |
559 |
rm "${D}"/usr/share/man/man1/Xserver.1x \ |
560 |
"${D}"/usr/$(get_libdir)/xserver/SecurityPolicy \ |
561 |
"${D}"/usr/$(get_libdir)/pkgconfig/xorg-server.pc \ |
562 |
"${D}"/usr/share/man/man1/Xserver.1x |
563 |
fi |
564 |
} |
565 |
|
566 |
switch_opengl_implem() { |
567 |
# Switch to the xorg implementation. |
568 |
# Use new opengl-update that will not reset user selected |
569 |
# OpenGL interface ... |
570 |
echo |
571 |
# eselect opengl set --use-old ${OPENGL_DIR} |
572 |
eselect opengl set ${OLD_IMPLEM} |
573 |
} |
574 |
|
575 |
ensure_a_server_is_building() { |
576 |
for server in ${IUSE_SERVERS}; do |
577 |
use ${server} && return; |
578 |
done |
579 |
eerror "You need to specify at least one server to build." |
580 |
eerror "Valid servers are: ${IUSE_SERVERS}." |
581 |
die "No servers were specified to build." |
582 |
} |