1 |
Signed-off-by: David Seifert <soap@g.o> |
2 |
--- |
3 |
eclass/mozextension.eclass | 17 +++++++++++------ |
4 |
1 file changed, 11 insertions(+), 6 deletions(-) |
5 |
|
6 |
diff --git a/eclass/mozextension.eclass b/eclass/mozextension.eclass |
7 |
index 25089aaeaf9..692aa816d8e 100644 |
8 |
--- a/eclass/mozextension.eclass |
9 |
+++ b/eclass/mozextension.eclass |
10 |
@@ -1,13 +1,19 @@ |
11 |
-# Copyright 1999-2021 Gentoo Authors |
12 |
+# Copyright 1999-2022 Gentoo Authors |
13 |
# Distributed under the terms of the GNU General Public License v2 |
14 |
-# |
15 |
|
16 |
# @ECLASS: mozextension.eclass |
17 |
# @MAINTAINER: |
18 |
# Mozilla team <mozilla@g.o> |
19 |
+# @SUPPORTED_EAPIS: 8 |
20 |
# @BLURB: Install extensions for use in Mozilla products. |
21 |
|
22 |
-if [[ ! ${_MOZEXTENSION} ]]; then |
23 |
+case ${EAPI} in |
24 |
+ 8) ;; |
25 |
+ *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; |
26 |
+esac |
27 |
+ |
28 |
+if [[ ! ${_MOZEXTENSION_ECLASS} ]]; then |
29 |
+_MOZEXTENSION_ECLASS=1 |
30 |
|
31 |
# @ECLASS_VARIABLE: MOZEXTENSION_TARGET |
32 |
# @DESCRIPTION: |
33 |
@@ -17,7 +23,7 @@ if [[ ! ${_MOZEXTENSION} ]]; then |
34 |
# paths specified in the eclass. |
35 |
: ${MOZEXTENSION_TARGET:=""} |
36 |
|
37 |
-DEPEND="app-arch/unzip" |
38 |
+BDEPEND="app-arch/unzip" |
39 |
|
40 |
mozversion_extension_location() { |
41 |
case ${PN} in |
42 |
@@ -117,8 +123,7 @@ xpi_copy() { |
43 |
insinto "${MOZILLA_FIVE_HOME}"/extensions |
44 |
fi |
45 |
|
46 |
- newins "${DISTDIR%/}"/${x##*/}.xpi ${emid}.xpi |
47 |
+ newins "${DISTDIR}"/${x##*/}.xpi ${emid}.xpi |
48 |
} |
49 |
|
50 |
-_MOZEXTENSION=1 |
51 |
fi |
52 |
-- |
53 |
2.39.0 |