Magellan Linux

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

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

revision 16173 by niro, Mon Jan 28 09:10:20 2013 UTC revision 22551 by niro, Thu Oct 23 12:49:30 2014 UTC
# Line 11  SDEPEND="${SDEPEND} Line 11  SDEPEND="${SDEPEND}
11   >= dev-util/intltool-0.40   >= dev-util/intltool-0.40
12   >= sys-dev/gettext-0.17"   >= sys-dev/gettext-0.17"
13    
14  sminclude mtools  sminclude mtools gtk2 fdo-mime
15    
16  case ${PNAME} in  case ${PNAME} in
17   thunar-*-plugin) URISUBDIR="thunar-plugins" ;;   thunar-*-plugin) URISUBDIR="thunar-plugins"; UP2SUBDIR="thunar-plugins" ;;
18   xfce4-*-plugin) URISUBDIR="panel-plugins" ;;   xfce4-*-plugin) URISUBDIR="panel-plugins"; UP2SUBDIR="panel-plugins" ;;
19   parole|orage|ristretto|xfburn) URISUBDIR="apps" ;;   parole|orage|ristretto|xfburn) URISUBDIR="apps"; UP2SUBDIR="apps";;
20   xfce4-dict|xfce4-mixer|xfce4-notifyd|xfce4-taskmanager|xfce4-screenshooter|xfce4-terminal) URISUBDIR="apps" ;;   xfce4-dict|xfce4-mixer|xfce4-notifyd|xfce4-taskmanager|xfce4-screenshooter|xfce4-terminal) URISUBDIR="apps"; UP2SUBDIR="apps" ;;
21   *) URISUBDIR="xfce" ;;   *) URISUBDIR="xfce" ;;
22  esac  esac
23    
# Line 29  SRC_URI=( Line 29  SRC_URI=(
29   mirror://${PNAME}/${SRCFILE}   mirror://${PNAME}/${SRCFILE}
30  )  )
31    
32    UP2DATE="updatecmd_xfce ${PNAME}"
33    
34  # special functions needed by postinstall|postremove  # special functions needed by postinstall|postremove
35  SPECIAL_FUNCTIONS="${SPECIAL_FUNCTIONS} xfce_update_desktop_db xfce_update_mime_db xfce_update_icon_cache xfce_postinstall xfce_postremove"  SPECIAL_FUNCTIONS="${SPECIAL_FUNCTIONS} xfce_postinstall xfce_postremove"
36    
37  xfce_configure()  xfce_configure()
38  {  {
# Line 79  xfce_src_install() Line 81  xfce_src_install()
81   done   done
82  }  }
83    
 xfce_update_desktop_db()  
 {  
  # update desktop db  
  if [ -x ${MROOT}/usr/bin/update-desktop-database ]  
  then  
  echo "Updating desktop mime database ..."  
  ${MROOT}/usr/bin/update-desktop-database -q ${MROOT}/usr/share/applications  
  fi  
 }  
   
 xfce_update_mime_db()  
 {  
  # update mime db  
  if [ -x ${MROOT}/usr/bin/update-mime-database ]  
  then  
  echo "Updating shared mime info database ..."  
  ${MROOT}/usr/bin/update-mime-database ${MROOT}/usr/share/mime  
  fi  
 }  
   
 xfce_update_icon_cache()  
 {  
  if [ -x ${MROOT}/usr/bin/gtk-update-icon-cache ]  
  then  
  pushd ${BUILDDIR}/${PKGNAME}/binfiles &> /dev/null  
  local icons=$(find 'usr/share/icons' -maxdepth 1 -mindepth 1 -type d 2> /dev/null)  
  popd &> /dev/null  
   
  # abort here, if no icons where found  
  [[ -z ${icons} ]] && return  
   
  echo "Updating icons cache ..."  
  local i  
  for i in ${icons}  
  do  
  if [[ -f ${MROOT}/${i}/index.theme ]]  
  then  
  ${MROOT}/usr/bin/gtk-update-icon-cache -qf ${MROOT}/${i}  
  fi  
  done  
  fi  
 }  
   
84  xfce_postinstall()  xfce_postinstall()
85  {  {
86   xfce_update_desktop_db   fdo-mime_update_desktop_db
87   xfce_update_mime_db   fdo-mime_update_mime_db
88   xfce_update_icon_cache   gtk2_update_icon_cache
89  }  }
90    
91  xfce_postremove()  xfce_postremove()
92  {  {
93   xfce_update_desktop_db   fdo-mime_update_desktop_db
94   xfce_update_mime_db   fdo-mime_update_mime_db
95   xfce_update_icon_cache   gtk2_update_icon_cache
96  }  }
97    
98  export_inherits xfce src_prepare src_compile src_check src_install postinstall postremove  export_inherits xfce src_prepare src_compile src_check src_install postinstall postremove

Legend:
Removed from v.16173  
changed lines
  Added in v.22551