summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2021-07-15 13:47:59 +0200
committerMiroslav Šulc <fordfrog@gentoo.org>2021-07-16 08:24:23 +0200
commit2267a9aff4d5f488c7c86c2fa809aa33961fa81d (patch)
treecbf6337178fbcee79ceabc45169e62626d4bba1f /virtual/jdk
parentdev-ruby/haml: add 5.2.1 (diff)
downloadgentoo-2267a9aff4d5f488c7c86c2fa809aa33961fa81d.tar.gz
gentoo-2267a9aff4d5f488c7c86c2fa809aa33961fa81d.tar.bz2
gentoo-2267a9aff4d5f488c7c86c2fa809aa33961fa81d.zip
virtual/jdk: introduce headless-awt flag
Bug: https://bugs.gentoo.org/801277 Package-Manager: Portage-3.0.20, Repoman-3.0.2 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'virtual/jdk')
-rw-r--r--virtual/jdk/jdk-1.8.0-r6.ebuild16
-rw-r--r--virtual/jdk/jdk-11-r2.ebuild14
-rw-r--r--virtual/jdk/metadata.xml3
3 files changed, 33 insertions, 0 deletions
diff --git a/virtual/jdk/jdk-1.8.0-r6.ebuild b/virtual/jdk/jdk-1.8.0-r6.ebuild
new file mode 100644
index 000000000000..e284632739bb
--- /dev/null
+++ b/virtual/jdk/jdk-1.8.0-r6.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Virtual for Java Development Kit (JDK)"
+SLOT="1.8"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc64-solaris ~x64-solaris"
+IUSE="headless-awt"
+
+RDEPEND="|| (
+ dev-java/openjdk-bin:8[headless-awt=]
+ dev-java/openjdk:8[headless-awt=]
+ dev-java/icedtea-bin:8[headless-awt=]
+ dev-java/icedtea:8[headless-awt=]
+)"
diff --git a/virtual/jdk/jdk-11-r2.ebuild b/virtual/jdk/jdk-11-r2.ebuild
new file mode 100644
index 000000000000..d7963a0f6c84
--- /dev/null
+++ b/virtual/jdk/jdk-11-r2.ebuild
@@ -0,0 +1,14 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Virtual for Java Development Kit (JDK)"
+SLOT="${PV}"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64"
+IUSE="headless-awt"
+
+RDEPEND="|| (
+ dev-java/openjdk-bin:${SLOT}[gentoo-vm(+),headless-awt=]
+ dev-java/openjdk:${SLOT}[gentoo-vm(+),headless-awt=]
+)"
diff --git a/virtual/jdk/metadata.xml b/virtual/jdk/metadata.xml
index e6adb0833e2b..3ebbb6191ee5 100644
--- a/virtual/jdk/metadata.xml
+++ b/virtual/jdk/metadata.xml
@@ -5,5 +5,8 @@
<email>java@gentoo.org</email>
<name>Java</name>
</maintainer>
+ <use>
+ <flag name="headless-awt">Don't install the X backend for AWT, needed by some GUIs</flag>
+ </use>
<stabilize-allarches/>
</pkgmetadata>