currently default_src_install is carried out in $BUILD_DIR and not in $S that means people have to do something like this: DOCS=( "${S}"/ChangeLog{,.libffi,.libgcj,.v1} "${S}"/README )
The attached patch is a bit ugly, but I don't see a better way. It will allow: DOCS=( ChangeLog{,.libffi,.libgcj,.v1} README )
--- eclass/multilib-minimal.eclass +++ eclass/multilib-minimal.eclass @@ -84,7 +84,7 @@ if declare -f multilib_src_install >/dev/null ; then multilib_src_install else - default_src_install + DOCS="" default_src_install fi multilib_prepare_wrappers multilib_check_headers @@ -96,4 +96,18 @@ if declare -f multilib_src_install_all >/dev/null ; then multilib_src_install_all fi + + # install docs from ${S} as basedir, see #468092 + # this is synced with __eapi4_src_install + if ! declare -p DOCS &>/dev/null ; 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 }