summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2013-09-13 11:22:52 +0000
committerMichał Górny <mgorny@gentoo.org>2013-09-13 11:22:52 +0000
commitabfa6902569641cd2ad5430e55e7bea5e6cb8279 (patch)
tree7361979d617b1e51d7f73ea16fd5c513ecee7eff /eclass
parentFix ChangeLog copyright header (diff)
downloadgentoo-2-abfa6902569641cd2ad5430e55e7bea5e6cb8279.tar.gz
gentoo-2-abfa6902569641cd2ad5430e55e7bea5e6cb8279.tar.bz2
gentoo-2-abfa6902569641cd2ad5430e55e7bea5e6cb8279.zip
Commit the version of einstalldocs() Council agreed upon.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ChangeLog5
-rw-r--r--eclass/eutils.eclass26
2 files changed, 29 insertions, 2 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog
index 21c822427ab0..82ed1dff8379 100644
--- a/eclass/ChangeLog
+++ b/eclass/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for eclass directory
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.960 2013/09/12 17:31:11 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.961 2013/09/13 11:22:52 mgorny Exp $
+
+ 13 Sep 2013; Michał Górny <mgorny@gentoo.org> eutils.eclass:
+ Commit the version of einstalldocs() Council agreed upon.
12 Sep 2013; Michał Górny <mgorny@gentoo.org> python-r1.eclass,
python-single-r1.eclass:
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index 2c4a5c53c788..7798f54691e7 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.425 2013/09/13 00:51:46 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.426 2013/09/13 11:22:52 mgorny Exp $
# @ECLASS: eutils.eclass
# @MAINTAINER:
@@ -1645,6 +1645,30 @@ prune_libtool_files() {
fi
}
+einstalldocs() {
+ debug-print-function ${FUNCNAME} "${@}"
+
+ 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
+ [[ ${DOCS[@]} ]] && dodoc -r "${DOCS[@]}"
+ else
+ [[ ${DOCS} ]] && dodoc -r ${DOCS}
+ fi
+
+ if [[ $(declare -p HTML_DOCS 2>/dev/null) == "declare -a"* ]] ; then
+ [[ ${HTML_DOCS[@]} ]] && dohtml -r "${HTML_DOCS[@]}"
+ else
+ [[ ${HTML_DOCS} ]] && dohtml -r ${HTML_DOCS}
+ fi
+
+ return 0
+}
+
check_license() { die "you no longer need this as portage supports ACCEPT_LICENSE itself"; }
fi