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

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

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

Revision 1.11 Revision 1.12
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 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.4.2.ebuild,v 1.11 2009/05/05 15:05:50 remi Exp $ 3# $Header: /var/cvsroot/gentoo-x86/x11-base/xorg-server/Attic/xorg-server-1.4.2.ebuild,v 1.12 2009/05/13 08:53:59 remi 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
106IUSE_SERVERS="dmx kdrive xorg" 106IUSE_SERVERS="dmx kdrive xorg"
107IUSE="${IUSE_VIDEO_CARDS} 107IUSE="${IUSE_VIDEO_CARDS}
108 ${IUSE_INPUT_DEVICES} 108 ${IUSE_INPUT_DEVICES}
109 ${IUSE_SERVERS} 109 ${IUSE_SERVERS}
110 3dfx tslib 110 3dfx tslib
111 dri hal ipv6 minimal nptl sdl xprint" 111 dri hal ipv6 minimal nptl sdl"
112RDEPEND="hal? ( sys-apps/hal ) 112RDEPEND="hal? ( sys-apps/hal )
113 tslib? ( x11-libs/tslib ) 113 tslib? ( x11-libs/tslib )
114 >=x11-libs/libXfont-1.3.1 114 >=x11-libs/libXfont-1.3.1
115 >=x11-libs/xtrans-1.0.4 115 >=x11-libs/xtrans-1.0.4
116 >=x11-libs/libXau-1.0.3 116 >=x11-libs/libXau-1.0.3
177 >=x11-proto/bigreqsproto-1.0.2 177 >=x11-proto/bigreqsproto-1.0.2
178 >=x11-proto/xcmiscproto-1.1.2 178 >=x11-proto/xcmiscproto-1.1.2
179 >=x11-proto/glproto-1.4.8 179 >=x11-proto/glproto-1.4.8
180 dmx? ( >=x11-proto/dmxproto-2.2.2 ) 180 dmx? ( >=x11-proto/dmxproto-2.2.2 )
181 dri? ( >=x11-proto/xf86driproto-2.0.3 181 dri? ( >=x11-proto/xf86driproto-2.0.3
182 >=x11-libs/libdrm-2.3 ) 182 >=x11-libs/libdrm-2.3 )"
183 xprint? ( =x11-proto/printproto-1.0.3
184 >=x11-apps/mkfontdir-1.0.3
185 >=x11-apps/mkfontscale-1.0.3
186 >=x11-apps/xplsprinters-1.0.1 )"
187 183
188# Drivers 184# Drivers
189PDEPEND=" 185PDEPEND="
190 xorg? ( 186 xorg? (
191 input_devices_acecad? ( >=x11-drivers/xf86-input-acecad-1.1.0 ) 187 input_devices_acecad? ( >=x11-drivers/xf86-input-acecad-1.1.0 )
309 $(use_enable !minimal xvfb) 305 $(use_enable !minimal xvfb)
310 $(use_enable !minimal xnest) 306 $(use_enable !minimal xnest)
311 $(use_enable !minimal install-libxf86config) 307 $(use_enable !minimal install-libxf86config)
312 $(use_enable dri) 308 $(use_enable dri)
313 $(use_enable xorg) 309 $(use_enable xorg)
314 $(use_enable xprint) 310 --disable-xprint
315 $(use_enable nptl glx-tls) 311 $(use_enable nptl glx-tls)
316 $(use_enable !minimal xorgcfg) 312 $(use_enable !minimal xorgcfg)
317 $(use_enable hal config-dbus) 313 $(use_enable hal config-dbus)
318 $(use_enable hal config-hal) 314 $(use_enable hal config-hal)
319 --sysconfdir=/etc/X11 315 --sysconfdir=/etc/X11
367 fi 363 fi
368 364
369 # Make sure eautoreconf gets run if we need the autoconf/make 365 # Make sure eautoreconf gets run if we need the autoconf/make
370 # changes. 366 # changes.
371 if [[ ${SNAPSHOT} != "yes" ]]; then 367 if [[ ${SNAPSHOT} != "yes" ]]; then
372 if use kdrive || use dmx || use xprint; then 368 if use kdrive || use dmx ; then
373 SNAPSHOT="yes" 369 SNAPSHOT="yes"
374 fi 370 fi
375 fi 371 fi
376 372
377 if use hal; then 373 if use hal; then
381 || die "failed to fix DBUS config directory" 377 || die "failed to fix DBUS config directory"
382 SNAPSHOT="yes" 378 SNAPSHOT="yes"
383 fi 379 fi
384 380
385 x-modular_reconf_source 381 x-modular_reconf_source
386 #do not install xprint's Xsession.d files, we'll do it later
387 if use xprint; then
388 sed -e "s:install-data-am\: install-dist_xpcDATA:install-data-am\::g" \
389 -i "${S}"/hw/xprint/etc/Xsession.d/Makefile.in \
390 || die "sed of Xsession.d makefile failed"
391 fi
392} 382}
393 383
394src_install() { 384src_install() {
395 x-modular_src_install 385 x-modular_src_install
396 386
527 done 517 done
528 eend 0 518 eend 0
529} 519}
530 520
531server_based_install() { 521server_based_install() {
532 use xprint && xprint_src_install
533
534 if ! use xorg; then 522 if ! use xorg; then
535 rm "${D}"/usr/share/man/man1/Xserver.1x \ 523 rm "${D}"/usr/share/man/man1/Xserver.1x \
536 "${D}"/usr/$(get_libdir)/xserver/SecurityPolicy \ 524 "${D}"/usr/$(get_libdir)/xserver/SecurityPolicy \
537 "${D}"/usr/$(get_libdir)/pkgconfig/xorg-server.pc \ 525 "${D}"/usr/$(get_libdir)/pkgconfig/xorg-server.pc \
538 "${D}"/usr/share/man/man1/Xserver.1x 526 "${D}"/usr/share/man/man1/Xserver.1x
546 echo 534 echo
547# eselect opengl set --use-old ${OPENGL_DIR} 535# eselect opengl set --use-old ${OPENGL_DIR}
548 eselect opengl set ${OLD_IMPLEM} 536 eselect opengl set ${OLD_IMPLEM}
549} 537}
550 538
551xprint_src_install() {
552 # RH-style init script, we provide a wrapper
553 exeinto /usr/$(get_libdir)/misc
554 doexe "${S}"/hw/xprint/etc/init.d/xprint
555 # Install the wrapper
556 newinitd "${FILESDIR}"/xprint.init xprint
557 # Install profile scripts
558 insinto /etc/profile.d
559 doins "${S}"/hw/xprint/etc/profile.d/xprint*
560 exeinto /etc/X11/xinit/xinitrc.d
561 doexe "${S}"/hw/xprint/etc/Xsession.d/92xprint-xpserverlist
562 # Patch profile scripts
563 sed -e "s:/etc/init.*get_xpserverlist:/usr/$(get_libdir)/misc/xprint \
564 get_xpserverlist:g" -i "${D}"/etc/profile.d/xprint* \
565 "${D}"/etc/X11/xinit/xinitrc.d/92xprint-xpserverlist
566 # Move profile scripts, we can't touch /etc/profile.d/ in Gentoo
567 dodoc "${D}"/etc/profile.d/xprint*
568 rm -f "${D}"/etc/profile.d/xprint*
569}
570
571ensure_a_server_is_building() { 539ensure_a_server_is_building() {
572 for server in ${IUSE_SERVERS}; do 540 for server in ${IUSE_SERVERS}; do
573 use ${server} && return; 541 use ${server} && return;
574 done 542 done
575 eerror "You need to specify at least one server to build." 543 eerror "You need to specify at least one server to build."

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.20