summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-08-16 00:32:50 -0700
committerZac Medico <zmedico@gentoo.org>2010-08-16 00:32:50 -0700
commitc47b51efd25012cae0e864370ceda887f238398b (patch)
tree572e4b536c3dacf19b18779dc93decaa6f510283 /doc
parent223c1e5ceac64391160ed5cd4f01adc808d4cc50 (diff)
downloadportage-c47b51efd25012cae0e864370ceda887f238398b.tar.gz
portage-c47b51efd25012cae0e864370ceda887f238398b.tar.bz2
portage-c47b51efd25012cae0e864370ceda887f238398b.zip
Bug #273631 - Add docs for EAPI 4 default src_install function.
Diffstat (limited to 'doc')
-rw-r--r--doc/package/ebuild/eapi/4.docbook22
1 files changed, 22 insertions, 0 deletions
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.
</para>
</section>
+ <section id='package-ebuild-eapi-4_pre1-phases-src-install'>
+ <title>Default src_install no longer a no-op</title>
+ <programlisting>
+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}" ]] &amp;&amp; dodoc "${d}"
+ done
+ elif [[ $(declare -p DOCS) == "declare -a "* ]] ; then
+ dodoc "${DOCS[@]}"
+ else
+ dodoc ${DOCS}
+ fi
+}
+ </programlisting>
+ </section>
</section>
</section>