Magellan Linux

Annotation of /trunk/include/mozilla_i18n.sminc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 20075 - (hide annotations) (download)
Mon Nov 25 09:19:18 2013 UTC (10 years, 5 months ago) by niro
File size: 1227 byte(s)
-fixed MOZ_APP_DIR for browsers
1 niro 9863 # $Id$
2 niro 2 # functions for mozilla i18n
3     #
4     # MOZ_SUITE, MOZ_LANG, STATE, PVER and PBUILD must be given
5     #
6    
7 niro 15834 MOZ_HOME="/usr/$(mlibdir)/${MOZ_SUITE}"
8     PNAME="${MOZ_SUITE}-lang-${MOZ_LANG}"
9 niro 2
10 niro 15837 PCAT="app-lang"
11 niro 2 case ${MOZ_SUITE} in
12 niro 20075 firefox) DEP_PCAT="net-www"; MOZ_APP_DIR="${MOZ_HOME}/browser" ;;
13     thunderbird) DEP_PCAT="net-mail"; MOZ_APP_DIR="${MOZ_HOME}" ;;
14 niro 2 esac
15    
16     DESCRIPTION="Mozilla ${MOZ_SUITE} ${PVER} - ${MOZ_LANG} language files."
17     HOMEPAGE="http://www.mozilla.org/products/${MOZ_SUITE}/"
18    
19 niro 15837 DEPEND="== ${DEP_PCAT}/${MOZ_SUITE}-${PVER}"
20 niro 2
21     SRCFILE="${MOZ_LANG}.xpi"
22     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
23    
24     sminclude mtools
25    
26     SRC_URI=(
27 niro 19657 http://ftp.mozilla.org/pub/mozilla.org/${MOZ_SUITE}/releases/${PVER}/linux-i686/xpi/${SRCFILE}
28 niro 2 mirror://${PNAME/-${MOZ_LANG}/}/${PVER}/${SRCFILE}
29     )
30    
31 niro 19662 mozilla_i18n_src_prepare()
32     {
33     install -d ${SRCDIR} || die
34     cd ${SRCDIR}
35 niro 19669 cp ${SOURCEDIR}/$(mpname)/${SRCFILE} ${SRCDIR}/ || die
36 niro 19662 }
37    
38 niro 2 mozilla_i18n_src_install()
39     {
40 niro 11031 # get install id for the extension
41 niro 19656 local id="langpack-${MOZ_LANG}@firefox.mozilla.org"
42 niro 11031
43 niro 2 # needed directories
44 niro 20075 minstalldir ${MOZ_APP_DIR}/extensions || die
45     minstallfile ${SRCDIR}/${SRCFILE} ${MOZ_APP_DIR}/extensions/${id}.xpi || die
46 niro 2 }
47    
48 niro 19662 export_inherits mozilla_i18n src_prepare src_install