Magellan Linux

Diff of /trunk/include/mozilla_i18n.sminc

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

trunk/core/include/mozilla_i18n.sminc revision 2 by niro, Fri Oct 10 13:29:42 2008 UTC trunk/include/mozilla_i18n.sminc revision 19655 by niro, Wed Oct 9 08:06:12 2013 UTC
# Line 1  Line 1 
1  # $Header: /magellan-cvs/smage/include/mozilla_i18n.sminc,v 1.7 2007-11-05 18:43:32 niro Exp $  # $Id$
2  # functions for mozilla i18n  # functions for mozilla i18n
3  #  #
4  # MOZ_SUITE, MOZ_LANG, STATE, PVER and PBUILD must be given  # MOZ_SUITE, MOZ_LANG, STATE, PVER and PBUILD must be given
5  #  #
6    
7  MOZ_HOME="/usr/$(mlibdir)/mozilla-firefox"  MOZ_HOME="/usr/$(mlibdir)/${MOZ_SUITE}"
8  PNAME="mozilla-${MOZ_SUITE}-i18n-${MOZ_LANG}"  PNAME="${MOZ_SUITE}-lang-${MOZ_LANG}"
9    
10    PCAT="app-lang"
11  case ${MOZ_SUITE} in  case ${MOZ_SUITE} in
12   firefox) PCATEGORIE="net-www" ;;   firefox) DEP_PCAT="net-www" ;;
13   thunderbird) PCATEGORIE="net-mail" ;;   thunderbird) DEP_PCAT="net-mail" ;;
14  esac  esac
15    
16  DESCRIPTION="Mozilla ${MOZ_SUITE} ${PVER} - ${MOZ_LANG} language files."  DESCRIPTION="Mozilla ${MOZ_SUITE} ${PVER} - ${MOZ_LANG} language files."
17  HOMEPAGE="http://www.mozilla.org/products/${MOZ_SUITE}/"  HOMEPAGE="http://www.mozilla.org/products/${MOZ_SUITE}/"
18    
19  DEPEND="== ${PCATEGORIE}/mozilla-${MOZ_SUITE}-${PVER}"  DEPEND="== ${DEP_PCAT}/${MOZ_SUITE}-${PVER}"
20    
21  SDEPEND=">= app-arch/unzip-5  SDEPEND=">= app-arch/unzip-5
22   >= sys-apps/sed-4"   >= virtual/sed"
23    
24  SRCFILE="${MOZ_LANG}.xpi"  SRCFILE="${MOZ_LANG}.xpi"
25  SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"  SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
# Line 34  mozilla_i18n_src_prepare() Line 35  mozilla_i18n_src_prepare()
35  {  {
36   install -d ${SRCDIR}   install -d ${SRCDIR}
37   munpack ${SRCFILE} ${SRCDIR} || die   munpack ${SRCFILE} ${SRCDIR} || die
  cd ${SRCDIR}  
   
  # fix location in manifest file  
  sed -i "s|jar:chrome/${MOZ_LANG}.jar|jar:${MOZ_LANG}.jar|" chrome.manifest || die  
38  }  }
39    
40  mozilla_i18n_src_install()  mozilla_i18n_src_install()
41  {  {
42   cd ${SRCDIR}   cd ${SRCDIR}
43    
44   # needed directories   # get install id for the extension
45   minstalldir ${MOZ_HOME}/chrome || die   local id="$(sed -n -e '/install-manifest/,$ { /em:id/!d; s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' install.rdf)"
46    
47   minstallfile chrome/${MOZ_LANG}.jar ${MOZ_HOME}/chrome/ || die   # needed directories
48   minstallfile chrome.manifest ${MOZ_HOME}/chrome/${MOZ_LANG}.manifest || die   minstalldir ${MOZ_HOME}/extensions/${id} || die
49     cp -Rv ${SRCDIR}/* ${BINDIR}/${MOZ_HOME}/extensions/${id} || die
50  }  }
51    
52  export_inherits mozilla_i18n src_prepare src_install  export_inherits mozilla_i18n src_prepare src_install

Legend:
Removed from v.2  
changed lines
  Added in v.19655