summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2024-07-17 22:45:11 +0200
committerMiroslav Šulc <fordfrog@gentoo.org>2024-07-21 13:27:54 +0200
commit7b3c10d4a428488af640771dd1b21419c2d98202 (patch)
treedeec8978804e4961508545431f1f5d255987db0f /dev-java/openjdk-bin
parentapp-vim/vimclojure: update maintainers (diff)
downloadgentoo-7b3c10d4a428488af640771dd1b21419c2d98202.tar.gz
gentoo-7b3c10d4a428488af640771dd1b21419c2d98202.tar.bz2
gentoo-7b3c10d4a428488af640771dd1b21419c2d98202.zip
dev-java/openjdk-bin: add 24_p6_beta (early access)
- unkeyworded since java 24 has no LTS - not for production Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/openjdk-bin')
-rw-r--r--dev-java/openjdk-bin/Manifest5
-rw-r--r--dev-java/openjdk-bin/openjdk-bin-24_p6_beta.ebuild135
2 files changed, 140 insertions, 0 deletions
diff --git a/dev-java/openjdk-bin/Manifest b/dev-java/openjdk-bin/Manifest
index 652d8b40a70b..bef23b58be99 100644
--- a/dev-java/openjdk-bin/Manifest
+++ b/dev-java/openjdk-bin/Manifest
@@ -1,3 +1,8 @@
+DIST OpenJDK-jdk_aarch64_linux_hotspot_24_6-ea.tar.gz 212520258 BLAKE2B 38e66bdbadaa812b15c60fd4d52c19855207e832a50b34a6a78619d423a90a6211aa8315f7ebb6ebb45f85a258db0d80925b223b7602f1c24d832a8568704619 SHA512 509c272320a020cd077a6ff3c0d600f70f6ebd1ad69b00b0e96e58fc7d727ef26f1ee94059f7b3594394f2c884870a6bcfca237212301655bfe16c1acaecd09c
+DIST OpenJDK-jdk_ppc64le_linux_hotspot_24_6-ea.tar.gz 214153451 BLAKE2B aef40a4af20212f156edf4d78033096ecfebe9450cb3b8b19f028625d98cc9afaa22d5c6ebb3c51f58defad5dd26d754013e241a93c16e9d519fd6a9d35f8da6 SHA512 007c32a521b8a3bece215501bc6a686606fbbf4bf143e7c05fe14b36a467acc320b6432bc56082a16be26f68983ab2542a8c3a4f6b69d0759e68b9f20fc8ed65
+DIST OpenJDK-jdk_riscv64_linux_hotspot_24_6-ea.tar.gz 210480800 BLAKE2B 473a1f7288fdeb3af08147e92288cf35e191e3a3d3de817af65bc3407496bcda822afe5264f644286a0aae6a8829275bc2f82b5e53c0f13ffafb962c542cfff0 SHA512 f5e625ed8466660857b5376ff1d8583a15377eaece9715fd2a3f0f9a812f15af718fb19ce7d430ef231bfafaca097218627cdea213fdce5efacb3de8e72c8fd8
+DIST OpenJDK-jdk_x64_alpine-linux_hotspot_24_6-ea.tar.gz 214819598 BLAKE2B 334e42c0ae0cc527dcb35e7272edb18d7e1958e22f57e9a6eba9f1a0ba0322157bf1fa6ee59a975854671260440e65f05ca6d35d7017a7afe1bb91176b7c2e0e SHA512 8b9c4e9018e4482bf8394cdf185223fc72e451eaea5fcb651dcf568a9bbe6cb6d5641b8c14416fd06660b2d306eaec1dea050ffdc0f47891694b1135019fd6db
+DIST OpenJDK-jdk_x64_linux_hotspot_24_6-ea.tar.gz 214637760 BLAKE2B 8f3a7895891297005661c6a5fac93b011a41f96620ab59b5b96098fb12daf7a4f0557e218e049fe9214f8dcfc387b1045b36edb09d5f792357491bbba0ca6a3b SHA512 c1d144cd9b2673c4986b80cb139ff241052800c29f814b6b4f25d17b33d54bde41a1ec0c39f6ae5f68d2745dfb28edb3d5f3c8396bef767f216ed908eec56f9c
DIST OpenJDK11U-jdk_aarch64_linux_hotspot_11.0.23_9.tar.gz 192013902 BLAKE2B 6a4b47b9a3397d3436bd55a16a459a3cab3f8a2a7dc3285b3bde8db13f0e66d5e094803df0c5901a17272e6378161caada6f27845184e2efd17a6761661299c8 SHA512 90e53418efc7c34d7cf0691d566f07a84f02bd2d34cdee0c9c343e27c8d9bfd4d1bf86f104ae33a47274932ab8ba6ec8071a35e7d613129d03e439ae3382452c
DIST OpenJDK11U-jdk_arm_linux_hotspot_11.0.23_9.tar.gz 182785851 BLAKE2B 453ca29859e749a9050f8b6627696ab6d38ee5e83ab69b1d159eb3b7c0bae68104cf68ca21b87123b4fc61059e528ba4ed0ee29fa4759f33a3cf46182f52a48a SHA512 af8ed3659f8ff07f5e5c135d96a7368d326f5b19e3d73077a3fa701716f6e415d4a784ff6c5f81267eb1b3d2e171a688126253f1c3197fc80ea260826ebad5a0
DIST OpenJDK11U-jdk_ppc64le_linux_hotspot_11.0.23_9.tar.gz 177453532 BLAKE2B aa98f381f2ac4f208ced4dac4f4b01d20cfd27c8ccc75a0c41db6a57b67ca11d87b8133cb0af96283f646e5e90612f9ad69db5129e6f50518ad2eb0a53c86db1 SHA512 c590fa032593db48531d49977c95d1f884fe751472d927d0d0bc15f36ec35f71ea53c9acafa3dc00c4b25e88d4c18ab590b42f8057a277e16947c3ce31362381
diff --git a/dev-java/openjdk-bin/openjdk-bin-24_p6_beta.ebuild b/dev-java/openjdk-bin/openjdk-bin-24_p6_beta.ebuild
new file mode 100644
index 000000000000..72e3e2f5c768
--- /dev/null
+++ b/dev-java/openjdk-bin/openjdk-bin-24_p6_beta.ebuild
@@ -0,0 +1,135 @@
+# Copyright 1999-2024 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$(ver_cut 1)-binaries/releases/download/jdk-${MY_PV1}/"
+ 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_PV2//+/_}.tar.gz
+ ${musl:+ ) } )"
+}
+
+MY_PV=${PV/_p/+}
+MY_PV1=${MY_PV/_beta/-ea-beta}
+MY_PV2=${MY_PV1/-beta/}
+
+DESCRIPTION="Prebuilt Java JDK binaries provided by Eclipse Temurin"
+HOMEPAGE="https://adoptium.net"
+SRC_URI="
+ $(abi_uri aarch64 arm64)
+ $(abi_uri ppc64le ppc64)
+ $(abi_uri x64 amd64)
+ $(abi_uri x64 amd64 musl)
+ $(abi_uri riscv64 riscv)
+"
+S="${WORKDIR}/jdk-${MY_PV%_beta}"
+
+LICENSE="GPL-2-with-classpath-exception"
+SLOT=$(ver_cut 1)
+# KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv"
+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="*"
+
+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
+}