---
 gx86/eclass/distutils-r1.eclass | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/gx86/eclass/distutils-r1.eclass b/gx86/eclass/distutils-r1.eclass
index 47b5b97..4c2e819 100644
--- a/gx86/eclass/distutils-r1.eclass
+++ b/gx86/eclass/distutils-r1.eclass
@@ -206,6 +206,20 @@ fi
 # }
 # @CODE
 
+# @FUNCTION: edefault
+# @USAGE: [<args>...]
+# @DESCRIPTION:
+# Runs the default distutils-r1 sub-phase implementation for the current
+# sub-phase. Available only in distutils-r1 sub-phases.
+#
+# Example:
+# @CODE
+# python_install_all() {
+#   use doc && local HTML_DOCS=( doc/html/. )
+#   edefault # == distutils-r1_python_install_all
+# }
+# @CODE
+
 # @FUNCTION: esetup.py
 # @USAGE: [<args>...]
 # @DESCRIPTION:
@@ -515,8 +529,12 @@ distutils-r1_run_phase() {
 
        mkdir -p "${TMPDIR}" || die
 
+       eval "edefault() { ${1} }"
+
        "${@}"
 
+       unset -f edefault
+
        if [[ ${DISTUTILS_IN_SOURCE_BUILD} && ! ${DISTUTILS_SINGLE_IMPL} ]]
        then
                popd >/dev/null || die
-- 
1.8.2.1


Reply via email to