diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-09-20 20:10:12 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-09-20 20:10:12 -0700 |
commit | 81d2d357b6ca0bbd7ab39ba898dea0313c8ac38a (patch) | |
tree | 6d408308f6149ba4da4df3df5f7a3ea16c01d154 | |
parent | Make ebuild-ipc use a normal read() call instead of array.fromfile() (diff) | |
download | portage-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-x | bin/ebuild.sh | 10 |
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 |