diff options
author | Ulrich Müller <ulm@gentoo.org> | 2021-09-02 10:55:03 +0200 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2021-09-03 17:19:46 +0200 |
commit | c7f5b41f33965df5efb3f3723bf797c69c9da955 (patch) | |
tree | 1cc575570c1eac1172ff9ebd57c37d7ba2cec1ea /eclass/subversion.eclass | |
parent | rpm.eclass: Move EXPORT_FUNCTIONS below inherit (diff) | |
download | gentoo-c7f5b41f33965df5efb3f3723bf797c69c9da955.tar.gz gentoo-c7f5b41f33965df5efb3f3723bf797c69c9da955.tar.bz2 gentoo-c7f5b41f33965df5efb3f3723bf797c69c9da955.zip |
subversion.eclass: Move EXPORT_FUNCTIONS below inherit
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'eclass/subversion.eclass')
-rw-r--r-- | eclass/subversion.eclass | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/eclass/subversion.eclass b/eclass/subversion.eclass index 6ed8a62dbe35..aa1a5c355877 100644 --- a/eclass/subversion.eclass +++ b/eclass/subversion.eclass @@ -14,18 +14,10 @@ ESVN="${ECLASS}" -case ${EAPI:-0} in - 4|5) - inherit eutils - EXPORT_FUNCTIONS src_unpack src_prepare pkg_preinst - ;; - 6|7) - inherit estack - EXPORT_FUNCTIONS src_unpack pkg_preinst - ;; - *) - die "${ESVN}: EAPI ${EAPI:-0} is not supported" - ;; +case ${EAPI} in + 4|5) inherit eutils ;; + 6|7) inherit estack ;; + *) die "${ESVN}: EAPI ${EAPI:-0} is not supported" ;; esac PROPERTIES+=" live" @@ -543,3 +535,8 @@ subversion__get_peg_revision() { echo "${peg_rev}" } + +EXPORT_FUNCTIONS src_unpack pkg_preinst +if [[ ${EAPI} == [45] ]]; then + EXPORT_FUNCTIONS src_prepare +fi |