1 |
commit: 65c7e1fca3a48c10f237e41528ac3c2382645ab1 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 20 21:15:01 2021 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 20 21:15:01 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65c7e1fc |
7 |
|
8 |
php-ext-pecl-r3.eclass: [QA] add EAPI guard |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
12 |
|
13 |
eclass/php-ext-pecl-r3.eclass | 15 +++++++++++++-- |
14 |
1 file changed, 13 insertions(+), 2 deletions(-) |
15 |
|
16 |
diff --git a/eclass/php-ext-pecl-r3.eclass b/eclass/php-ext-pecl-r3.eclass |
17 |
index 19040a7e762..eaf20e026f9 100644 |
18 |
--- a/eclass/php-ext-pecl-r3.eclass |
19 |
+++ b/eclass/php-ext-pecl-r3.eclass |
20 |
@@ -5,11 +5,22 @@ |
21 |
# @MAINTAINER: |
22 |
# Gentoo PHP team <php-bugs@g.o> |
23 |
# @BLURB: A uniform way to install PECL extensions |
24 |
+# @SUPPORTED_EAPIS: 6 7 |
25 |
# @DESCRIPTION: |
26 |
# This eclass should be used by all dev-php/pecl-* ebuilds as a uniform |
27 |
# way of installing PECL extensions. For more information about PECL, |
28 |
# see https://pecl.php.net/ |
29 |
|
30 |
+case ${EAPI:-0} in |
31 |
+ [67]) ;; |
32 |
+ *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; |
33 |
+esac |
34 |
+ |
35 |
+EXPORT_FUNCTIONS src_install src_test |
36 |
+ |
37 |
+if [[ -z ${_PHP_EXT_PECL_R3_ECLASS} ]] ; then |
38 |
+_PHP_EXT_PECL_R3_ECLASS=1 |
39 |
+ |
40 |
# @ECLASS-VARIABLE: PHP_EXT_PECL_PKG |
41 |
# @PRE_INHERIT |
42 |
# @DESCRIPTION: |
43 |
@@ -46,8 +57,6 @@ S="${WORKDIR}/${PHP_EXT_PECL_PKG_V}" |
44 |
|
45 |
inherit php-ext-source-r3 |
46 |
|
47 |
-EXPORT_FUNCTIONS src_install src_test |
48 |
- |
49 |
if [[ -z "${PHP_EXT_PECL_FILENAME}" ]] ; then |
50 |
SRC_URI="https://pecl.php.net/get/${PHP_EXT_PECL_PKG_V}.tgz" |
51 |
else |
52 |
@@ -85,3 +94,5 @@ php-ext-pecl-r3_src_test() { |
53 |
NO_INTERACTION="yes" emake test |
54 |
done |
55 |
} |
56 |
+ |
57 |
+fi |