Fix default() and default_src_install() definitions to account for
authorZac Medico <zmedico@gentoo.org>
Tue, 21 Sep 2010 03:10:12 +0000 (20:10 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 21 Sep 2010 03:10:12 +0000 (20:10 -0700)
the new EAPI 4 default src_install implementation.

bin/ebuild.sh

index 29847c12ae30d0cff22b5f71a1a6a8d7482abe6f..2036094e3428225f408b75610c091084c89233d3 100755 (executable)
@@ -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