diff options
author | Ulrich Müller <ulm@gentoo.org> | 2022-02-22 09:46:32 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2022-02-28 18:58:55 +0100 |
commit | 6f4ad17babcf9171b7c8ab4f97c6d231c8359b5c (patch) | |
tree | 75e94848f36bcce5ccc475692bfff101bb11a434 /eclass/subversion.eclass | |
parent | app-emulation/diskimage-builder: clean up old ebuilds (diff) | |
download | gentoo-6f4ad17babcf9171b7c8ab4f97c6d231c8359b5c.tar.gz gentoo-6f4ad17babcf9171b7c8ab4f97c6d231c8359b5c.tar.bz2 gentoo-6f4ad17babcf9171b7c8ab4f97c6d231c8359b5c.zip |
subversion.eclass: Drop support for EAPIs 4 and 5
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'eclass/subversion.eclass')
-rw-r--r-- | eclass/subversion.eclass | 85 |
1 files changed, 5 insertions, 80 deletions
diff --git a/eclass/subversion.eclass b/eclass/subversion.eclass index aa1a5c355877..2a2297678ad1 100644 --- a/eclass/subversion.eclass +++ b/eclass/subversion.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: subversion.eclass @@ -6,16 +6,15 @@ # Akinori Hattori <hattya@gentoo.org> # @AUTHOR: # Original Author: Akinori Hattori <hattya@gentoo.org> -# @SUPPORTED_EAPIS: 4 5 6 7 +# @SUPPORTED_EAPIS: 6 7 # @BLURB: Fetch software sources from subversion repositories # @DESCRIPTION: -# The subversion eclass provides functions to fetch, patch and bootstrap -# software sources from subversion repositories. +# The subversion eclass provides functions to fetch software sources +# from subversion repositories. ESVN="${ECLASS}" case ${EAPI} in - 4|5) inherit eutils ;; 6|7) inherit estack ;; *) die "${ESVN}: EAPI ${EAPI:-0} is not supported" ;; esac @@ -27,7 +26,7 @@ DEPEND=" net-misc/rsync" case ${EAPI} in - 4|5|6) ;; + 6) ;; *) BDEPEND="${DEPEND}"; DEPEND="" ;; esac @@ -117,24 +116,6 @@ ESVN_PASSWORD="${ESVN_PASSWORD:-}" # default: ${PN/-svn}. ESVN_PROJECT="${ESVN_PROJECT:-${PN/-svn}}" -# @ECLASS-VARIABLE: ESVN_BOOTSTRAP -# @DESCRIPTION: -# Bootstrap script or command like autogen.sh or etc.. -# Removed in EAPI 6 and later. -ESVN_BOOTSTRAP="${ESVN_BOOTSTRAP:-}" - -# @ECLASS-VARIABLE: ESVN_PATCHES -# @DESCRIPTION: -# subversion eclass can apply patches in subversion_bootstrap(). -# you can use regexp in this variable like *.diff or *.patch or etc. -# NOTE: patches will be applied before ESVN_BOOTSTRAP is processed. -# -# Patches are searched both in ${PWD} and ${FILESDIR}, if not found in either -# location, the installation dies. -# -# Removed in EAPI 6 and later, use PATCHES instead. -ESVN_PATCHES="${ESVN_PATCHES:-}" - # @ECLASS-VARIABLE: ESVN_RESTRICT # @DESCRIPTION: # this should be a space delimited list of subversion eclass features to @@ -363,50 +344,6 @@ subversion_fetch() { echo } -# @FUNCTION: subversion_bootstrap -# @DESCRIPTION: -# Apply patches in ${ESVN_PATCHES} and run ${ESVN_BOOTSTRAP} if specified. -# Removed in EAPI 6 and later. -subversion_bootstrap() { - [[ ${EAPI} == [012345] ]] || die "${FUNCNAME} is removed from subversion.eclass in EAPI 6 and later" - - if has "export" ${ESVN_RESTRICT}; then - return - fi - - cd "${S}" - - if [[ -n ${ESVN_PATCHES} ]]; then - local patch fpatch - einfo "apply patches -->" - for patch in ${ESVN_PATCHES}; do - if [[ -f ${patch} ]]; then - epatch "${patch}" - else - for fpatch in ${FILESDIR}/${patch}; do - if [[ -f ${fpatch} ]]; then - epatch "${fpatch}" - else - die "${ESVN}: ${patch} not found" - fi - done - fi - done - echo - fi - - if [[ -n ${ESVN_BOOTSTRAP} ]]; then - einfo "begin bootstrap -->" - if [[ -f ${ESVN_BOOTSTRAP} && -x ${ESVN_BOOTSTRAP} ]]; then - einfo " bootstrap with a file: ${ESVN_BOOTSTRAP}" - eval "./${ESVN_BOOTSTRAP}" || die "${ESVN}: can't execute ESVN_BOOTSTRAP." - else - einfo " bootstrap with command: ${ESVN_BOOTSTRAP}" - eval "${ESVN_BOOTSTRAP}" || die "${ESVN}: can't eval ESVN_BOOTSTRAP." - fi - fi -} - # @FUNCTION: subversion_wc_info # @USAGE: [repo_uri] # @RETURN: ESVN_WC_URL, ESVN_WC_ROOT, ESVN_WC_UUID, ESVN_WC_REVISION and ESVN_WC_PATH @@ -440,15 +377,6 @@ subversion_src_unpack() { subversion_fetch || die "${ESVN}: unknown problem occurred in subversion_fetch." } -# @FUNCTION: subversion_src_prepare -# @DESCRIPTION: -# Default src_prepare. Bootstrap. -# Removed in EAPI 6 and later. -subversion_src_prepare() { - [[ ${EAPI} == [012345] ]] || die "${FUNCNAME} is removed from subversion.eclass in EAPI 6 and later" - subversion_bootstrap || die "${ESVN}: unknown problem occurred in subversion_bootstrap." -} - # @FUNCTION: subversion_pkg_preinst # @USAGE: [repo_uri] # @DESCRIPTION: @@ -537,6 +465,3 @@ subversion__get_peg_revision() { } EXPORT_FUNCTIONS src_unpack pkg_preinst -if [[ ${EAPI} == [45] ]]; then - EXPORT_FUNCTIONS src_prepare -fi |