summaryrefslogtreecommitdiff
path: root/dev-java/openj9-openjdk-jre-bin
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2020-07-28 09:41:37 -0400
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2020-07-28 09:41:37 -0400
commitd241ee7943383a8ad8aacd70d5e301a6acf22c38 (patch)
tree5aaddca6d5744a9e3565da0846cbda2e1a34be3b /dev-java/openj9-openjdk-jre-bin
downloadgentoo-overlay-d241ee7943383a8ad8aacd70d5e301a6acf22c38.tar.xz
gentoo-overlay-d241ee7943383a8ad8aacd70d5e301a6acf22c38.zip
Initial commit
Diffstat (limited to 'dev-java/openj9-openjdk-jre-bin')
-rw-r--r--dev-java/openj9-openjdk-jre-bin/Manifest8
-rw-r--r--dev-java/openj9-openjdk-jre-bin/files/openjdk-jre-bin-11.env.sh16
-rw-r--r--dev-java/openj9-openjdk-jre-bin/files/openjdk-jre-bin-8.env.sh16
-rw-r--r--dev-java/openj9-openjdk-jre-bin/metadata.xml15
-rw-r--r--dev-java/openj9-openjdk-jre-bin/openj9-openjdk-jre-bin-11.0.8.10.0.21.0.ebuild107
-rw-r--r--dev-java/openj9-openjdk-jre-bin/openj9-openjdk-jre-bin-14.0.2.12.0.21.0.ebuild107
6 files changed, 269 insertions, 0 deletions
diff --git a/dev-java/openj9-openjdk-jre-bin/Manifest b/dev-java/openj9-openjdk-jre-bin/Manifest
new file mode 100644
index 0000000..1717b02
--- /dev/null
+++ b/dev-java/openj9-openjdk-jre-bin/Manifest
@@ -0,0 +1,8 @@
+DIST OpenJDK11U-jre_ppc64le_linux_openj9_11.0.8_10_openj9-0.21.0.tar.gz 42189120 BLAKE2B de720db5ce4d40d5e9cf71a31f8979d190b72cf5510ff31fc755e24702174ccb59988b8e746b3ccb11cfdbc67039aa179f55a9864f139927e250b9edd8917267 SHA512 89e301db5d185d48614a4135349ee92e647e566bf222dd54ca3479226be645d29354d5ccbed1e9ea3b7ef73ba64b24b650fe814e20881292b6348a9aa25df1af
+DIST OpenJDK11U-jre_ppc64le_linux_openj9_linuxXL_11.0.8_10_openj9-0.21.0.tar.gz 42082361 BLAKE2B e7dbc5a1deef3996a82c7207fe682e830d94bb143c16bb057f6609fe7b6b56d56569668751d3333af836dd3b45f5eef207916bf17eaecdeaa27b9fa359cbbe1e SHA512 7baa12613f3f4b4ef7a0301b5c1e262c3446e097cea763a7adfe2602785ad3ab3cb74cc542a17c6b7c717c0eb9f0304cde9a48b13f2864fff31bffdee5750dbd
+DIST OpenJDK11U-jre_x64_linux_openj9_11.0.8_10_openj9-0.21.0.tar.gz 41781638 BLAKE2B 16be8630e7781c3f35072bbac254640a4d41f9b27799b56d7f78b63940e51d9f28a4168cbeaabd885562520d227e9efb4c9d80690c9ad02f8e0b7911023cb51e SHA512 51578fd2722c22cb50c678f74612409d34666ac8804c0efa705ed0d695c32ce3f5829f5fbe9be6d3336f39935b7eedad192621977c5e13f365b51e1fb03fd6df
+DIST OpenJDK11U-jre_x64_linux_openj9_linuxXL_11.0.8_10_openj9-0.21.0.tar.gz 41774880 BLAKE2B 7e6d75ee457be194ae4c478cd9c4c8c64607b4ed19bf59d313d3ad643d57b1fa0c161ce74e0ae9d2d667a3016a977a6e6de3cd794429e69972010d472493d3fc SHA512 ac2111079c72e349122356275ab6d7b38b13188aec58ee97c7ced2daf3c98900c76abaf33bad5dd8f43321d6786bd71d0cc02836a5820eb0ce20b24b78262293
+DIST OpenJDK14U-jre_ppc64le_linux_openj9_14.0.2_12_openj9-0.21.0.tar.gz 50706170 BLAKE2B 3898aa34e9a5775c1b7ac343d73a105a996f1288b853e4dc80a66816c548b4ced435d77152f89cc8828cbd8b5c959a34c8c762753e52a3ff880840a7cb334885 SHA512 00400a14d35e722170e09d8a2d9357747244e3e2815fb7fd04769d4656b2847196b1c680215ba9e5ff0a849c778145cc7cea39878446c1f7404baa055b562603
+DIST OpenJDK14U-jre_ppc64le_linux_openj9_linuxXL_14.0.2_12_openj9-0.21.0.tar.gz 50281280 BLAKE2B c00c786fa760ddab538a17cb356638e25bf62930b86426956790be4a7c1c58bb94ca30f27a11587c757f628ef6a012dfbbcbbbf9878ee5899358bf590489b173 SHA512 abfb2df61390e288169e8fa75f3abb754358daa1da9ec904795a1bbcd11c5642bd24300763a84574d3567f6e697a3c347ec15c1740cc5fff4f2b5819abba631f
+DIST OpenJDK14U-jre_x64_linux_openj9_14.0.2_12_openj9-0.21.0.tar.gz 50282552 BLAKE2B 099d9cea63981c13d0f545cb22aed7acb0686d77feda38af838e37a2c41d8918ea9261c6ae3195ad0c9e56cbfcbc18b8d69c8240afda5c89417d9eda5c38a863 SHA512 1071806ed9bc1aaf5f18cec271d32993e92cb9dc3fe21c42028bd9f25e7b1e2c362d00518ee2dd53000712fe74091379731669078eaaa7f33c440f4b95df061f
+DIST OpenJDK14U-jre_x64_linux_openj9_linuxXL_14.0.2_12_openj9-0.21.0.tar.gz 50277370 BLAKE2B e450d4ca0cfbb556f4e19341da723605629161a17f18b192343e1413c81e61cc36517df3851231fe3845e4a29a2e7eb23dae26ae0055a02528e0516d9187aa54 SHA512 037a37ecb2e97c94ed752fb0e17278facd9e76d8ea729428491d709d6297e70d12161dd8392f32dfc0ac660ec960feb7aeea01521d770c01b6192b1bf0caa299
diff --git a/dev-java/openj9-openjdk-jre-bin/files/openjdk-jre-bin-11.env.sh b/dev-java/openj9-openjdk-jre-bin/files/openjdk-jre-bin-11.env.sh
new file mode 100644
index 0000000..ec0dca4
--- /dev/null
+++ b/dev-java/openj9-openjdk-jre-bin/files/openjdk-jre-bin-11.env.sh
@@ -0,0 +1,16 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+VERSION="AdoptOpenJDK JRE ${PV}"
+JAVA_HOME="${EPREFIX}/opt/${P}"
+JDK_HOME="${EPREFIX}/opt/${P}"
+JAVAC="\${JAVA_HOME}/bin/javac"
+PATH="\${JAVA_HOME}/bin"
+ROOTPATH="\${JAVA_HOME}/bin"
+LDPATH="\${JAVA_HOME}/lib/:\${JAVA_HOME}/lib/server/"
+MANPATH="\${JAVA_HOME}/man"
+PROVIDES_TYPE="JRE"
+PROVIDES_VERSION="${SLOT}"
+BOOTCLASSPATH=""
+GENERATION="2"
+ENV_VARS="JAVA_HOME JDK_HOME JAVAC PATH ROOTPATH LDPATH MANPATH"
diff --git a/dev-java/openj9-openjdk-jre-bin/files/openjdk-jre-bin-8.env.sh b/dev-java/openj9-openjdk-jre-bin/files/openjdk-jre-bin-8.env.sh
new file mode 100644
index 0000000..fabc13c
--- /dev/null
+++ b/dev-java/openj9-openjdk-jre-bin/files/openjdk-jre-bin-8.env.sh
@@ -0,0 +1,16 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+VERSION="AdoptOpenJDK JRE ${PV}"
+JAVA_HOME="${EPREFIX}/opt/${P}"
+JDK_HOME="${EPREFIX}/opt/${P}"
+JAVAC="\${JAVA_HOME}/bin/javac"
+PATH="\${JAVA_HOME}/bin"
+ROOTPATH="\${JAVA_HOME}/bin"
+LDPATH="\${JAVA_HOME}/lib/:\${JAVA_HOME}/lib/server/"
+MANPATH="\${JAVA_HOME}/man"
+PROVIDES_TYPE="JRE"
+PROVIDES_VERSION="1.${SLOT}"
+BOOTCLASSPATH="\${JAVA_HOME}/jre/lib/resources.jar:\${JAVA_HOME}/jre/lib/rt.jar:\${JAVA_HOME}/jre/lib/jsse.jar:\${JAVA_HOME}/jre/lib/jce.jar:\${JAVA_HOME}/jre/lib/charsets.jar"
+GENERATION="2"
+ENV_VARS="JAVA_HOME JDK_HOME JAVAC PATH ROOTPATH LDPATH MANPATH"
diff --git a/dev-java/openj9-openjdk-jre-bin/metadata.xml b/dev-java/openj9-openjdk-jre-bin/metadata.xml
new file mode 100644
index 0000000..23c1e7f
--- /dev/null
+++ b/dev-java/openj9-openjdk-jre-bin/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <longdescription>
+ Java™ is the world's leading programming language and platform.
+ The code for Java is open source and available at OpenJDK™.
+ AdoptOpenJDK provides prebuilt OpenJDK JRE binaries from a fully open source set of build scripts and infrastructure.
+ </longdescription>
+ <use>
+ <flag name="headless-awt">Don't install the X backend for AWT, needed by some GUIs (used to be X flag)</flag>
+ <flag name="gentoo-vm">Allow this JDK to be recognised by Gentoo (package manager, eselect, java-config, EXPERIMENTAL!)</flag>
+ <flag name="large-heap">Support Java heap sizes greater than 57Gb</flag>
+ <flag name="webstart">Provide javaws command through symlink to icedtea-web</flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-java/openj9-openjdk-jre-bin/openj9-openjdk-jre-bin-11.0.8.10.0.21.0.ebuild b/dev-java/openj9-openjdk-jre-bin/openj9-openjdk-jre-bin-11.0.8.10.0.21.0.ebuild
new file mode 100644
index 0000000..6a9311e
--- /dev/null
+++ b/dev-java/openj9-openjdk-jre-bin/openj9-openjdk-jre-bin-11.0.8.10.0.21.0.ebuild
@@ -0,0 +1,107 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit java-vm-2 toolchain-funcs versionator
+
+abi_uri() {
+ echo "${2-$1}? (
+ large-heap? (
+ https://github.com/AdoptOpenJDK/openjdk${SLOT}-binaries/releases/download/jdk-${DL_PV}/OpenJDK${SLOT}U-jre_${1}_linux_openj9_linuxXL_${DL_PV//+/_}.tar.gz
+ )
+ !large-heap? (
+ https://github.com/AdoptOpenJDK/openjdk${SLOT}-binaries/releases/download/jdk-${DL_PV}/OpenJDK${SLOT}U-jre_${1}_linux_openj9_${DL_PV//+/_}.tar.gz
+ )
+ )"
+}
+
+JDK_PV=$(get_version_component_range 1-3)+$(get_version_component_range 4)
+DL_PV=${JDK_PV}_openj9-$(get_version_component_range 5-7)
+SLOT=$(get_major_version)
+
+SRC_URI="
+ $(abi_uri ppc64le ppc64)
+ $(abi_uri x64 amd64)
+"
+
+DESCRIPTION="Prebuilt Java JRE binaries provided by AdoptOpenJDK"
+HOMEPAGE="https://adoptopenjdk.net"
+LICENSE="GPL-2-with-classpath-exception"
+KEYWORDS="~amd64"
+IUSE="alsa cups +gentoo-vm large-heap headless-awt nsplugin selinux webstart"
+
+RDEPEND="
+ media-libs/fontconfig:1.0
+ media-libs/freetype:2
+ >net-libs/libnet-1.1
+ >=sys-apps/baselayout-java-0.1.0-r1
+ >=sys-libs/glibc-2.2.5:*
+ sys-libs/zlib
+ alsa? ( media-libs/alsa-lib )
+ cups? ( net-print/cups )
+ selinux? ( sec-policy/selinux-java )
+ !headless-awt? (
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXi
+ x11-libs/libXrender
+ x11-libs/libXtst
+ )"
+
+PDEPEND="webstart? ( >=dev-java/icedtea-web-1.6.1:0 )
+ nsplugin? ( >=dev-java/icedtea-web-1.6.1:0[nsplugin] )"
+
+RESTRICT="preserve-libs splitdebug"
+QA_PREBUILT="*"
+
+S="${WORKDIR}/jdk-${MY_PV}-jre"
+
+src_install() {
+ local dest="/opt/${P}"
+ local ddest="${ED%/}/${dest#/}"
+
+ # Not sure why they bundle this as it's commonly available and they
+ # only do so on x86_64. It's needed by libfontmanager.so. IcedTea
+ # also has an explicit dependency while Oracle seemingly dlopens it.
+ rm -vf lib/libfreetype.so || die
+
+ # Oracle and IcedTea have libjsoundalsa.so depending on
+ # libasound.so.2 but AdoptOpenJDK only has libjsound.so. Weird.
+ if ! use alsa ; then
+ rm -v lib/libjsound.* || die
+ fi
+
+ if use headless-awt ; then
+ rm -v lib/lib*{[jx]awt,splashscreen}* || die
+ fi
+
+ rm -v lib/security/cacerts || die
+ dosym ../../../../etc/ssl/certs/java/cacerts "${dest}"/lib/security/cacerts
+
+ dodir "${dest}"
+ cp -pPR * "${ddest}" || die
+
+ # provide stable symlink
+ dosym "${P}" "/opt/${PN}-${SLOT}"
+
+ use gentoo-vm && java-vm_install-env "${FILESDIR}"/${PN}-${SLOT}.env.sh
+ java-vm_set-pax-markings "${ddest}"
+ java-vm_revdep-mask
+ java-vm_sandbox-predict /dev/random /proc/self/coredump_filter
+}
+
+pkg_postinst() {
+ java-vm-2_pkg_postinst
+
+ if use gentoo-vm ; then
+ ewarn "WARNING! You have enabled the gentoo-vm USE flag, making this JRE"
+ ewarn "recognised by the system. This will almost certainly break things."
+ else
+ ewarn "The experimental gentoo-vm USE flag has not been enabled so this JRE"
+ ewarn "will not be recognised by the system. For example, simply calling"
+ ewarn "\"java\" will launch a different JVM. This is necessary until Gentoo"
+ ewarn "fully supports Java 11. This JRE must therefore be invoked using its"
+ ewarn "absolute location under ${EPREFIX}/opt/${P}."
+ fi
+}
diff --git a/dev-java/openj9-openjdk-jre-bin/openj9-openjdk-jre-bin-14.0.2.12.0.21.0.ebuild b/dev-java/openj9-openjdk-jre-bin/openj9-openjdk-jre-bin-14.0.2.12.0.21.0.ebuild
new file mode 100644
index 0000000..6a9311e
--- /dev/null
+++ b/dev-java/openj9-openjdk-jre-bin/openj9-openjdk-jre-bin-14.0.2.12.0.21.0.ebuild
@@ -0,0 +1,107 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit java-vm-2 toolchain-funcs versionator
+
+abi_uri() {
+ echo "${2-$1}? (
+ large-heap? (
+ https://github.com/AdoptOpenJDK/openjdk${SLOT}-binaries/releases/download/jdk-${DL_PV}/OpenJDK${SLOT}U-jre_${1}_linux_openj9_linuxXL_${DL_PV//+/_}.tar.gz
+ )
+ !large-heap? (
+ https://github.com/AdoptOpenJDK/openjdk${SLOT}-binaries/releases/download/jdk-${DL_PV}/OpenJDK${SLOT}U-jre_${1}_linux_openj9_${DL_PV//+/_}.tar.gz
+ )
+ )"
+}
+
+JDK_PV=$(get_version_component_range 1-3)+$(get_version_component_range 4)
+DL_PV=${JDK_PV}_openj9-$(get_version_component_range 5-7)
+SLOT=$(get_major_version)
+
+SRC_URI="
+ $(abi_uri ppc64le ppc64)
+ $(abi_uri x64 amd64)
+"
+
+DESCRIPTION="Prebuilt Java JRE binaries provided by AdoptOpenJDK"
+HOMEPAGE="https://adoptopenjdk.net"
+LICENSE="GPL-2-with-classpath-exception"
+KEYWORDS="~amd64"
+IUSE="alsa cups +gentoo-vm large-heap headless-awt nsplugin selinux webstart"
+
+RDEPEND="
+ media-libs/fontconfig:1.0
+ media-libs/freetype:2
+ >net-libs/libnet-1.1
+ >=sys-apps/baselayout-java-0.1.0-r1
+ >=sys-libs/glibc-2.2.5:*
+ sys-libs/zlib
+ alsa? ( media-libs/alsa-lib )
+ cups? ( net-print/cups )
+ selinux? ( sec-policy/selinux-java )
+ !headless-awt? (
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXi
+ x11-libs/libXrender
+ x11-libs/libXtst
+ )"
+
+PDEPEND="webstart? ( >=dev-java/icedtea-web-1.6.1:0 )
+ nsplugin? ( >=dev-java/icedtea-web-1.6.1:0[nsplugin] )"
+
+RESTRICT="preserve-libs splitdebug"
+QA_PREBUILT="*"
+
+S="${WORKDIR}/jdk-${MY_PV}-jre"
+
+src_install() {
+ local dest="/opt/${P}"
+ local ddest="${ED%/}/${dest#/}"
+
+ # Not sure why they bundle this as it's commonly available and they
+ # only do so on x86_64. It's needed by libfontmanager.so. IcedTea
+ # also has an explicit dependency while Oracle seemingly dlopens it.
+ rm -vf lib/libfreetype.so || die
+
+ # Oracle and IcedTea have libjsoundalsa.so depending on
+ # libasound.so.2 but AdoptOpenJDK only has libjsound.so. Weird.
+ if ! use alsa ; then
+ rm -v lib/libjsound.* || die
+ fi
+
+ if use headless-awt ; then
+ rm -v lib/lib*{[jx]awt,splashscreen}* || die
+ fi
+
+ rm -v lib/security/cacerts || die
+ dosym ../../../../etc/ssl/certs/java/cacerts "${dest}"/lib/security/cacerts
+
+ dodir "${dest}"
+ cp -pPR * "${ddest}" || die
+
+ # provide stable symlink
+ dosym "${P}" "/opt/${PN}-${SLOT}"
+
+ use gentoo-vm && java-vm_install-env "${FILESDIR}"/${PN}-${SLOT}.env.sh
+ java-vm_set-pax-markings "${ddest}"
+ java-vm_revdep-mask
+ java-vm_sandbox-predict /dev/random /proc/self/coredump_filter
+}
+
+pkg_postinst() {
+ java-vm-2_pkg_postinst
+
+ if use gentoo-vm ; then
+ ewarn "WARNING! You have enabled the gentoo-vm USE flag, making this JRE"
+ ewarn "recognised by the system. This will almost certainly break things."
+ else
+ ewarn "The experimental gentoo-vm USE flag has not been enabled so this JRE"
+ ewarn "will not be recognised by the system. For example, simply calling"
+ ewarn "\"java\" will launch a different JVM. This is necessary until Gentoo"
+ ewarn "fully supports Java 11. This JRE must therefore be invoked using its"
+ ewarn "absolute location under ${EPREFIX}/opt/${P}."
+ fi
+}