diff options
author | 2022-11-28 12:42:19 +0100 | |
---|---|---|
committer | 2022-11-28 12:42:19 +0100 | |
commit | c31765701582a421020f51dab893529d42485a70 (patch) | |
tree | bf8326878b2585e7320109ba6d7264208397eeeb | |
parent | dev-java/openjdk-loom: add 19_pre20221116, drop 19_pre20220513 (diff) | |
download | java-c31765701582a421020f51dab893529d42485a70.tar.gz java-c31765701582a421020f51dab893529d42485a70.tar.bz2 java-c31765701582a421020f51dab893529d42485a70.zip |
dev-java/openjdk-bin: add 20_beta20221125
Signed-off-by: Florian Schmaus <flow@gentoo.org>
-rw-r--r-- | dev-java/openjdk-bin/Manifest | 7 | ||||
-rw-r--r-- | dev-java/openjdk-bin/openjdk-bin-20_beta20221125.ebuild | 137 |
2 files changed, 144 insertions, 0 deletions
diff --git a/dev-java/openjdk-bin/Manifest b/dev-java/openjdk-bin/Manifest index 6a0e6fa3..5bcb737c 100644 --- a/dev-java/openjdk-bin/Manifest +++ b/dev-java/openjdk-bin/Manifest @@ -1,3 +1,10 @@ +DIST OpenJDK-jdk_aarch64_linux_hotspot_2022-11-25-03-30.tar.gz 199774282 BLAKE2B e9930484d34dbc2d2fb3c61797d1e80911ea578646208f47de6b8e5a977f2c74a193865c7faf0ff24b4ea9425128e543a13845411962241ac686ab91e97157cb SHA512 a8828bc9e30d1aefc736dafc319b014061c691251fb8180873428e14cefe60d777dfcc1eefc67fa7843abc7a788656d8e3a098daa66a7e976bdc74c61ac10ae0 +DIST OpenJDK-jdk_aarch64_mac_hotspot_2022-11-25-03-30.tar.gz 186236213 BLAKE2B 1ff9a7d02c72c8cb59e1de9566ed49b4f8c26246992ad363c2921ee8e1e09122aa2adbc35a917f806da6e6a467254850056b954dd6fa3baa00ce73ae9ce15b00 SHA512 eefbaf86285ef1b338c8f95af9d14ed674e8796b94030c4a50546c7c6790e6f4bdf0376eec00e15bcd0089525f6192ae392b57def07b99ddfa69119a374f14e0 +DIST OpenJDK-jdk_arm_linux_hotspot_2022-11-25-03-30.tar.gz 201332936 BLAKE2B bf6295dd03c371392234059f3fc1244cc1a59b863776a6fad958259bbf4d9402f534c53c5b690064c038573ed0f3d71d2354dde3987c4ef1d7b7f92b604d7a2e SHA512 47b45b64142b86c6701664352a3e91417e472bb751162e790d0a034ff270c385b94015b7b81a2947545ae888d59716d6d226cddd50a3b26138a36c228945add4 +DIST OpenJDK-jdk_ppc64le_linux_hotspot_2022-11-25-03-30.tar.gz 200726099 BLAKE2B 62b4bf480d4c13eebee15ec59126174a6679e59367bade7f39bd99d6c948193e6beb1aaa70e6eff37e74aac80178185b2e2857ba51601013afbf9201fc0183e2 SHA512 4581457e28c7dafff008067db22fa4ec19e651adfbb71c024d577f6fd1d4a6705fe0ed7b0a2f5c368f4b156c7817606acead87a917badfb092d88daf541e1732 +DIST OpenJDK-jdk_x64_alpine-linux_hotspot_2022-11-25-03-30.tar.gz 200684244 BLAKE2B 856f4244ed50d614af33b60229401490a3ee3643304f8b784cc22ed6eadfb2f3f3305509f00a325f3e1844305ac56eeef4345233dd44b1307e7d9fa1665fb936 SHA512 23fba9c02882402d1df93dc278e0c4701cfcff60b0086f69daa3068f8218c2e665f861963822fe953ff4fc1720a5e157cd9341eac03b80e033190b0a69c91424 +DIST OpenJDK-jdk_x64_linux_hotspot_2022-11-25-03-30.tar.gz 201494529 BLAKE2B 54aa670ef143c0ee4b6cd35f19910269b7783401e01d4a00e6784f669e4cda2b81def6f10810911cb665e6352800916573926f6a1128bc925a8cb47575b453ef SHA512 e0c430f4c1fe52c7e33112bfa0e139d13eb577e91306970c295cb11b0667f9e1f2aeb729ca85719f0188ed89fb49db5fd3e6d08e632c85e0f2b25899f3295add +DIST OpenJDK-jdk_x64_mac_hotspot_2022-11-25-03-30.tar.gz 197027544 BLAKE2B 411d0b6cc7d462179d04d67efd54aea11a4e9372f16e74c64cd184c704976b28d2ca1b4a1542a17a8b1b99833db9ba889103f88ff8a2ab8fbee84c12ddfbc243 SHA512 bca65c3ccaba33b632aff5d61e589bbd226bedfdb0a0b6e0308efd0a0e61df3b1236b8315191f1bdadc8664384913de39af9605e26db054955ac7088156fb4ee DIST OpenJDK18U-jdk_aarch64_linux_hotspot_18.0.1_10.tar.gz 191259769 BLAKE2B bf65463bd2d09c2546e272d3972f24ed1b92223125b474e40ab3166f7ee190b831d9a021a74b72279ce404517158b0cc144aec8eb3a20e164e8a86b73f20126e SHA512 c0127793551bb4f335c3970b53b515265f9e53cca02cd597ac854ceb88bc479bbb96b865ac31e194eda14c5a1b9f08a6d0f3922a3d763a54a1994478c2526afc DIST OpenJDK18U-jdk_arm_linux_hotspot_18.0.1_10.tar.gz 189528067 BLAKE2B 05485aaf4ae8071afe0a988f893fdc1611b4841003b5c01ea6ae8ed83905191e9d7a4848e4a0b3b3f9d69e6246e1df354f57ebbd6460a53834b3562dfa971fea SHA512 93c45e7f3549018dc10a83e19052504352a7e242b2c5e40a5a9bfc30813e5c21b23f6f06c4ae5e94b9ab0a6b9be7397dceb7ebd871e2e45f49e6023c76bf6ca0 DIST OpenJDK18U-jdk_ppc64le_linux_hotspot_18.0.1_10.tar.gz 191894570 BLAKE2B 4d9c34bfc24bd8edd25546a66c2ab7fe7fec0a4e813ad8ca4908736d37e64e65f19ab8b5f5058084189390acd9cfb7eb52c6c477ce7f055b2ed1792dfb722db7 SHA512 c9c2ba2734c66546cbaaeea64063b196be87ee93141244d6910159287cddbc1d3a05e4436b0edf3d22be38f7169a1d8da003525d8ebe650a2ccabe1928a5199d diff --git a/dev-java/openjdk-bin/openjdk-bin-20_beta20221125.ebuild b/dev-java/openjdk-bin/openjdk-bin-20_beta20221125.ebuild new file mode 100644 index 00000000..e3258dec --- /dev/null +++ b/dev-java/openjdk-bin/openjdk-bin-20_beta20221125.ebuild @@ -0,0 +1,137 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit java-vm-2 toolchain-funcs + +abi_uri() { + local baseuri="https://github.com/adoptium/temurin${SLOT}-binaries/releases/download/jdk-${MY_PV}/" + local musl= + local os=linux + + case ${2} in + *-macos) os=mac ;; + *-solaris) os=solaris ;; + esac + + if [[ ${3} == musl ]]; then + os=alpine-linux + musl=true + fi + + echo "${2-$1}? ( + ${musl:+ elibc_musl? ( } + ${baseuri}/OpenJDK-jdk_${1}_${os}_hotspot_${MY_PV_2//+/_}.tar.gz + ${musl:+ ) } )" +} + +MY_PV="2022-11-25-14-40-beta" +MY_PV_2="2022-11-25-03-30" +SLOT=$(ver_cut 1) + +SRC_URI=" + $(abi_uri aarch64 arm64) + $(abi_uri arm) + $(abi_uri x64 amd64) + $(abi_uri x64 amd64 musl) + $(abi_uri aarch64 arm64-macos) + $(abi_uri ppc64le ppc64) + $(abi_uri x64 x64-macos) +" + +DESCRIPTION="Prebuilt Java JDK binaries provided by Eclipse Temurin" +HOMEPAGE="https://adoptium.net" +LICENSE="GPL-2-with-classpath-exception" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x64-macos" +IUSE="alsa cups headless-awt selinux source" + +RDEPEND=" + >=sys-apps/baselayout-java-0.1.0-r1 + kernel_linux? ( + media-libs/fontconfig:1.0 + media-libs/freetype:2 + media-libs/harfbuzz + elibc_glibc? ( >=sys-libs/glibc-2.2.5:* ) + elibc_musl? ( sys-libs/musl ) + 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 + ) + )" + +RESTRICT="preserve-libs splitdebug" +QA_PREBUILT="*" + +S="${WORKDIR}/jdk-20+25" + +pkg_pretend() { + if [[ "$(tc-is-softfloat)" != "no" ]]; then + die "These binaries require a hardfloat system." + fi +} + +src_unpack() { + default + if [[ ${A} == *_mac_* ]] ; then + mv -v "${S}/Contents/Home/"* "${S}" || die + rm -Rf "${S}/Contents" # drop macOS executable + fi +} + +src_install() { + local dest="/opt/${P}" + local ddest="${ED}/${dest#/}" + + # on macOS if they would exist they would be called .dylib, but most + # importantly, there are no different providers, so everything + # that's shipped works. + if [[ ${A} != *_mac_* ]] ; then + # 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 + + # prefer system copy # https://bugs.gentoo.org/776676 + rm -vf lib/libharfbuzz.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 + fi + + if ! use source ; then + rm -v lib/src.zip || die + fi + + rm -v lib/security/cacerts || die + dosym -r /etc/ssl/certs/java/cacerts "${dest}"/lib/security/cacerts + + dodir "${dest}" + cp -pPR * "${ddest}" || die + + # provide stable symlink + dosym "${P}" "/opt/${PN}-${SLOT}" + + java-vm_install-env "${FILESDIR}"/${PN}.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 +} |