Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Wed, 31 Mar 2021 05:20:32
Message-Id: 1617167995.63ca0790a0c61d65a4ddf1bd2f6a68fd9536552e.sam@gentoo
1 commit: 63ca0790a0c61d65a4ddf1bd2f6a68fd9536552e
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 31 04:34:48 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 31 05:19:55 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63ca0790
7
8 mozlinguas-v2.eclass: mark various variables as @PRE_INHERIT, @DEFAULT_UNSET
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 eclass/mozlinguas-v2.eclass | 13 +++++++++++++
13 1 file changed, 13 insertions(+)
14
15 diff --git a/eclass/mozlinguas-v2.eclass b/eclass/mozlinguas-v2.eclass
16 index be01ef6aca5..423f0bdcc71 100644
17 --- a/eclass/mozlinguas-v2.eclass
18 +++ b/eclass/mozlinguas-v2.eclass
19 @@ -28,6 +28,7 @@ esac
20 EXPORT_FUNCTIONS src_unpack src_compile src_install
21
22 # @ECLASS-VARIABLE: MOZ_LANGS
23 +# @DEFAULT_UNSET
24 # @DESCRIPTION:
25 # Array containing the list of language pack xpis available for
26 # this release. The list can be updated with scripts/get_langs.sh from the
27 @@ -35,34 +36,40 @@ EXPORT_FUNCTIONS src_unpack src_compile src_install
28 : ${MOZ_LANGS:=()}
29
30 # @ECLASS-VARIABLE: MOZ_PV
31 +# @DEFAULT_UNSET
32 # @DESCRIPTION:
33 # Ebuild package version converted to equivalent upstream version.
34 # Defaults to ${PV}, and should be overridden for alphas, betas, and RCs
35 : ${MOZ_PV:="${PV}"}
36
37 # @ECLASS-VARIABLE: MOZ_PN
38 +# @DEFAULT_UNSET
39 # @DESCRIPTION:
40 # Ebuild package name converted to equivalent upstream name.
41 # Defaults to ${PN}, and should be overridden for binary ebuilds.
42 : ${MOZ_PN:="${PN}"}
43
44 # @ECLASS-VARIABLE: MOZ_P
45 +# @DEFAULT_UNSET
46 # @DESCRIPTION:
47 # Ebuild package name + version converted to upstream equivalent.
48 # Defaults to ${MOZ_PN}-${MOZ_PV}
49 : ${MOZ_P:="${MOZ_PN}-${MOZ_PV}"}
50
51 # @ECLASS-VARIABLE: MOZ_FTP_URI
52 +# @DEFAULT_UNSET
53 # @DESCRIPTION:
54 # The ftp URI prefix for the release tarballs and language packs.
55 : ${MOZ_FTP_URI:=""}
56
57 # @ECLASS-VARIABLE: MOZ_HTTP_URI
58 +# @PRE_INHERIT
59 # @DESCRIPTION:
60 # The http URI prefix for the release tarballs and language packs.
61 : ${MOZ_HTTP_URI:=""}
62
63 # @ECLASS-VARIABLE: MOZ_LANGPACK_HTTP_URI
64 +# @PRE_INHERIT
65 # @DESCRIPTION:
66 # An alternative http URI if it differs from official mozilla URI.
67 # Defaults to whatever MOZ_HTTP_URI was set to.
68 @@ -91,6 +98,8 @@ EXPORT_FUNCTIONS src_unpack src_compile src_install
69 : ${MOZ_LANGPACK_UNOFFICIAL:=""}
70
71 # @ECLASS-VARIABLE: MOZ_GENERATE_LANGPACKS
72 +# @PRE_INHERIT
73 +# @DEFAULT_UNSET
74 # @DESCRIPTION:
75 # This flag specifies whether or not the langpacks should be
76 # generated directly during the build process, rather than
77 @@ -106,6 +115,8 @@ EXPORT_FUNCTIONS src_unpack src_compile src_install
78 : ${MOZ_L10N_SOURCEDIR:="${WORKDIR}/l10n-sources"}
79
80 # @ECLASS-VARIABLE: MOZ_L10N_URI_PREFIX
81 +# @PRE_INHERIT
82 +# @DEFAULT_UNSET
83 # @DESCRIPTION:
84 # The full URI prefix of the distfile for each l10n locale. The
85 # AB_CD and MOZ_L10N_URI_SUFFIX will be appended to this to complete the
86 @@ -115,12 +126,14 @@ EXPORT_FUNCTIONS src_unpack src_compile src_install
87 : ${MOZ_L10N_URI_PREFIX:=""}
88
89 # @ECLASS-VARIABLE: MOZ_L10N_URI_SUFFIX
90 +# @DEFAULT_UNSET
91 # @DESCRIPTION:
92 # The suffix of l10n source distfiles.
93 # Defaults to '.tar.xz'
94 : ${MOZ_L10N_URI_SUFFIX:=".tar.xz"}
95
96 # @ECLASS-VARIABLE: MOZ_FORCE_UPSTREAM_L10N
97 +# @DEFAULT_UNSET
98 # @DESCRIPTION:
99 # Set this to use upstream langpaks even if the package normally
100 # shouldn't (ie it is an alpha or beta package)