summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2019-06-01 14:43:02 -0700
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2019-06-01 14:44:41 -0700
commit663da9667916dbb60bdbca097e1b559d6b39bfa9 (patch)
treec9f5abf8d718ccbab875e914c6686f81b44e1c24 /dev-java
parentwww-plugins/chrome-binary-plugins: automated update (diff)
downloadgentoo-663da9667916dbb60bdbca097e1b559d6b39bfa9.tar.gz
gentoo-663da9667916dbb60bdbca097e1b559d6b39bfa9.tar.bz2
gentoo-663da9667916dbb60bdbca097e1b559d6b39bfa9.zip
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>
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/openjfx/openjfx-11.0.3_p1.ebuild14
1 files changed, 8 insertions, 6 deletions
diff --git a/dev-java/openjfx/openjfx-11.0.3_p1.ebuild b/dev-java/openjfx/openjfx-11.0.3_p1.ebuild
index b22021a3d61..02d8964eaea 100644
--- a/dev-java/openjfx/openjfx-11.0.3_p1.ebuild
+++ b/dev-java/openjfx/openjfx-11.0.3_p1.ebuild
@@ -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