diff options
author | Robert Greener <me@r0bert.dev> | 2024-04-01 20:56:58 +0100 |
---|---|---|
committer | Robert Greener <me@r0bert.dev> | 2024-04-01 20:59:01 +0100 |
commit | dfbc25dc0ace0145efe280bd646ac341e12eeca5 (patch) | |
tree | 7bf4610ced0e9845a6f8a90329a566023fc7dcfc /dev-java | |
parent | dev-java/microsoft-openjdk-bin: New version 17.0.10 (diff) | |
download | guru-dfbc25dc0ace0145efe280bd646ac341e12eeca5.tar.gz guru-dfbc25dc0ace0145efe280bd646ac341e12eeca5.tar.bz2 guru-dfbc25dc0ace0145efe280bd646ac341e12eeca5.zip |
dev-java/microsoft-openjdk-bin: new version 21.0.2
Signed-off-by: Robert Greener <me@r0bert.dev>
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/microsoft-openjdk-bin/Manifest | 2 | ||||
-rw-r--r-- | dev-java/microsoft-openjdk-bin/microsoft-openjdk-bin-21.0.2.ebuild | 97 |
2 files changed, 99 insertions, 0 deletions
diff --git a/dev-java/microsoft-openjdk-bin/Manifest b/dev-java/microsoft-openjdk-bin/Manifest index d0ed73df2..0fda46154 100644 --- a/dev-java/microsoft-openjdk-bin/Manifest +++ b/dev-java/microsoft-openjdk-bin/Manifest @@ -2,3 +2,5 @@ DIST microsoft-jdk-11.0.22-linux-aarch64.tar.gz 195581683 BLAKE2B e27735a58eaa60 DIST microsoft-jdk-11.0.22-linux-x64.tar.gz 197022932 BLAKE2B 8ac69530bd7ccc832d8466f8ad94ddb6159b6bd70fbe4d3d84f72bde78d418d578a4143407331a61e5e8cbd8c1979b1eab8a3b9a79888a760eed0f442625cfcc SHA512 04aceb51c148f97f6f88242bf473ad0259b64776858e9cc89048beff4dfac0149d10e608ee51cce5466ed3f51034d69252e6eccf1b5c890d55ad3f1e88ec563b DIST microsoft-jdk-17.0.10-linux-aarch64.tar.gz 190078768 BLAKE2B 03cea395bd0336dbc75ad14aa6add1c98851022abf03644c4c0d8a054d70527b104db46103442c0bc5d2592d28c7dbafc51e6e8573150f730a645d12cc3edc32 SHA512 4878e00b6d3acc5b7c9af938e64270c69a35a757452955bcf9fef2c62e3072461e28e5974f5aba82dcec8fc1eafa7ea02fae2347ff564dedd80ab2a28d265c0d DIST microsoft-jdk-17.0.10-linux-x64.tar.gz 191482548 BLAKE2B befaa3495a80b52b2320c0d6955635df5c5252a33955569d0204273d9bd152a9506723abed85685876349ef2f80771528165d13c177a16cd93b8431801acd1c2 SHA512 c3a0302cdc9c9ef4674c191eb149a85a4f9f771a6237baa00b6346d3f83d935f47d87e08c3fc37eead872b3e36c5904a15c4554289220df1feadd23baddb902e +DIST microsoft-jdk-21.0.2-linux-aarch64.tar.gz 204898650 BLAKE2B 76ba846f1a80b15717cc6d587080a7d709ce3e8f2bcf74cdf2bf0177064be53b90ec0887459da1efe210117b62df74733cfd4115cfec00a13e0ec139709ba1a7 SHA512 4fd0bda6b70bc7e3eb35b7a96e43da2a470966b6e702424b43693e51879ddb1aa1c70d5254ef202b46b19b0c06951d96f0cf81fc63e34ee97385fa945926b3fe +DIST microsoft-jdk-21.0.2-linux-x64.tar.gz 206772622 BLAKE2B e31ced718c87fa051e72bdc8488ad4e0586bed9d3e8023e2969fb49ada837dccb6289fc29e524837550664c8a7a0536cf0d79faf3b02deb55152f8ccfb99c574 SHA512 3e94145d956558184c23023e84486337e853901953b5b927162ddd039529ebfd8ef664491dda1573c5ca4d3d3d8161fffaef8630702dd3a2b706212ab1405da3 diff --git a/dev-java/microsoft-openjdk-bin/microsoft-openjdk-bin-21.0.2.ebuild b/dev-java/microsoft-openjdk-bin/microsoft-openjdk-bin-21.0.2.ebuild new file mode 100644 index 000000000..ea61ecf3e --- /dev/null +++ b/dev-java/microsoft-openjdk-bin/microsoft-openjdk-bin-21.0.2.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit java-vm-2 toolchain-funcs + +MY_PV=${PV/_p/+} +SLOT=$(ver_cut 1) + +SRC_URI=" + amd64? ( https://aka.ms/download-jdk/microsoft-jdk-${PV}-linux-x64.tar.gz ) + arm64? ( https://aka.ms/download-jdk/microsoft-jdk-${PV}-linux-aarch64.tar.gz ) +" + +DESCRIPTION="Prebuilt Java JDK binaries provided by Microsoft" +HOMEPAGE="https://www.microsoft.com/openjdk" +LICENSE="GPL-2-with-classpath-exception" +KEYWORDS="~amd64" +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-${MY_PV}+13" + +pkg_pretend() { + if [[ "$(tc-is-softfloat)" != "no" ]]; then + die "These binaries require a hardfloat system." + fi +} + +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 + + # 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 + + 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 +}
\ No newline at end of file |