Remove tests for deprecated 3_pre2 EAPI.
authorUlrich Müller <ulm@gentoo.org>
Wed, 15 Aug 2012 20:50:29 +0000 (22:50 +0200)
committerUlrich Müller <ulm@gentoo.org>
Wed, 15 Aug 2012 20:50:29 +0000 (22:50 +0200)
bin/ebuild-helpers/doins
bin/ebuild-helpers/newins
bin/ebuild.sh
bin/isolated-functions.sh
bin/phase-functions.sh
bin/phase-helpers.sh

index 443bfdb21b7ebe5af472516279ba6950f525e71b..fd779340458e7c7042286aa9aaccce79dd2e9239 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/bash
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
@@ -40,7 +40,7 @@ if [[ ${INSDESTTREE#${ED}} != "${INSDESTTREE}" ]]; then
 fi
 
 case "$EAPI" in
-       0|1|2|3|3_pre2)
+       0|1|2|3)
                PRESERVE_SYMLINKS=n
                ;;
        *)
index adf2d809ef5d9babc68c6edc881fbdd5ecb51946..b5b3ff6f4149362f2c20f6104dcbbaf7ce3a43da 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/bash
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
@@ -19,7 +19,7 @@ fi
 
 rm -rf "${T}/${2}" || exit $?
 case "$EAPI" in
-       0|1|2|3|3_pre2)
+       0|1|2|3)
                cp "$1" "$T/$2" || exit $?
                ;;
        *)
index 9829f68b3bb24a43314d33d3b2542f7ffbb5e27e..d3ca9d999fcfec2d1e10abe428d044a26e510b75 100755 (executable)
@@ -556,7 +556,7 @@ if ! has "$EBUILD_PHASE" clean cleanrm ; then
                # export EAPI for helpers (especially since we unset it above)
                export EAPI
 
-               if has "$EAPI" 0 1 2 3 3_pre2 ; then
+               if has "$EAPI" 0 1 2 3 ; then
                        export RDEPEND=${RDEPEND-${DEPEND}}
                        debug-print "RDEPEND: not set... Setting to: ${DEPEND}"
                fi
@@ -578,7 +578,7 @@ if ! has "$EBUILD_PHASE" clean cleanrm ; then
                                        pkg_nofetch pkg_postinst pkg_postrm pkg_preinst pkg_prerm
                                        pkg_setup src_test src_unpack"
                                ;;
-                       2|3|3_pre2)
+                       2|3)
                                _valid_phases="src_compile pkg_config src_configure pkg_info
                                        src_install pkg_nofetch pkg_postinst pkg_postrm pkg_preinst
                                        src_prepare pkg_prerm pkg_setup src_test src_unpack"
index dbf988b283a71e73f5eb0d25fa91f88f8dbf5d47..d33c0b61ea1f96970b8c2be4e49cb104e84cfe49 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/bash
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 # We need this next line for "die" and "assert". It expands
@@ -86,7 +86,7 @@ dump_trace() {
 }
 
 nonfatal() {
-       if has "${EAPI:-0}" 0 1 2 3 3_pre2 ; then
+       if has "${EAPI:-0}" 0 1 2 3 ; then
                die "$FUNCNAME() not supported in this EAPI"
        fi
        if [[ $# -lt 1 ]]; then
index ce251ceb987a555387037d22f3edf1beb0278683..352019967e390843141dcf8b01df857ba585bfa5 100644 (file)
@@ -364,7 +364,7 @@ dyn_prepare() {
 
        if [[ -d $S ]] ; then
                cd "${S}"
-       elif has $EAPI 0 1 2 3 3_pre2 ; then
+       elif has $EAPI 0 1 2 3 ; then
                cd "${WORKDIR}"
        elif [[ -z ${A} ]] && ! has_phase_defined_up_to prepare; then
                cd "${WORKDIR}"
@@ -395,7 +395,7 @@ dyn_configure() {
 
        if [[ -d $S ]] ; then
                cd "${S}"
-       elif has $EAPI 0 1 2 3 3_pre2 ; then
+       elif has $EAPI 0 1 2 3 ; then
                cd "${WORKDIR}"
        elif [[ -z ${A} ]] && ! has_phase_defined_up_to configure; then
                cd "${WORKDIR}"
@@ -428,7 +428,7 @@ dyn_compile() {
 
        if [[ -d $S ]] ; then
                cd "${S}"
-       elif has $EAPI 0 1 2 3 3_pre2 ; then
+       elif has $EAPI 0 1 2 3 ; then
                cd "${WORKDIR}"
        elif [[ -z ${A} ]] && ! has_phase_defined_up_to compile; then
                cd "${WORKDIR}"
@@ -519,7 +519,7 @@ dyn_install() {
 
        if [[ -d $S ]] ; then
                cd "${S}"
-       elif has $EAPI 0 1 2 3 3_pre2 ; then
+       elif has $EAPI 0 1 2 3 ; then
                cd "${WORKDIR}"
        elif [[ -z ${A} ]] && ! has_phase_defined_up_to install; then
                cd "${WORKDIR}"
@@ -684,7 +684,7 @@ _ebuild_arg_to_phase() {
 
        case "$arg" in
                pretend)
-                       ! has $eapi 0 1 2 3 3_pre2 && \
+                       ! has $eapi 0 1 2 3 && \
                                phase_func=pkg_pretend
                        ;;
                setup)
@@ -780,7 +780,7 @@ _ebuild_phase_funcs() {
                        declare -F src_compile >/dev/null || \
                                src_compile() { _eapi2_src_compile "$@" ; }
 
-                       has $eapi 2 3 3_pre2 || declare -F src_install >/dev/null || \
+                       has $eapi 2 3 || declare -F src_install >/dev/null || \
                                src_install() { _eapi4_src_install "$@" ; }
 
                        if has $phase_func $default_phases ; then
index 946520b20f5543ed4572c42581522854e5d610f6..a00475cfb977e335c1063c3022d4cc59b1d2a647 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/bash
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 export DESTTREE=/usr
@@ -421,7 +421,7 @@ econf() {
                fi
 
                # EAPI=4 adds --disable-dependency-tracking to econf
-               if ! has "$EAPI" 0 1 2 3 3_pre2 && \
+               if ! has "$EAPI" 0 1 2 3 && \
                        "${ECONF_SOURCE}/configure" --help 2>/dev/null | \
                        grep -q disable-dependency-tracking ; then
                        set -- --disable-dependency-tracking "$@"