/[gentoo-x86]/x11-base/xorg-server/xorg-server-1.3.0.0.ebuild
Gentoo

Diff of /x11-base/xorg-server/xorg-server-1.3.0.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.4 Revision 1.28
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/Attic/xorg-server-1.3.0.0.ebuild,v 1.4 2007/05/01 07:45:22 drac Exp $ 3# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/Attic/xorg-server-1.3.0.0.ebuild,v 1.28 2007/10/09 07:22:49 dberkholz Exp $
4 4
5# Must be before x-modular eclass is inherited 5# Must be before x-modular eclass is inherited
6#SNAPSHOT="yes" 6SNAPSHOT="yes"
7 7
8inherit x-modular multilib 8inherit x-modular multilib
9 9
10OPENGL_DIR="xorg-x11" 10OPENGL_DIR="xorg-x11"
11 11
16 16
17SRC_URI="${SRC_URI} 17SRC_URI="${SRC_URI}
18 mirror://sourceforge/mesa3d/${MESA_SRC_P}.tar.bz2 18 mirror://sourceforge/mesa3d/${MESA_SRC_P}.tar.bz2
19 http://xorg.freedesktop.org/releases/individual/xserver/${P}.tar.bz2" 19 http://xorg.freedesktop.org/releases/individual/xserver/${P}.tar.bz2"
20DESCRIPTION="X.Org X servers" 20DESCRIPTION="X.Org X servers"
21# It's suid and has lazy bindings, so FEATURES="stricter" doesn't work
22RESTRICT="stricter"
23KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" 21KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 sh sparc x86 ~x86-fbsd"
24IUSE_INPUT_DEVICES=" 22IUSE_INPUT_DEVICES="
25 input_devices_acecad 23 input_devices_acecad
26 input_devices_aiptek 24 input_devices_aiptek
27 input_devices_calcomp 25 input_devices_calcomp
28 input_devices_citron 26 input_devices_citron
97 video_cards_vesa 95 video_cards_vesa
98 video_cards_vga 96 video_cards_vga
99 video_cards_via 97 video_cards_via
100 video_cards_vmware 98 video_cards_vmware
101 video_cards_voodoo 99 video_cards_voodoo
100 video_cards_fglrx
102 video_cards_nvidia" 101 video_cards_nvidia"
103IUSE_SERVERS="dmx kdrive xorg" 102IUSE_SERVERS="dmx kdrive xorg"
104IUSE="${IUSE_VIDEO_CARDS} 103IUSE="${IUSE_VIDEO_CARDS}
105 ${IUSE_INPUT_DEVICES} 104 ${IUSE_INPUT_DEVICES}
106 ${IUSE_SERVERS} 105 ${IUSE_SERVERS}
130 app-admin/eselect-opengl 129 app-admin/eselect-opengl
131 x11-libs/libXaw 130 x11-libs/libXaw
132 x11-libs/libXpm 131 x11-libs/libXpm
133 x11-libs/libXxf86misc 132 x11-libs/libXxf86misc
134 x11-libs/libXxf86vm 133 x11-libs/libXxf86vm
135 dmx? ( x11-libs/libdmx ) 134 dmx? ( x11-libs/libdmx
135 x11-libs/libXfixes )
136 !minimal? ( x11-libs/libXtst 136 !minimal? ( x11-libs/libXtst
137 x11-libs/libXres ) 137 x11-libs/libXres )
138 >=x11-libs/libxkbui-1.0.2 138 >=x11-libs/libxkbui-1.0.2
139 x11-libs/liblbxutil 139 x11-libs/liblbxutil
140 kdrive? ( sdl? ( media-libs/libsdl ) )" 140 kdrive? ( sdl? ( media-libs/libsdl ) )"
143 # Xpm is dmx- and xorgcfg-dependent, pulls in Xt 143 # Xpm is dmx- and xorgcfg-dependent, pulls in Xt
144 # Xxf86misc and Xxf86vm are xorgcfg-dependent 144 # Xxf86misc and Xxf86vm are xorgcfg-dependent
145 # liblbxutil is lbx- dependent 145 # liblbxutil is lbx- dependent
146DEPEND="${RDEPEND} 146DEPEND="${RDEPEND}
147 >=x11-proto/randrproto-1.2.1 147 >=x11-proto/randrproto-1.2.1
148 x11-proto/renderproto 148 <x11-proto/renderproto-0.9.3
149 >=x11-proto/fixesproto-4 149 >=x11-proto/fixesproto-4
150 >=x11-proto/damageproto-1.1 150 >=x11-proto/damageproto-1.1
151 x11-proto/xextproto 151 x11-proto/xextproto
152 x11-proto/xproto 152 x11-proto/xproto
153 x11-proto/xf86dgaproto 153 x11-proto/xf86dgaproto
192 input_devices_evdev? ( >=x11-drivers/xf86-input-evdev-1.1.1 ) 192 input_devices_evdev? ( >=x11-drivers/xf86-input-evdev-1.1.1 )
193 input_devices_fpit? ( >=x11-drivers/xf86-input-fpit-1.1.0 ) 193 input_devices_fpit? ( >=x11-drivers/xf86-input-fpit-1.1.0 )
194 input_devices_hyperpen? ( >=x11-drivers/xf86-input-hyperpen-1.1.0 ) 194 input_devices_hyperpen? ( >=x11-drivers/xf86-input-hyperpen-1.1.0 )
195 input_devices_jamstudio? ( >=x11-drivers/xf86-input-jamstudio-1.1.0 ) 195 input_devices_jamstudio? ( >=x11-drivers/xf86-input-jamstudio-1.1.0 )
196 input_devices_joystick? ( >=x11-drivers/xf86-input-joystick-1.1.0 ) 196 input_devices_joystick? ( >=x11-drivers/xf86-input-joystick-1.1.0 )
197 input_devices_keyboard? ( >=x11-drivers/xf86-input-keyboard-1.1.0 ) 197 input_devices_keyboard? ( =x11-drivers/xf86-input-keyboard-1.1* )
198 input_devices_magellan? ( >=x11-drivers/xf86-input-magellan-1.1.0 ) 198 input_devices_magellan? ( >=x11-drivers/xf86-input-magellan-1.1.0 )
199 input_devices_microtouch? ( >=x11-drivers/xf86-input-microtouch-1.1.0 ) 199 input_devices_microtouch? ( >=x11-drivers/xf86-input-microtouch-1.1.0 )
200 input_devices_mouse? ( >=x11-drivers/xf86-input-mouse-1.1.0 ) 200 input_devices_mouse? ( >=x11-drivers/xf86-input-mouse-1.1.0 )
201 input_devices_mutouch? ( >=x11-drivers/xf86-input-mutouch-1.1.0 ) 201 input_devices_mutouch? ( >=x11-drivers/xf86-input-mutouch-1.1.0 )
202 input_devices_palmax? ( >=x11-drivers/xf86-input-palmax-1.1.0 ) 202 input_devices_palmax? ( >=x11-drivers/xf86-input-palmax-1.1.0 )
254 video_cards_vesa? ( >=x11-drivers/xf86-video-vesa-1.1.0 ) 254 video_cards_vesa? ( >=x11-drivers/xf86-video-vesa-1.1.0 )
255 video_cards_vga? ( >=x11-drivers/xf86-video-vga-4.1.0 ) 255 video_cards_vga? ( >=x11-drivers/xf86-video-vga-4.1.0 )
256 video_cards_via? ( >=x11-drivers/xf86-video-via-0.2.1 ) 256 video_cards_via? ( >=x11-drivers/xf86-video-via-0.2.1 )
257 video_cards_vmware? ( >=x11-drivers/xf86-video-vmware-10.13.0 ) 257 video_cards_vmware? ( >=x11-drivers/xf86-video-vmware-10.13.0 )
258 video_cards_voodoo? ( >=x11-drivers/xf86-video-voodoo-1.1.0 ) 258 video_cards_voodoo? ( >=x11-drivers/xf86-video-voodoo-1.1.0 )
259
260 video_cards_tdfx? ( 3dfx? ( >=media-libs/glide-v3-3.10 ) ) 259 video_cards_tdfx? ( 3dfx? ( >=media-libs/glide-v3-3.10 ) )
261 video_cards_nvidia? ( || ( 260 video_cards_nvidia? ( x11-drivers/nvidia-drivers )
262 >=x11-drivers/nvidia-drivers-1.0.9755-r1 261 video_cards_fglrx? ( >=x11-drivers/ati-drivers-8.37.6 )
263 )
264 )
265 !<x11-drivers/nvidia-drivers-1.0.9755-r1
266 !x11-drivers/nvidia-legacy-drivers
267 !x11-drivers/ati-drivers
268 )" 262 )"
269LICENSE="${LICENSE} MIT" 263LICENSE="${LICENSE} MIT"
264
265PATCHES="
266 ${FILESDIR}/1.2.0-fix-amd-cpu-detection.patch
267 ${FILESDIR}/1.2.0-properly-free-device-devprivates-memory-leak-fix.patch
268 ${FILESDIR}/1.2.0-typo-fix.patch
269 ${FILESDIR}/1.2.0-zero-out-client-devprivates-on-allocation.patch
270 ${FILESDIR}/1.3.0.0-use-proc-instead-of-sys.patch
271 ${FILESDIR}/avoid-crash-on-minimized-xv-window.patch
272 ${FILESDIR}/xorg-server-sam225bw-quirks.patch
273 ${FILESDIR}/1.3-alpha-build-fix.patch
274 ${FILESDIR}/1.3.0.0-xephyr_crash_at_exit.patch
275 ${FILESDIR}/xorg-x11-server-1.0.1-fpic-libxf86config.patch
276 "
270 277
271pkg_setup() { 278pkg_setup() {
272 use minimal || ensure_a_server_is_building 279 use minimal || ensure_a_server_is_building
273 280
274 # SDL only available in kdrive build 281 # SDL only available in kdrive build
376} 383}
377 384
378pkg_postrm() { 385pkg_postrm() {
379 # Get rid of module dir to ensure opengl-update works properly 386 # Get rid of module dir to ensure opengl-update works properly
380 if ! has_version x11-base/xorg-server; then 387 if ! has_version x11-base/xorg-server; then
381 if [ -e ${ROOT}/usr/$(get_libdir)/xorg/modules ]; then 388 if [[ -e ${ROOT}/usr/$(get_libdir)/xorg/modules ]]; then
382 rm -rf ${ROOT}/usr/$(get_libdir)/xorg/modules 389 rm -rf "${ROOT}"/usr/$(get_libdir)/xorg/modules
383 fi 390 fi
384 fi 391 fi
385} 392}
386 393
387kdrive_setup() { 394kdrive_setup() {
406 413
407 disable_card=0 414 disable_card=0
408 415
409 # Check whether it's a valid kdrive server before we waste time 416 # Check whether it's a valid kdrive server before we waste time
410 # on the rest of this 417 # on the rest of this
411 if ! grep -q -o "\b${real_card}\b" ${S}/hw/kdrive/Makefile.am; then 418 if ! grep -q -o "\b${real_card}\b" "${S}"/hw/kdrive/Makefile.am; then
412 continue 419 continue
413 fi 420 fi
414 421
415 if ! use ${card}; then 422 if ! use ${card}; then
416 if use x86; then 423 if use x86; then
444 451
445 if [[ $disable_card = 1 ]]; then 452 if [[ $disable_card = 1 ]]; then
446 ebegin " ${real_card}" 453 ebegin " ${real_card}"
447 sed -i \ 454 sed -i \
448 -e "s:\b${real_card}\b::g" \ 455 -e "s:\b${real_card}\b::g" \
449 ${S}/hw/kdrive/Makefile.am \ 456 "${S}"/hw/kdrive/Makefile.am \
450 || die "sed of ${real_card} failed" 457 || die "sed of ${real_card} failed"
451 eend 458 eend
452 fi 459 fi
453 460
454 done 461 done
456 # smi and via are the only things on line 2. If line 2 ends up blank, 463 # smi and via are the only things on line 2. If line 2 ends up blank,
457 # we need to get rid of the backslash at the end of line 1. 464 # we need to get rid of the backslash at the end of line 1.
458 if ! use video_cards_siliconmotion && ! use video_cards_via; then 465 if ! use video_cards_siliconmotion && ! use video_cards_via; then
459 sed -i \ 466 sed -i \
460 -e "s:^\(VESA_SUBDIRS.*\)\\\:\1:g" \ 467 -e "s:^\(VESA_SUBDIRS.*\)\\\:\1:g" \
461 ${S}/hw/kdrive/Makefile.am 468 "${S}"/hw/kdrive/Makefile.am
462 fi 469 fi
463} 470}
464 471
465dynamic_libgl_install() { 472dynamic_libgl_install() {
466 # next section is to setup the dynamic libGL stuff 473 # next section is to setup the dynamic libGL stuff
467 ebegin "Moving GL files for dynamic switching" 474 ebegin "Moving GL files for dynamic switching"
468 dodir /usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions 475 dodir /usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions
469 local x="" 476 local x=""
470 for x in ${D}/usr/$(get_libdir)/xorg/modules/extensions/libglx*; do 477 for x in "${D}"/usr/$(get_libdir)/xorg/modules/extensions/libglx*; do
471 if [ -f ${x} -o -L ${x} ]; then 478 if [ -f ${x} -o -L ${x} ]; then
472 mv -f ${x} ${D}/usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions 479 mv -f ${x} "${D}"/usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions
473 fi 480 fi
474 done 481 done
475 eend 0 482 eend 0
476} 483}
477 484
478server_based_install() { 485server_based_install() {
479 use xprint && xprint_src_install 486 use xprint && xprint_src_install
480 487
481 if ! use xorg; then 488 if ! use xorg; then
482 rm ${D}/usr/share/man/man1/Xserver.1x \ 489 rm "${D}"/usr/share/man/man1/Xserver.1x \
483 ${D}/usr/$(get_libdir)/xserver/SecurityPolicy \ 490 "${D}"/usr/$(get_libdir)/xserver/SecurityPolicy \
484 ${D}/usr/$(get_libdir)/pkgconfig/xorg-server.pc \ 491 "${D}"/usr/$(get_libdir)/pkgconfig/xorg-server.pc \
485 ${D}/usr/share/man/man1/Xserver.1x 492 "${D}"/usr/share/man/man1/Xserver.1x
486 fi 493 fi
487} 494}
488 495
489switch_opengl_implem() { 496switch_opengl_implem() {
490 # Switch to the xorg implementation. 497 # Switch to the xorg implementation.
496} 503}
497 504
498xprint_src_install() { 505xprint_src_install() {
499 # RH-style init script, we provide a wrapper 506 # RH-style init script, we provide a wrapper
500 exeinto /usr/$(get_libdir)/misc 507 exeinto /usr/$(get_libdir)/misc
501 doexe ${S}/hw/xprint/etc/init.d/xprint 508 doexe "${S}"/hw/xprint/etc/init.d/xprint
502 # Install the wrapper 509 # Install the wrapper
503 newinitd ${FILESDIR}/xprint.init xprint 510 newinitd "${FILESDIR}"/xprint.init xprint
504 # Install profile scripts 511 # Install profile scripts
505 insinto /etc/profile.d 512 insinto /etc/profile.d
506 doins ${S}/hw/xprint/etc/profile.d/xprint* 513 doins "${S}"/hw/xprint/etc/profile.d/xprint*
507 insinto /etc/X11/xinit/xinitrc.d 514 insinto /etc/X11/xinit/xinitrc.d
508 doins ${S}/hw/xprint/etc/Xsession.d/92xprint-xpserverlist 515 doins "${S}"/hw/xprint/etc/Xsession.d/92xprint-xpserverlist
509 # Patch profile scripts 516 # Patch profile scripts
510 sed -e "s:/bin/sh.*get_xpserverlist:/usr/$(get_libdir)/misc/xprint \ 517 sed -e "s:/bin/sh.*get_xpserverlist:/usr/$(get_libdir)/misc/xprint \
511 get_xpserverlist:g" -i ${D}/etc/profile.d/xprint* \ 518 get_xpserverlist:g" -i "${D}"/etc/profile.d/xprint* \
512 ${D}/etc/X11/xinit/xinitrc.d/92xprint-xpserverlist 519 "${D}"/etc/X11/xinit/xinitrc.d/92xprint-xpserverlist
513 # Move profile scripts, we can't touch /etc/profile.d/ in Gentoo 520 # Move profile scripts, we can't touch /etc/profile.d/ in Gentoo
514 dodoc ${D}/etc/profile.d/xprint* 521 dodoc "${D}"/etc/profile.d/xprint*
515 rm -f ${D}/etc/profile.d/xprint* 522 rm -f "${D}"/etc/profile.d/xprint*
516} 523}
517 524
518ensure_a_server_is_building() { 525ensure_a_server_is_building() {
519 for server in ${IUSE_SERVERS}; do 526 for server in ${IUSE_SERVERS}; do
520 use ${server} && return; 527 use ${server} && return;

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.28

  ViewVC Help
Powered by ViewVC 1.1.20