diff options
author | 2021-06-21 12:27:24 +0200 | |
---|---|---|
committer | 2021-06-23 12:21:36 +0200 | |
commit | 306f1d3694c25f6802985e288ef08c3d9fefcab7 (patch) | |
tree | 596c97a15d96d8b032647d4bde688413efee0caf /eclass | |
parent | git-r3.eclass: Support EAPI 8, drop support for EAPI 4 (diff) | |
download | gentoo-306f1d3694c25f6802985e288ef08c3d9fefcab7.tar.gz gentoo-306f1d3694c25f6802985e288ef08c3d9fefcab7.tar.bz2 gentoo-306f1d3694c25f6802985e288ef08c3d9fefcab7.zip |
git-r3.eclass: Remove git-2 backwards compatibility code
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/git-r3.eclass | 54 |
1 files changed, 4 insertions, 50 deletions
diff --git a/eclass/git-r3.eclass b/eclass/git-r3.eclass index 365f21a4ed4c..398170000498 100644 --- a/eclass/git-r3.eclass +++ b/eclass/git-r3.eclass @@ -21,12 +21,10 @@ if [[ ! ${_GIT_R3} ]]; then PROPERTIES+=" live" -if [[ ! ${_INHERITED_BY_GIT_2} ]]; then - if [[ ${EAPI} != [56] ]]; then - BDEPEND=">=dev-vcs/git-1.8.2.1[curl]" - else - DEPEND=">=dev-vcs/git-1.8.2.1[curl]" - fi +if [[ ${EAPI} != [56] ]]; then + BDEPEND=">=dev-vcs/git-1.8.2.1[curl]" +else + DEPEND=">=dev-vcs/git-1.8.2.1[curl]" fi # @ECLASS-VARIABLE: EGIT_CLONE_TYPE @@ -278,50 +276,6 @@ _git-r3_env_setup() { if [[ ${EGIT_COMMIT} && ${EGIT_COMMIT_DATE} ]]; then die "EGIT_COMMIT and EGIT_COMMIT_DATE can not be specified simultaneously" fi - - # Migration helpers. Remove them when git-2 is removed. - - if [[ ${EGIT_SOURCEDIR} ]]; then - eerror "EGIT_SOURCEDIR has been replaced by EGIT_CHECKOUT_DIR. While updating" - eerror "your ebuild, please check whether the variable is necessary at all" - eerror "since the default has been changed from \${S} to \${WORKDIR}/\${P}." - eerror "Therefore, proper setting of S may be sufficient." - die "EGIT_SOURCEDIR has been replaced by EGIT_CHECKOUT_DIR." - fi - - if [[ ${EGIT_MASTER} ]]; then - eerror "EGIT_MASTER has been removed. Instead, the upstream default (HEAD)" - eerror "is used by the eclass. Please remove the assignment or use EGIT_BRANCH" - eerror "as necessary." - die "EGIT_MASTER has been removed." - fi - - if [[ ${EGIT_HAS_SUBMODULES} ]]; then - eerror "EGIT_HAS_SUBMODULES has been removed. The eclass no longer needs" - eerror "to switch the clone type in order to support submodules and therefore" - eerror "submodules are detected and fetched automatically. If you need to" - eerror "disable or filter submodules, see EGIT_SUBMODULES." - die "EGIT_HAS_SUBMODULES is no longer necessary." - fi - - if [[ ${EGIT_PROJECT} ]]; then - eerror "EGIT_PROJECT has been removed. Instead, the eclass determines" - eerror "the local clone path using path in canonical EGIT_REPO_URI." - eerror "If the current algorithm causes issues for you, please report a bug." - die "EGIT_PROJECT is no longer necessary." - fi - - if [[ ${EGIT_BOOTSTRAP} ]]; then - eerror "EGIT_BOOTSTRAP has been removed. Please create proper src_prepare()" - eerror "instead." - die "EGIT_BOOTSTRAP has been removed." - fi - - if [[ ${EGIT_NOUNPACK} ]]; then - eerror "EGIT_NOUNPACK has been removed. The eclass no longer calls default" - eerror "unpack function. If necessary, please declare proper src_unpack()." - die "EGIT_NOUNPACK has been removed." - fi } # @FUNCTION: _git-r3_set_gitdir |