From: Zac Medico Date: Mon, 16 Aug 2010 07:32:50 +0000 (-0700) Subject: Bug #273631 - Add docs for EAPI 4 default src_install function. X-Git-Tag: v2.2_rc68~179 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c47b51efd25012cae0e864370ceda887f238398b;p=portage.git Bug #273631 - Add docs for EAPI 4 default src_install function. --- diff --git a/doc/package/ebuild/eapi/4.docbook b/doc/package/ebuild/eapi/4.docbook index b2c558d55..86604cf14 100644 --- a/doc/package/ebuild/eapi/4.docbook +++ b/doc/package/ebuild/eapi/4.docbook @@ -157,5 +157,27 @@ Finally, please note that this new metadata key can be set by eclasses, and the pkg_pretend must not write to the filesystem. +
+ Default src_install no longer a no-op + +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 +} + +