summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2007-04-20 15:23:28 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2007-04-20 15:23:28 +0000
commit14f83878a0462e894ff978f31e3b967fdbde1515 (patch)
tree3dfdf5f9c5f42d74a587020ba3ab9c30975446db /eclass/java-utils-2.eclass
parentFix threads USE-flag check if boost >1.33, bug 174714 (diff)
downloadhistorical-14f83878a0462e894ff978f31e3b967fdbde1515.tar.gz
historical-14f83878a0462e894ff978f31e3b967fdbde1515.tar.bz2
historical-14f83878a0462e894ff978f31e3b967fdbde1515.zip
Make java-pkg_dojavadoc check for index.html
Diffstat (limited to 'eclass/java-utils-2.eclass')
-rw-r--r--eclass/java-utils-2.eclass14
1 files changed, 13 insertions, 1 deletions
diff --git a/eclass/java-utils-2.eclass b/eclass/java-utils-2.eclass
index faaccfa23a90..a5a0130d8806 100644
--- a/eclass/java-utils-2.eclass
+++ b/eclass/java-utils-2.eclass
@@ -6,7 +6,7 @@
#
# Licensed under the GNU General Public License, v2
#
-# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.73 2007/04/20 14:38:49 betelgeuse Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.74 2007/04/20 15:23:28 betelgeuse Exp $
# -----------------------------------------------------------------------------
@@ -558,12 +558,22 @@ java-pkg_dohtml() {
#
# ------------------------------------------------------------------------------
java-pkg_dojavadoc() {
+ debug-print-function ${FUNCNAME} $*
local dir="$1"
+ # QA checks
+
java-pkg_check-phase install
[[ -z "${dir}" ]] && die "Must specify a directory!"
[[ ! -d "${dir}" ]] && die "${dir} does not exist, or isn't a directory!"
+ if [[ ! -e "${dir}/index.html" ]]; then
+ local msg="No index.html in javadoc directory"
+ ewarn "${msg}"
+ is-java-strict && die "${msg}"
+ fi
+
+ # Renaming to match our directory layout
local dir_to_install="${dir}"
if [[ "$(basename "${dir}")" != "api" ]]; then
@@ -572,6 +582,8 @@ java-pkg_dojavadoc() {
cp -r "${dir}" "${dir_to_install}" || die "cp failed"
fi
+ # Actual installation
+
java-pkg_dohtml -r ${dir_to_install}
}