commit: abd0e06a7fa7db8eb6847771c37f40a26f8c90e0
Author: Joerg Bornkessel <hd_brummy <AT> gentoo <DOT> org>
AuthorDate: Sun May 29 19:28:18 2016 +0000
Commit: Joerg Bornkessel <hd_brummy <AT> gentoo <DOT> org>
CommitDate: Sun May 29 19:30:46 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=abd0e06a
vdr-plugin-2.eclass: fixed docs install for eapi=6
eclass/vdr-plugin-2.eclass | 17 ++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)
diff --git a/eclass/vdr-plugin-2.eclass b/eclass/vdr-plugin-2.eclass
index d65f624..48106d2 100644
--- a/eclass/vdr-plugin-2.eclass
+++ b/eclass/vdr-plugin-2.eclass
@@ -612,15 +612,14 @@ vdr-plugin-2_src_install() {
create_header_checksum_file ${vdr_plugin_list}
create_plugindb_file ${vdr_plugin_list}
- local commondoc=( README* HISTORY CHANGELOG )
- for docfile in "${commondoc[@]}"; do
- if [[ ${EAPI} == "6" ]]; then
- local DOCS="${DOCS} ${docfile}"
- [[ -f ${docfile} ]] && einstalldocs "${DOCS[@]}"
- else
- [[ -f ${docfile} ]] && dodoc ${docfile}
- fi
- done
+ if [[ ${EAPI} != [45] ]]; then
+ einstalldocs
+ else
+ local docfile
+ for docfile in README* HISTORY CHANGELOG; do
+ [[ -f ${docfile} ]] && dodoc ${docfile}
+ done
+ fi
# if VDR_CONFD_FILE is empty and ${FILESDIR}/confd exists take it
[[ -z ${VDR_CONFD_FILE} ]] && [[ -e ${FILESDIR}/confd ]] &&
VDR_CONFD_FILE=${FILESDIR}/confd