Magellan Linux

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

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

trunk/core/include/xfce.sminc revision 5709 by niro, Sat Aug 7 11:59:27 2010 UTC trunk/include/xfce.sminc revision 22510 by niro, Tue Oct 21 11:32:06 2014 UTC
# Line 1  Line 1 
1  # $Id$  # $Id$
2    
3  : ${PCATEGORIE="xfce-base"}  : ${PCAT="xfce-base"}
4  : ${HOMEPAGE="http://www.xfce.org/"}  : ${HOMEPAGE="http://www.xfce.org/"}
5    
6  : ${SRCFILE="${PNAME}-${PVER}.tar.bz2"}  : ${SRCFILE="${PNAME}-${PVER}.tar.bz2"}
# 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
17     thunar-*-plugin) URISUBDIR="thunar-plugins" ;;
18     xfce4-*-plugin) URISUBDIR="panel-plugins" ;;
19     parole|orage|ristretto|xfburn) URISUBDIR="apps" ;;
20     xfce4-dict|xfce4-mixer|xfce4-notifyd|xfce4-taskmanager|xfce4-screenshooter|xfce4-terminal) URISUBDIR="apps" ;;
21     *) URISUBDIR="xfce" ;;
22    esac
23    
24  # default SRC_URIs  # default SRC_URIs
25  SRC_URI=(  SRC_URI=(
26   ${SRC_URI[*]}   ${SRC_URI[*]}
27   http://mocha.xfce.org/archive/src/xfce/${PNAME}/${PVER%.*}/${SRCFILE}   http://mocha.xfce.org/archive/src/${URISUBDIR}/${PNAME}/$(echo ${PVER} | cut -d. -f1-2)/${SRCFILE}
28     http://archive.xfce.org/src/${URISUBDIR}/${PNAME}/$(echo ${PVER} | cut -d. -f1-2)/${SRCFILE}
29   mirror://${PNAME}/${SRCFILE}   mirror://${PNAME}/${SRCFILE}
30  )  )
31    
32  # special functions needed by postinstall|postremove  # special functions needed by postinstall|postremove
33  SPECIAL_FUNCTIONS="${SPECIAL_FUNCTIONS} xfce_update_desktop_db xfce_update_mime_db xfce_update_icon_cache"  SPECIAL_FUNCTIONS="${SPECIAL_FUNCTIONS} xfce_postinstall xfce_postremove"
34    
35  xfce_configure()  xfce_configure()
36  {  {
37   local configure_opts="$@"   local configure_opts="$@"
38   mconfigure ${configure_opts} || die   mconfigure \
39     --libexecdir=/usr/$(mlibdir)/${PNAME} \
40     --with-html-dir=/usr/share/doc/${PNAME}-${PVER}/html \
41     --disable-debug \
42     --disable-static \
43     ${configure_opts} \
44     || die
45  }  }
46    
47  xfce_src_prepare()  xfce_src_prepare()
# Line 37  xfce_src_prepare() Line 52  xfce_src_prepare()
52  xfce_src_compile()  xfce_src_compile()
53  {  {
54   cd ${SRCDIR}   cd ${SRCDIR}
55   xfce_configure --disable-debug --disable-static || die  
56     xfce_configure || die
57   mmake ${XFCE_MAKE_OPTS} || die   mmake ${XFCE_MAKE_OPTS} || die
58  }  }
59    
60    xfce_src_check()
61    {
62     cd ${SRCDIR}
63     mmake -k check || die
64    }
65    
66  xfce_src_install()  xfce_src_install()
67  {  {
68   cd ${SRCDIR}   cd ${SRCDIR}
# Line 57  xfce_src_install() Line 79  xfce_src_install()
79   done   done
80  }  }
81    
 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  
 }  
   
82  xfce_postinstall()  xfce_postinstall()
83  {  {
84   xfce_update_desktop_db   fdo-mime_update_desktop_db
85   xfce_update_mime_db   fdo-mime_update_mime_db
86   xfce_update_icon_cache   gtk2_update_icon_cache
87  }  }
88    
89  xfce_postremove()  xfce_postremove()
90  {  {
91   xfce_update_desktop_db   fdo-mime_update_desktop_db
92   xfce_update_mime_db   fdo-mime_update_mime_db
93   xfce_update_icon_cache   gtk2_update_icon_cache
94  }  }
95    
96  export_inherits xfce src_prepare src_compile src_install postinstall postremove  export_inherits xfce src_prepare src_compile src_check src_install postinstall postremove

Legend:
Removed from v.5709  
changed lines
  Added in v.22510