summaryrefslogtreecommitdiff
path: root/eclass/mozextension.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/mozextension.eclass
parent4429be000a778f363162554d59d903a725283d7d (diff)
gentoo auto-resync : 27:12:2022 - 20:10:49
Diffstat (limited to 'eclass/mozextension.eclass')
-rw-r--r--eclass/mozextension.eclass17
1 files changed, 11 insertions, 6 deletions
diff --git a/eclass/mozextension.eclass b/eclass/mozextension.eclass
index 25089aaeaf93..692aa816d8ed 100644
--- a/eclass/mozextension.eclass
+++ b/eclass/mozextension.eclass
@@ -1,13 +1,19 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-#
# @ECLASS: mozextension.eclass
# @MAINTAINER:
# Mozilla team <mozilla@gentoo.org>
+# @SUPPORTED_EAPIS: 8
# @BLURB: Install extensions for use in Mozilla products.
-if [[ ! ${_MOZEXTENSION} ]]; then
+case ${EAPI} in
+ 8) ;;
+ *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
+esac
+
+if [[ ! ${_MOZEXTENSION_ECLASS} ]]; then
+_MOZEXTENSION_ECLASS=1
# @ECLASS_VARIABLE: MOZEXTENSION_TARGET
# @DESCRIPTION:
@@ -17,7 +23,7 @@ if [[ ! ${_MOZEXTENSION} ]]; then
# paths specified in the eclass.
: ${MOZEXTENSION_TARGET:=""}
-DEPEND="app-arch/unzip"
+BDEPEND="app-arch/unzip"
mozversion_extension_location() {
case ${PN} in
@@ -117,8 +123,7 @@ xpi_copy() {
insinto "${MOZILLA_FIVE_HOME}"/extensions
fi
- newins "${DISTDIR%/}"/${x##*/}.xpi ${emid}.xpi
+ newins "${DISTDIR}"/${x##*/}.xpi ${emid}.xpi
}
-_MOZEXTENSION=1
fi