/[gentoo-x86]/eclass/kde4-functions.eclass
Gentoo

Diff of /eclass/kde4-functions.eclass

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

Revision 1.3 Revision 1.4
1# Copyright 1999-2008 Gentoo Foundation 1# Copyright 1999-2008 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/eclass/kde4-functions.eclass,v 1.3 2008/03/10 21:40:05 zlin Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-functions.eclass,v 1.4 2008/03/13 17:57:51 ingmar Exp $
4 4
5# @ECLASS: kde4-functions.eclass 5# @ECLASS: kde4-functions.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# kde@gentoo.org 7# kde@gentoo.org
8# @BLURB: Common ebuild functions for monolithic and split KDE 4 packages 8# @BLURB: Common ebuild functions for monolithic and split KDE 4 packages
360 360
361 # kbuildsycoca4 needs a running dbus session to work correctly. 361 # kbuildsycoca4 needs a running dbus session to work correctly.
362 # We have to start a new dbus session, because the DBUS_SESSION_BUS_ADDRESS in the environment 362 # We have to start a new dbus session, because the DBUS_SESSION_BUS_ADDRESS in the environment
363 # could from from the user's environment (through su [without '-']), causing kbuildsycoca4 to hang. 363 # could from from the user's environment (through su [without '-']), causing kbuildsycoca4 to hang.
364 364
365 einfo "Starting dbus session for kbuildsycoca4" 365 echo "Starting dbus session for kbuildsycoca4"
366 local _i 366 local _i
367 for _i in $(dbus-launch); do 367 for _i in $(dbus-launch); do
368 # We export both the ADDRESS _and_ the PID. We need the latter only to kill our session. 368 # We export both the ADDRESS _and_ the PID. We need the latter only to kill our session.
369 debug-print "Exporting: ${_i}" 369 debug-print "Exporting: ${_i}"
370 export "${_i}"; 370 export "${_i}";
375 # This is needed because we support multiple kde versions installed together. 375 # This is needed because we support multiple kde versions installed together.
376 XDG_DATA_DIRS="/usr/share:${KDEDIRS}/share:/usr/local/share" 376 XDG_DATA_DIRS="/usr/share:${KDEDIRS}/share:/usr/local/share"
377 ${KDEDIR}/bin/kbuildsycoca4 --global --noincremental &> /dev/null 377 ${KDEDIR}/bin/kbuildsycoca4 --global --noincremental &> /dev/null
378 eend $? 378 eend $?
379 379
380 einfo "Killing dbus session for kbuildsycoca4" 380 echo "Killing dbus session for kbuildsycoca4"
381 debug-print "ADDRES ${DBUS_SESSION_BUS_ADDRESS}" 381 debug-print "ADDRES ${DBUS_SESSION_BUS_ADDRESS}"
382 debug-print "PID: ${DBUS_SESSION_BUS_PID}" 382 debug-print "PID: ${DBUS_SESSION_BUS_PID}"
383 kill ${DBUS_SESSION_BUS_PID} 383 kill ${DBUS_SESSION_BUS_PID}
384 eend $? 384 eend $?
385 unset DBUS_SESSION_BUS_ADDRES DBUS_SESSION_BUS_PID 385 unset DBUS_SESSION_BUS_ADDRES DBUS_SESSION_BUS_PID

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

  ViewVC Help
Powered by ViewVC 1.1.20