dev-java/openjfx: fix installing without docs

Package-Manager: Portage-2.3.67, Repoman-2.3.13
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
This commit is contained in:
Georgy Yakovlev
2019-06-01 14:43:02 -07:00
parent 3bc469d52b
commit 663da96679

View File

@@ -173,13 +173,15 @@ src_configure() {
#FIXME: should we enable webkit? doubt so
# build is very sensetive to doc presense, take extra steps
local jdk_doc
if has_version --host-root dev-java/openjdk:${SLOT}[doc]; then
jdk_doc="${EROOT%/}/usr/share/doc/openjdk-${SLOT}/html/api"
elif has_version --host-root dev-java/java-sdk-docs:${SLOT}; then
jdk_doc="${EROOT%/}/usr/share/doc/java-sdk-docs-${SLOT}/html/api"
if use doc; then
local jdk_doc
if has_version --host-root dev-java/openjdk:${SLOT}[doc]; then
jdk_doc="${EROOT%/}/usr/share/doc/openjdk-${SLOT}/html/api"
elif has_version --host-root dev-java/java-sdk-docs:${SLOT}; then
jdk_doc="${EROOT%/}/usr/share/doc/java-sdk-docs-${SLOT}/html/api"
fi
[[ -r ${jdk_doc}/element-list ]] || die "JDK Docs not found, terminating build early"
fi
[[ -r ${jdk_doc}/element-list ]] || die "JDK Docs not found, terminating build early"
cat <<- _EOF_ > "${S}"/gradle.properties
COMPILE_TARGETS = linux