dev-java/oracle-jre-bin: Warn when disabling javafx, bug #579772
authorJames Le Cuirot <chewi@gentoo.org>
Sun, 17 Apr 2016 22:09:00 +0000 (23:09 +0100)
committerJames Le Cuirot <chewi@gentoo.org>
Sun, 17 Apr 2016 22:09:26 +0000 (23:09 +0100)
Package-Manager: portage-2.2.28

dev-java/oracle-jre-bin/oracle-jre-bin-1.8.0.77.ebuild

index 46c46acc8434407d01549a2ed715fef4244c2f01..760f88641fe9d722e506908b2c7a8cd92f616e54 100644 (file)
@@ -238,3 +238,12 @@ src_install() {
        java-vm_revdep-mask
        java-vm_sandbox-predict /dev/random /proc/self/coredump_filter
 }
+
+pkg_postinst() {
+       java-vm-2_pkg_postinst
+
+       if ! use headless-awt && ! use javafx; then
+               ewarn "You have disabled the javafx flag. Some modern desktop Java applications"
+               ewarn "require this and they may fail with a confusing error message."
+       fi
+}