From 85bdfa088d3c68ffbcc02b9d5dc614f13d8ecfb4 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 30 Dec 2010 20:11:20 -0800 Subject: [PATCH] ebuild(5): src_install in EAPI 4 --- man/ebuild.5 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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 -- 2.26.2