summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-09-20 20:10:12 -0700
committerZac Medico <zmedico@gentoo.org>2010-09-20 20:10:12 -0700
commit81d2d357b6ca0bbd7ab39ba898dea0313c8ac38a (patch)
tree6d408308f6149ba4da4df3df5f7a3ea16c01d154
parentMake ebuild-ipc use a normal read() call instead of array.fromfile() (diff)
downloadportage-81d2d357b6ca0bbd7ab39ba898dea0313c8ac38a.tar.gz
portage-81d2d357b6ca0bbd7ab39ba898dea0313c8ac38a.tar.bz2
portage-81d2d357b6ca0bbd7ab39ba898dea0313c8ac38a.zip
Fix default() and default_src_install() definitions to account for
the new EAPI 4 default src_install implementation.
-rwxr-xr-xbin/ebuild.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 29847c12a..2036094e3 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -1599,6 +1599,16 @@ _ebuild_phase_funcs() {
eval "default() { _eapi2_$phase_func \"\$@\" ; }"
+ case $eapi in
+ 2|3)
+ ;;
+ *)
+ eval "default_src_install() { _eapi4_src_install \"\$@\" ; }"
+ [[ $phase_func = src_install ]] && \
+ eval "default() { _eapi4_$phase_func \"\$@\" ; }"
+ ;;
+ esac
+
else
for x in $default_phases ; do