summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVirgil Dupras <vdupras@gentoo.org>2018-07-26 14:54:36 -0400
committerVirgil Dupras <vdupras@gentoo.org>2018-07-31 10:44:08 -0400
commit3f226a4bdb139729e4c877a0c8f91cf4750e799d (patch)
tree23fd33a71ced2e1d458e51d32684611a1fe27e0c /eclass/virtualx.eclass
parentdev-python/fabric: fix broken completions in v1.14 (diff)
downloadgentoo-3f226a4bdb139729e4c877a0c8f91cf4750e799d.tar.gz
gentoo-3f226a4bdb139729e4c877a0c8f91cf4750e799d.tar.bz2
gentoo-3f226a4bdb139729e4c877a0c8f91cf4750e799d.zip
virtualx.eclass: support EAPI 7
The only adjustment made here is setting BDEPEND instead of DEPEND when under EAPI 7.
Diffstat (limited to 'eclass/virtualx.eclass')
-rw-r--r--eclass/virtualx.eclass14
1 files changed, 11 insertions, 3 deletions
diff --git a/eclass/virtualx.eclass b/eclass/virtualx.eclass
index 38e629eef4fe..cd0447a518c0 100644
--- a/eclass/virtualx.eclass
+++ b/eclass/virtualx.eclass
@@ -14,7 +14,7 @@ case "${EAPI:-0}" in
0|1|2|3)
die "virtualx.eclass: EAPI ${EAPI} is too old."
;;
- 4|5|6)
+ 4|5|6|7)
;;
*)
die "virtualx.eclass: EAPI ${EAPI} is not supported yet."
@@ -53,7 +53,11 @@ case ${VIRTUALX_REQUIRED} in
manual)
;;
always)
- DEPEND="${VIRTUALX_DEPEND}"
+ if [[ ${EAPI:-0} != [0123456] ]]; then
+ BDEPEND="${VIRTUALX_DEPEND}"
+ else
+ DEPEND="${VIRTUALX_DEPEND}"
+ fi
RDEPEND=""
;;
optional|tests)
@@ -77,7 +81,11 @@ case ${VIRTUALX_REQUIRED} in
IUSE="${VIRTUALX_USE}"
;;
*)
- DEPEND="${VIRTUALX_REQUIRED}? ( ${VIRTUALX_DEPEND} )"
+ if [[ ${EAPI:-0} != [0123456] ]]; then
+ BDEPEND="${VIRTUALX_REQUIRED}? ( ${VIRTUALX_DEPEND} )"
+ else
+ DEPEND="${VIRTUALX_REQUIRED}? ( ${VIRTUALX_DEPEND} )"
+ fi
RDEPEND=""
IUSE="${VIRTUALX_REQUIRED}"
;;