summaryrefslogtreecommitdiffstats
path: root/bin/ebuild.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ebuild.sh')
-rwxr-xr-xbin/ebuild.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index fe9adc02c..b7612a384 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -1373,12 +1373,21 @@ source_all_bashrcs() {
[[ $(type -t src_configure) = function ]] || \
src_configure() { _default_src_configure "$@" ; }
+ default() {
+ _default_${EBUILD_PHASE}
+ }
+
else
for x in $default_phases ; do
eval "default_$x() {
die \"default_$x() is not supported with EAPI='$EAPI'\"
}"
done
+
+ default() {
+ die "default() is not supported with EAPI='$EAPI'"
+ }
+
fi
local OCC="${CC}" OCXX="${CXX}"