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

Contents of /x11-base/xorg-server/xorg-server-1.4.99.902.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Tue Oct 14 17:51:04 2008 UTC (6 years ago) by dberkholz
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Clean up old ebuilds.
(Portage version: 2.2_rc12/cvs/Linux 2.6.27-rc9 x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20