summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Mrozowski <reavertm@gentoo.org>2010-05-17 01:16:39 +0000
committerMaciej Mrozowski <reavertm@gentoo.org>2010-05-17 01:16:39 +0000
commit7d8311b2faf005f794e36115d1a19bee6a99aa7d (patch)
tree38382b697646799689f2dddee7eada91cd88d629 /eclass/kde4-base.eclass
parent0.6.53 version bump. (diff)
downloadhistorical-7d8311b2faf005f794e36115d1a19bee6a99aa7d.tar.gz
historical-7d8311b2faf005f794e36115d1a19bee6a99aa7d.tar.bz2
historical-7d8311b2faf005f794e36115d1a19bee6a99aa7d.zip
Improve automatic misc documentation files installation (README's, ChangeLogs, etc)
Diffstat (limited to 'eclass/kde4-base.eclass')
-rw-r--r--eclass/kde4-base.eclass19
1 files changed, 6 insertions, 13 deletions
diff --git a/eclass/kde4-base.eclass b/eclass/kde4-base.eclass
index edac7a79ecd1..284a24290871 100644
--- a/eclass/kde4-base.eclass
+++ b/eclass/kde4-base.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.61 2010/05/15 15:19:04 reavertm Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kde4-base.eclass,v 1.62 2010/05/17 01:16:39 reavertm Exp $
# @ECLASS: kde4-base.eclass
# @MAINTAINER:
@@ -725,19 +725,12 @@ kde4-base_src_install() {
# Install common documentation of KDE4 applications
local doc
if ! has kde4-meta ${INHERITED}; then
- for doc in AUTHORS ChangeLog* README* NEWS TODO HACKING; do
- [[ -s "${S}/${doc}" ]] && dodoc "${doc}"
+ for doc in "${S}"/{AUTHORS,CHANGELOG,ChangeLog*,README*,NEWS,TODO,HACKING}; do
+ [[ -s "${doc}" ]] && dodoc "${doc}"
+ done
+ for doc in "${S}"/*/{AUTHORS,CHANGELOG,ChangeLog*,README*,NEWS,TODO,HACKING}; do
+ [[ -s "${doc}" ]] && newdoc "${doc}" "$(basename $(dirname ${doc})).$(basename ${doc})"
done
- # kdelibs, kdepimlibs
- if [[ -z ${KMNAME} ]]; then
- for doc in "${S}"/*/{AUTHORS,ChangeLog*,README*,NEWS,TODO,HACKING}; do
- if [[ -s "${S}/${doc}" ]]; then
- local doc_complete=${doc}
- doc="${doc#*/}"
- newdoc "$doc_complete" "${doc%/*}.${doc##*/}"
- fi
- done
- fi
fi
cmake-utils_src_install