/[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.27 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.27 2007/09/28 05:03:32 kumba 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
6SNAPSHOT="yes" 6SNAPSHOT="yes"
7 7
8inherit x-modular multilib 8inherit x-modular multilib
383} 383}
384 384
385pkg_postrm() { 385pkg_postrm() {
386 # Get rid of module dir to ensure opengl-update works properly 386 # Get rid of module dir to ensure opengl-update works properly
387 if ! has_version x11-base/xorg-server; then 387 if ! has_version x11-base/xorg-server; then
388 if [ -e ${ROOT}/usr/$(get_libdir)/xorg/modules ]; then 388 if [[ -e ${ROOT}/usr/$(get_libdir)/xorg/modules ]]; then
389 rm -rf ${ROOT}/usr/$(get_libdir)/xorg/modules 389 rm -rf "${ROOT}"/usr/$(get_libdir)/xorg/modules
390 fi 390 fi
391 fi 391 fi
392} 392}
393 393
394kdrive_setup() { 394kdrive_setup() {
413 413
414 disable_card=0 414 disable_card=0
415 415
416 # 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
417 # on the rest of this 417 # on the rest of this
418 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
419 continue 419 continue
420 fi 420 fi
421 421
422 if ! use ${card}; then 422 if ! use ${card}; then
423 if use x86; then 423 if use x86; then
451 451
452 if [[ $disable_card = 1 ]]; then 452 if [[ $disable_card = 1 ]]; then
453 ebegin " ${real_card}" 453 ebegin " ${real_card}"
454 sed -i \ 454 sed -i \
455 -e "s:\b${real_card}\b::g" \ 455 -e "s:\b${real_card}\b::g" \
456 ${S}/hw/kdrive/Makefile.am \ 456 "${S}"/hw/kdrive/Makefile.am \
457 || die "sed of ${real_card} failed" 457 || die "sed of ${real_card} failed"
458 eend 458 eend
459 fi 459 fi
460 460
461 done 461 done
463 # 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,
464 # 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.
465 if ! use video_cards_siliconmotion && ! use video_cards_via; then 465 if ! use video_cards_siliconmotion && ! use video_cards_via; then
466 sed -i \ 466 sed -i \
467 -e "s:^\(VESA_SUBDIRS.*\)\\\:\1:g" \ 467 -e "s:^\(VESA_SUBDIRS.*\)\\\:\1:g" \
468 ${S}/hw/kdrive/Makefile.am 468 "${S}"/hw/kdrive/Makefile.am
469 fi 469 fi
470} 470}
471 471
472dynamic_libgl_install() { 472dynamic_libgl_install() {
473 # next section is to setup the dynamic libGL stuff 473 # next section is to setup the dynamic libGL stuff
474 ebegin "Moving GL files for dynamic switching" 474 ebegin "Moving GL files for dynamic switching"
475 dodir /usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions 475 dodir /usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions
476 local x="" 476 local x=""
477 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
478 if [ -f ${x} -o -L ${x} ]; then 478 if [ -f ${x} -o -L ${x} ]; then
479 mv -f ${x} ${D}/usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions 479 mv -f ${x} "${D}"/usr/$(get_libdir)/opengl/${OPENGL_DIR}/extensions
480 fi 480 fi
481 done 481 done
482 eend 0 482 eend 0
483} 483}
484 484
485server_based_install() { 485server_based_install() {
486 use xprint && xprint_src_install 486 use xprint && xprint_src_install
487 487
488 if ! use xorg; then 488 if ! use xorg; then
489 rm ${D}/usr/share/man/man1/Xserver.1x \ 489 rm "${D}"/usr/share/man/man1/Xserver.1x \
490 ${D}/usr/$(get_libdir)/xserver/SecurityPolicy \ 490 "${D}"/usr/$(get_libdir)/xserver/SecurityPolicy \
491 ${D}/usr/$(get_libdir)/pkgconfig/xorg-server.pc \ 491 "${D}"/usr/$(get_libdir)/pkgconfig/xorg-server.pc \
492 ${D}/usr/share/man/man1/Xserver.1x 492 "${D}"/usr/share/man/man1/Xserver.1x
493 fi 493 fi
494} 494}
495 495
496switch_opengl_implem() { 496switch_opengl_implem() {
497 # Switch to the xorg implementation. 497 # Switch to the xorg implementation.
503} 503}
504 504
505xprint_src_install() { 505xprint_src_install() {
506 # RH-style init script, we provide a wrapper 506 # RH-style init script, we provide a wrapper
507 exeinto /usr/$(get_libdir)/misc 507 exeinto /usr/$(get_libdir)/misc
508 doexe ${S}/hw/xprint/etc/init.d/xprint 508 doexe "${S}"/hw/xprint/etc/init.d/xprint
509 # Install the wrapper 509 # Install the wrapper
510 newinitd ${FILESDIR}/xprint.init xprint 510 newinitd "${FILESDIR}"/xprint.init xprint
511 # Install profile scripts 511 # Install profile scripts
512 insinto /etc/profile.d 512 insinto /etc/profile.d
513 doins ${S}/hw/xprint/etc/profile.d/xprint* 513 doins "${S}"/hw/xprint/etc/profile.d/xprint*
514 insinto /etc/X11/xinit/xinitrc.d 514 insinto /etc/X11/xinit/xinitrc.d
515 doins ${S}/hw/xprint/etc/Xsession.d/92xprint-xpserverlist 515 doins "${S}"/hw/xprint/etc/Xsession.d/92xprint-xpserverlist
516 # Patch profile scripts 516 # Patch profile scripts
517 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 \
518 get_xpserverlist:g" -i ${D}/etc/profile.d/xprint* \ 518 get_xpserverlist:g" -i "${D}"/etc/profile.d/xprint* \
519 ${D}/etc/X11/xinit/xinitrc.d/92xprint-xpserverlist 519 "${D}"/etc/X11/xinit/xinitrc.d/92xprint-xpserverlist
520 # 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
521 dodoc ${D}/etc/profile.d/xprint* 521 dodoc "${D}"/etc/profile.d/xprint*
522 rm -f ${D}/etc/profile.d/xprint* 522 rm -f "${D}"/etc/profile.d/xprint*
523} 523}
524 524
525ensure_a_server_is_building() { 525ensure_a_server_is_building() {
526 for server in ${IUSE_SERVERS}; do 526 for server in ${IUSE_SERVERS}; do
527 use ${server} && return; 527 use ${server} && return;

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

  ViewVC Help
Powered by ViewVC 1.1.20