summaryrefslogtreecommitdiffstats
path: root/bin/ebuild.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ebuild.sh')
-rwxr-xr-xbin/ebuild.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index c032ae95e..c9008e33e 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -632,6 +632,24 @@ _eapi2_src_compile() {
fi
}
+_eapi3_src_install() {
+ if [[ -f Makefile || -f GNUmakefile || -f makefile ]] ; then
+ emake DESTDIR="${D}" install
+ fi
+
+ if [[ -z $DOCS ]] ; then
+ local d
+ for d in README* ChangeLog AUTHORS NEWS TODO CHANGES \
+ THANKS BUGS FAQ CREDITS CHANGELOG ; do
+ [[ -s "${d}" ]] && dodoc "${d}"
+ done
+ elif [[ $(declare -p DOCS) == "declare -a "* ]] ; then
+ dodoc "${DOCS[@]}"
+ else
+ dodoc ${DOCS}
+ fi
+}
+
ebuild_phase() {
declare -F "$1" >/dev/null && qa_call $1
}
@@ -1421,6 +1439,9 @@ _ebuild_phase_funcs() {
declare -F src_compile >/dev/null || \
src_compile() { _eapi2_src_compile "$@" ; }
+ [[ $eapi == 2 ]] || declare -F src_install >/dev/null || \
+ src_install() { _eapi3_src_install "$@" ; }
+
if hasq $phase_func $default_phases ; then
_eapi2_pkg_nofetch () { _eapi0_pkg_nofetch "$@" ; }