Annotation of /trunk/include/mozilla_i18n.sminc
Parent Directory | Revision Log
Revision 19654 -
(hide annotations)
(download)
Wed Oct 9 08:02:31 2013 UTC (11 years ago) by niro
File size: 1059 byte(s)
Wed Oct 9 08:02:31 2013 UTC (11 years ago) by niro
File size: 1059 byte(s)
-do not extract language xpi anymore, just install them
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 | 15837 | firefox) DEP_PCAT="net-www" ;; |
13 | thunderbird) DEP_PCAT="net-mail" ;; | ||
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 | ftp://ftp.mozilla.org/pub/mozilla.org/${MOZ_SUITE}/releases/${PVER}/linux-i686/xpi/${SRCFILE} | ||
28 | mirror://${PNAME/-${MOZ_LANG}/}/${PVER}/${SRCFILE} | ||
29 | ) | ||
30 | |||
31 | mozilla_i18n_src_install() | ||
32 | { | ||
33 | cd ${SRCDIR} | ||
34 | |||
35 | niro | 11031 | # get install id for the extension |
36 | niro | 19654 | local id="langpack-${MOZ_LANG}@firefox.mozilla.org" |
37 | niro | 11031 | |
38 | niro | 2 | # needed directories |
39 | niro | 11031 | minstalldir ${MOZ_HOME}/extensions/${id} || die |
40 | niro | 19654 | minstallfile ${SOURCESDIR}/${PNAME}/${SRCFILE} ${BINDIR}/${MOZ_HOME}/extensions/${id}.xpi || die |
41 | niro | 2 | } |
42 | |||
43 | niro | 19654 | export_inherits mozilla_i18n src_install |