Magellan Linux

Contents of /trunk/include/mozilla_i18n.sminc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 19662 - (show annotations) (download)
Wed Oct 9 09:10:09 2013 UTC (10 years, 7 months ago) by niro
File size: 1270 byte(s)
-fixed broken src_install with split packages and their PNAME handling. old non split  cannot be evaluated in src_install. workaround be copying SRCFILE to SRCDIR in src_prepare phase
1 # $Id$
2 # functions for mozilla i18n
3 #
4 # MOZ_SUITE, MOZ_LANG, STATE, PVER and PBUILD must be given
5 #
6
7 MOZ_HOME="/usr/$(mlibdir)/${MOZ_SUITE}"
8 PNAME="${MOZ_SUITE}-lang-${MOZ_LANG}"
9
10 PCAT="app-lang"
11 case ${MOZ_SUITE} in
12 firefox) DEP_PCAT="net-www" ;;
13 thunderbird) DEP_PCAT="net-mail" ;;
14 esac
15
16 DESCRIPTION="Mozilla ${MOZ_SUITE} ${PVER} - ${MOZ_LANG} language files."
17 HOMEPAGE="http://www.mozilla.org/products/${MOZ_SUITE}/"
18
19 DEPEND="== ${DEP_PCAT}/${MOZ_SUITE}-${PVER}"
20
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 http://ftp.mozilla.org/pub/mozilla.org/${MOZ_SUITE}/releases/${PVER}/linux-i686/xpi/${SRCFILE}
29 mirror://${PNAME/-${MOZ_LANG}/}/${PVER}/${SRCFILE}
30 )
31
32 mozilla_i18n_src_prepare()
33 {
34 install -d ${SRCDIR} || die
35 cd ${SRCDIR}
36 cp ${SOURCEDIR}/${PNAME}/${SRCFILE} ${SRCDIR}/ || die
37 }
38
39 mozilla_i18n_src_install()
40 {
41 # get install id for the extension
42 local id="langpack-${MOZ_LANG}@firefox.mozilla.org"
43
44 # needed directories
45 minstalldir ${MOZ_HOME}/extensions/${id} || die
46 minstallfile ${SRCDIR}/${SRCFILE} ${BINDIR}/${MOZ_HOME}/extensions/${id}.xpi || die
47 }
48
49 export_inherits mozilla_i18n src_prepare src_install