summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2018-05-04 07:11:47 +0200
committerUlrich Müller <ulm@gentoo.org>2018-05-21 20:06:32 +0200
commit54804862fa24e3f39873d7b91e7b52124e74f43a (patch)
tree64f081afd8cffb4383832e54cd5e2ea2e806c062 /eclass/bzr.eclass
parentdev-util/meson: mark 0.45.1 m68k/s390/sh stable (diff)
downloadgentoo-54804862fa24e3f39873d7b91e7b52124e74f43a.tar.gz
gentoo-54804862fa24e3f39873d7b91e7b52124e74f43a.tar.bz2
gentoo-54804862fa24e3f39873d7b91e7b52124e74f43a.zip
bzr.eclass: Support EAPI 7.
Diffstat (limited to 'eclass/bzr.eclass')
-rw-r--r--eclass/bzr.eclass13
1 files changed, 7 insertions, 6 deletions
diff --git a/eclass/bzr.eclass b/eclass/bzr.eclass
index 7fa682e12501..29464ec32d5d 100644
--- a/eclass/bzr.eclass
+++ b/eclass/bzr.eclass
@@ -20,19 +20,20 @@
EBZR="bzr.eclass"
+if [[ ${EBZR_REPO_URI%%:*} = sftp ]]; then
+ DEPEND=">=dev-vcs/bzr-2.6.0[sftp]"
+else
+ DEPEND=">=dev-vcs/bzr-2.6.0"
+fi
+
case ${EAPI:-0} in
2|3|4|5|6) ;;
+ 7) BDEPEND="${DEPEND}"; DEPEND="" ;;
*) die "${EBZR}: EAPI ${EAPI:-0} is not supported" ;;
esac
EXPORT_FUNCTIONS src_unpack
-if [[ ${EBZR_REPO_URI%%:*} = sftp ]]; then
- DEPEND=">=dev-vcs/bzr-2.6.0[sftp]"
-else
- DEPEND=">=dev-vcs/bzr-2.6.0"
-fi
-
# @ECLASS-VARIABLE: EBZR_STORE_DIR
# @DESCRIPTION:
# The directory to store all fetched Bazaar live sources.