Magellan Linux

Diff of /branches/R11-unstable/include/kde4.sminc

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

revision 6839 by niro, Wed Sep 22 18:58:22 2010 UTC revision 6918 by niro, Fri Sep 24 13:19:11 2010 UTC
# Line 61  SRC_URI=( Line 61  SRC_URI=(
61    
62  # exported functions and variables for mage-file  # exported functions and variables for mage-file
63  SPECIAL_VARS="${SPECIAL_VARS} KDEDIR"  SPECIAL_VARS="${SPECIAL_VARS} KDEDIR"
64  SPECIAL_FUNCTIONS="${SPECIAL_FUNCTIONS} kde4_buildsycoca kde4_postinstall kde4_postremove"  SPECIAL_FUNCTIONS="${SPECIAL_FUNCTIONS} kde4_postinstall kde4_postremove"
65    
66  kde4_configure()  kde4_configure()
67  {  {
# Line 149  kde4_src_install() Line 149  kde4_src_install()
149   done   done
150  }  }
151    
 kde4_buildsycoca()  
 {  
  if [[ -x ${KDEDIR}/bin/kbuildsycoca4 ]] &&  
  [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]  
  then  
  # install services dir with right permissions  
  install -m0755 -o root -g root -d ${MROOT}/usr/share/services  
   
  # kbuildsycoco4 needs a dbus session, but should not use the users session.  
  # so we start an own session here  
   
  # export everything the be able to kill the session  
  echo "Starting dbus session for kbuildsycoca4 ..."  
  local i  
  for i in $(dbus-launch)  
  do  
  export "$i"  
  done  
   
  echo "Running kbuildsycoca4 to build global database ..."  
  XDG_DATA_DIRS="${MROOT}/usr/share:${MROOT}${KDEDIR}/share:${MROOT}/usr/local/share"  
  ${MROOT}${KDEDIR}/bin/kbuildsycoca4 --global --noincremental &> /dev/null  
   
  echo "Killing dbus session for kbuildsycoca4 ..."  
  kill ${DBUS_SESSION_BUS_PID}  
  unset DBUS_SESSION_BUS_ADDRESS DBUS_SESSION_BUS_PID  
  fi  
 }  
   
 kde4_postinstall()  
 {  
  # rebuild system konfiguration cache  
  kde4_buildsycoca  
 }  
   
 kde4_postremove()  
 {  
  # rebuild system konfiguration cache  
  kde4_buildsycoca  
 }  
   
152  export_inherits kde4 src_prepare src_compile src_install postinstall postremove  export_inherits kde4 src_prepare src_compile src_install postinstall postremove

Legend:
Removed from v.6839  
changed lines
  Added in v.6918