aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/ebuild
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2015-11-03 17:53:16 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2015-11-05 17:37:28 +0000
commit8ebd4aced7665928454a498988727a4d156484b2 (patch)
tree3b2a1e5aeccbb3b8d980315ba59f644fcaab8f9f /paludis/repositories/e/ebuild
parent01a7fdc7633c7e693d0a73aae5eb0583688ae839 (diff)
downloadpaludis-8ebd4aced7665928454a498988727a4d156484b2.tar.gz
paludis-8ebd4aced7665928454a498988727a4d156484b2.tar.xz
EAPI 6 has einstalldocs
Diffstat (limited to 'paludis/repositories/e/ebuild')
-rw-r--r--paludis/repositories/e/ebuild/6/build_functions.bash38
1 files changed, 38 insertions, 0 deletions
diff --git a/paludis/repositories/e/ebuild/6/build_functions.bash b/paludis/repositories/e/ebuild/6/build_functions.bash
index b51b5f808..ede818959 100644
--- a/paludis/repositories/e/ebuild/6/build_functions.bash
+++ b/paludis/repositories/e/ebuild/6/build_functions.bash
@@ -1,6 +1,7 @@
#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
+# Copyright (c) 2006, 2007, 2009 Ciaran McCreesh
# Copyright (c) 2015 David Leverton
#
# This file is part of the Paludis package manager. Paludis is free software;
@@ -23,3 +24,40 @@ einstall()
die "einstall is banned in EAPI 6"
}
+einstalldocs()
+{
+ local DOCDESTTREE=
+ if ! declare -p DOCS >/dev/null 2>&1 ; then
+ local d
+ for d in README* ChangeLog AUTHORS NEWS TODO CHANGES \
+ THANKS BUGS FAQ CREDITS CHANGELOG ; do
+ if [[ -s "${d}" ]] ; then
+ dodoc "${d}" || return $?
+ fi
+ done
+ elif declare -p DOCS | grep -q '^declare -a ' ; then
+ if [[ ${#DOCS[@]} -gt 0 ]] ; then
+ dodoc -r "${DOCS[@]}" || return $?
+ fi
+ else
+ if [[ -n ${DOCS} ]] ; then
+ dodoc -r ${DOCS} || return $?
+ fi
+ fi
+
+ DOCDESTTREE=html
+ if ! declare -p HTML_DOCS >/dev/null 2>&1 ; then
+ :
+ elif declare -p HTML_DOCS | grep -q '^declare -a ' ; then
+ if [[ ${#HTML_DOCS[@]} -gt 0 ]] ; then
+ dodoc -r "${HTML_DOCS[@]}" || return $?
+ fi
+ else
+ if [[ -n ${HTML_DOCS} ]] ; then
+ dodoc -r ${HTML_DOCS} || return $?
+ fi
+ fi
+
+ return 0
+}
+