summaryrefslogtreecommitdiff
path: root/eclass/mozlinguas-v2.eclass
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-12-27 20:10:49 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-12-27 20:10:49 +0000
commite44b9cf3e5b67eaf723e4a335faf39c87167abd3 (patch)
tree3e6660b30910e7eb33586a99c4e892b52380bad6 /eclass/mozlinguas-v2.eclass
parent4429be000a778f363162554d59d903a725283d7d (diff)
gentoo auto-resync : 27:12:2022 - 20:10:49
Diffstat (limited to 'eclass/mozlinguas-v2.eclass')
-rw-r--r--eclass/mozlinguas-v2.eclass25
1 files changed, 13 insertions, 12 deletions
diff --git a/eclass/mozlinguas-v2.eclass b/eclass/mozlinguas-v2.eclass
index 155b894edc53..063430e1cb74 100644
--- a/eclass/mozlinguas-v2.eclass
+++ b/eclass/mozlinguas-v2.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: mozlinguas-v2.eclass
@@ -7,25 +7,22 @@
# @AUTHOR:
# Nirbheek Chauhan <nirbheek@gentoo.org>
# Ian Stakenvicius <axs@gentoo.org>
-# @SUPPORTED_EAPIS: 6 7 8
+# @SUPPORTED_EAPIS: 8
# @BLURB: Handle language packs for mozilla products
# @DESCRIPTION:
# Sets IUSE according to MOZ_LANGS (language packs available). Also exports
# src_unpack, src_compile and src_install for use in ebuilds, and provides
# supporting functions for langpack generation and installation.
-inherit mozextension
-
-case "${EAPI:-0}" in
- 6)
- inherit eapi7-ver ;;
- 7|8)
- ;;
- *)
- die "EAPI ${EAPI} is not supported, contact eclass maintainers" ;;
+case ${EAPI} in
+ 8) ;;
+ *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
-EXPORT_FUNCTIONS src_unpack src_compile src_install
+if [[ ! ${_MOZLINGUAS_V2_ECLASS} ]]; then
+_MOZLINGUAS_V2_ECLASS=1
+
+inherit mozextension
# @ECLASS_VARIABLE: MOZ_LANGS
# @DEFAULT_UNSET
@@ -402,3 +399,7 @@ mozlinguas_src_install() {
mozlinguas-v2_src_install() {
mozlinguas_src_install
}
+
+fi
+
+EXPORT_FUNCTIONS src_unpack src_compile src_install