aboutsummaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorStuart Shelton <stuart@shelton.me>2016-02-04 22:41:34 +0000
committerStuart Shelton <stuart@shelton.me>2016-02-04 22:41:34 +0000
commit0c45589e729938642222dbe6b8fef186eb3d8498 (patch)
treec56db9efb8897d4cf6c58b33da73289770205219 /eclass
parentAdd dev-libs/openssl-1.0.2f (diff)
downloadsrcshelton-0c45589e729938642222dbe6b8fef186eb3d8498.tar.gz
srcshelton-0c45589e729938642222dbe6b8fef186eb3d8498.tar.bz2
srcshelton-0c45589e729938642222dbe6b8fef186eb3d8498.zip
Update eclass/php-pear-r1.eclass
Diffstat (limited to 'eclass')
-rw-r--r--eclass/php-pear-r1.eclass21
1 files changed, 12 insertions, 9 deletions
diff --git a/eclass/php-pear-r1.eclass b/eclass/php-pear-r1.eclass
index 099db6de..8f768ac1 100644
--- a/eclass/php-pear-r1.eclass
+++ b/eclass/php-pear-r1.eclass
@@ -1,6 +1,6 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Id: 85eee287746b1ade83e8a63e210708e845396c3e $
+# $Id: 237cf835b83c44b019c811b6958a83f19e036288 $
# @ECLASS: php-pear-r1.eclass
# @MAINTAINER:
@@ -19,14 +19,17 @@ inherit multilib
EXPORT_FUNCTIONS pkg_setup src_install
-# Silence repoman warnings
case "${EAPI:-0}" in
- 5)
- PHP_DEPEND="dev-lang/php:*"
- ;;
- *)
- PHP_DEPEND="dev-lang/php"
- ;;
+ 0|1|2|3|4)
+ PHP_DEPEND="dev-lang/php"
+ ;;
+ 5|6)
+ # Repoman will complain about the missing slot in newer EAPIs.
+ PHP_DEPEND="dev-lang/php:*"
+ ;;
+ *)
+ die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
+ ;;
esac
DEPEND="${PHP_DEPEND}