1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 DOWNLOAD_URL="http://www.oracle.com/technetwork/java/javase/documentation/jdk8-doc-downloads-2133158.html"
10 [[ "$(get_version_component_range 4)" == 0 ]] \
11 || MY_PV_EXT="u$(get_version_component_range 4)"
13 MY_PV="$(get_version_component_range 2)${MY_PV_EXT}"
14 ORIG_NAME="jdk-${MY_PV}-docs-all.zip"
16 DESCRIPTION="Oracle's documentation bundle (including API) for Java SE"
17 HOMEPAGE="http://download.oracle.com/javase/8/docs/"
18 SRC_URI="${ORIG_NAME}"
19 LICENSE="oracle-java-documentation-8"
21 KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86 ~amd64-linux ~x86-linux"
24 DEPEND="app-arch/unzip"
29 einfo "Please download ${ORIG_NAME} from "
30 einfo "${DOWNLOAD_URL}"
31 einfo "(agree to the license) and place it in ${DISTDIR}"
33 einfo "If you find the file on the download page replaced with a higher"
34 einfo "version, please report to the bug 67266 (link below)."
35 einfo "If emerge fails because of a checksum error it is possible that"
36 einfo "the upstream release changed without renaming. Try downloading the file"
37 einfo "again (or a newer revision if available). Otherwise report this to"
38 einfo "https://bugs.gentoo.org/67266 and we will make a new revision."
42 insinto /usr/share/doc/${P}/html
43 doins -r index.html */