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

Diff of /x11-base/xorg-server/xorg-server-1.2.0-r3.ebuild

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

Revision 1.14 Revision 1.15
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.2.0-r3.ebuild,v 1.14 2007/09/09 19:49:42 dberkholz Exp $ 3# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/Attic/xorg-server-1.2.0-r3.ebuild,v 1.15 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" 6#SNAPSHOT="yes"
7 7
8inherit x-modular multilib 8inherit x-modular multilib
376} 376}
377 377
378pkg_postrm() { 378pkg_postrm() {
379 # Get rid of module dir to ensure opengl-update works properly 379 # Get rid of module dir to ensure opengl-update works properly
380 if ! has_version x11-base/xorg-server; then 380 if ! has_version x11-base/xorg-server; then
381 if [ -e ${ROOT}/usr/$(get_libdir)/xorg/modules ]; then 381 if [[ -e ${ROOT}/usr/$(get_libdir)/xorg/modules ]]; then
382 rm -rf ${ROOT}/usr/$(get_libdir)/xorg/modules 382 rm -rf "${ROOT}"/usr/$(get_libdir)/xorg/modules
383 fi 383 fi
384 fi 384 fi
385} 385}
386 386
387kdrive_setup() { 387kdrive_setup() {
406 406
407 disable_card=0 407 disable_card=0
408 408
409 # Check whether it's a valid kdrive server before we waste time 409 # Check whether it's a valid kdrive server before we waste time
410 # on the rest of this 410 # on the rest of this
411 if ! grep -q -o "\b${real_card}\b" ${S}/hw/kdrive/Makefile.am; then 411 if ! grep -q -o "\b${real_card}\b" "${S}"/hw/kdrive/Makefile.am; then
412 continue 412 continue
413 fi 413 fi
414 414
415 if ! use ${card}; then 415 if ! use ${card}; then
416 if use x86; then 416 if use x86; then
444 444
445 if [[ $disable_card = 1 ]]; then 445 if [[ $disable_card = 1 ]]; then
446 ebegin " ${real_card}" 446 ebegin " ${real_card}"
447 sed -i \ 447 sed -i \
448 -e "s:\b${real_card}\b::g" \ 448 -e "s:\b${real_card}\b::g" \
449 ${S}/hw/kdrive/Makefile.am \ 449 "${S}"/hw/kdrive/Makefile.am \
450 || die "sed of ${real_card} failed" 450 || die "sed of ${real_card} failed"
451 eend 451 eend
452 fi 452 fi
453 453
454 done 454 done
456 # smi and via are the only things on line 2. If line 2 ends up blank, 456 # 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. 457 # 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 458 if ! use video_cards_siliconmotion && ! use video_cards_via; then
459 sed -i \ 459 sed -i \
460 -e "s:^\(VESA_SUBDIRS.*\)\\\:\1:g" \ 460 -e "s:^\(VESA_SUBDIRS.*\)\\\:\1:g" \
461 ${S}/hw/kdrive/Makefile.am 461 "${S}"/hw/kdrive/Makefile.am
462 fi 462 fi
463} 463}
464 464
465dynamic_libgl_install() { 465dynamic_libgl_install() {
466 # next section is to setup the dynamic libGL stuff 466 # next section is to setup the dynamic libGL stuff
467 ebegin "Moving GL files for dynamic switching" 467 ebegin "Moving GL files for dynamic switching"
468 dodir /usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions 468 dodir /usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions
469 local x="" 469 local x=""
470 for x in ${D}/usr/$(get_libdir)/xorg/modules/extensions/libglx*; do 470 for x in "${D}"/usr/$(get_libdir)/xorg/modules/extensions/libglx*; do
471 if [ -f ${x} -o -L ${x} ]; then 471 if [ -f ${x} -o -L ${x} ]; then
472 mv -f ${x} ${D}/usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions 472 mv -f ${x} "${D}"/usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions
473 fi 473 fi
474 done 474 done
475 eend 0 475 eend 0
476} 476}
477 477
478server_based_install() { 478server_based_install() {
479 use xprint && xprint_src_install 479 use xprint && xprint_src_install
480 480
481 if ! use xorg; then 481 if ! use xorg; then
482 rm ${D}/usr/share/man/man1/Xserver.1x \ 482 rm "${D}"/usr/share/man/man1/Xserver.1x \
483 ${D}/usr/$(get_libdir)/xserver/SecurityPolicy \ 483 "${D}"/usr/$(get_libdir)/xserver/SecurityPolicy \
484 ${D}/usr/$(get_libdir)/pkgconfig/xorg-server.pc \ 484 "${D}"/usr/$(get_libdir)/pkgconfig/xorg-server.pc \
485 ${D}/usr/share/man/man1/Xserver.1x 485 "${D}"/usr/share/man/man1/Xserver.1x
486 fi 486 fi
487} 487}
488 488
489switch_opengl_implem() { 489switch_opengl_implem() {
490 # Switch to the xorg implementation. 490 # Switch to the xorg implementation.
496} 496}
497 497
498xprint_src_install() { 498xprint_src_install() {
499 # RH-style init script, we provide a wrapper 499 # RH-style init script, we provide a wrapper
500 exeinto /usr/$(get_libdir)/misc 500 exeinto /usr/$(get_libdir)/misc
501 doexe ${S}/hw/xprint/etc/init.d/xprint 501 doexe "${S}"/hw/xprint/etc/init.d/xprint
502 # Install the wrapper 502 # Install the wrapper
503 newinitd ${FILESDIR}/xprint.init xprint 503 newinitd "${FILESDIR}"/xprint.init xprint
504 # Install profile scripts 504 # Install profile scripts
505 insinto /etc/profile.d 505 insinto /etc/profile.d
506 doins ${S}/hw/xprint/etc/profile.d/xprint* 506 doins "${S}"/hw/xprint/etc/profile.d/xprint*
507 insinto /etc/X11/xinit/xinitrc.d 507 insinto /etc/X11/xinit/xinitrc.d
508 doins ${S}/hw/xprint/etc/Xsession.d/92xprint-xpserverlist 508 doins "${S}"/hw/xprint/etc/Xsession.d/92xprint-xpserverlist
509 # Patch profile scripts 509 # Patch profile scripts
510 sed -e "s:/bin/sh.*get_xpserverlist:/usr/$(get_libdir)/misc/xprint \ 510 sed -e "s:/bin/sh.*get_xpserverlist:/usr/$(get_libdir)/misc/xprint \
511 get_xpserverlist:g" -i ${D}/etc/profile.d/xprint* \ 511 get_xpserverlist:g" -i "${D}"/etc/profile.d/xprint* \
512 ${D}/etc/X11/xinit/xinitrc.d/92xprint-xpserverlist 512 "${D}"/etc/X11/xinit/xinitrc.d/92xprint-xpserverlist
513 # Move profile scripts, we can't touch /etc/profile.d/ in Gentoo 513 # Move profile scripts, we can't touch /etc/profile.d/ in Gentoo
514 dodoc ${D}/etc/profile.d/xprint* 514 dodoc "${D}"/etc/profile.d/xprint*
515 rm -f ${D}/etc/profile.d/xprint* 515 rm -f "${D}"/etc/profile.d/xprint*
516} 516}
517 517
518ensure_a_server_is_building() { 518ensure_a_server_is_building() {
519 for server in ${IUSE_SERVERS}; do 519 for server in ${IUSE_SERVERS}; do
520 use ${server} && return; 520 use ${server} && return;

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.20