diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-12-30 20:11:20 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-12-30 20:11:20 -0800 |
commit | 85bdfa088d3c68ffbcc02b9d5dc614f13d8ecfb4 (patch) | |
tree | 05c9ce0577b1b024723d5832ad1e965d48297db2 | |
parent | 768a04bf1908bcff2cf128448bd0977c925749e3 (diff) | |
download | portage-85bdfa088d3c68ffbcc02b9d5dc614f13d8ecfb4.tar.gz portage-85bdfa088d3c68ffbcc02b9d5dc614f13d8ecfb4.tar.bz2 portage-85bdfa088d3c68ffbcc02b9d5dc614f13d8ecfb4.zip |
ebuild(5): src_install in EAPI 4
-rw-r--r-- | man/ebuild.5 | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/man/ebuild.5 b/man/ebuild.5 index 691adc055..65f16a9da 100644 --- a/man/ebuild.5 +++ b/man/ebuild.5 @@ -655,6 +655,29 @@ Should contain everything required to install the package in the temporary \fIinstall directory\fR. .br Initial working directory of $S. + +Beginning with \fBEAPI 4\fR, if src_install is undefined then the +following default implementation is used: + +.nf +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 +} +.fi .TP .B pkg_preinst pkg_postinst All modifications required on the live\-filesystem before and after the |