* [gentoo-dev] [PATCH 1/2] subversion.eclass: Drop support for EAPIs 4 and 5
@ 2022-02-26 13:48 Ulrich Müller
2022-02-26 13:48 ` [gentoo-dev] [PATCH 2/2] subversion.eclass: Support EAPI 8 Ulrich Müller
0 siblings, 1 reply; 2+ messages in thread
From: Ulrich Müller @ 2022-02-26 13:48 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/subversion.eclass | 85 +++-------------------------------------
1 file 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
--
2.35.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-dev] [PATCH 2/2] subversion.eclass: Support EAPI 8
2022-02-26 13:48 [gentoo-dev] [PATCH 1/2] subversion.eclass: Drop support for EAPIs 4 and 5 Ulrich Müller
@ 2022-02-26 13:48 ` Ulrich Müller
0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Müller @ 2022-02-26 13:48 UTC (permalink / raw
To: gentoo-dev; +Cc: Ulrich Müller
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
---
eclass/subversion.eclass | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/eclass/subversion.eclass b/eclass/subversion.eclass
index 2a2297678ad1..8b12382a649d 100644
--- a/eclass/subversion.eclass
+++ b/eclass/subversion.eclass
@@ -6,7 +6,7 @@
# Akinori Hattori <hattya@gentoo.org>
# @AUTHOR:
# Original Author: Akinori Hattori <hattya@gentoo.org>
-# @SUPPORTED_EAPIS: 6 7
+# @SUPPORTED_EAPIS: 6 7 8
# @BLURB: Fetch software sources from subversion repositories
# @DESCRIPTION:
# The subversion eclass provides functions to fetch software sources
@@ -15,7 +15,7 @@
ESVN="${ECLASS}"
case ${EAPI} in
- 6|7) inherit estack ;;
+ 6|7|8) inherit estack ;;
*) die "${ESVN}: EAPI ${EAPI:-0} is not supported" ;;
esac
--
2.35.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-02-26 13:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-26 13:48 [gentoo-dev] [PATCH 1/2] subversion.eclass: Drop support for EAPIs 4 and 5 Ulrich Müller
2022-02-26 13:48 ` [gentoo-dev] [PATCH 2/2] subversion.eclass: Support EAPI 8 Ulrich Müller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox