diff options
author | Robert Greener <dev@greener.sh> | 2024-04-18 20:35:47 +0100 |
---|---|---|
committer | Robert Greener <dev@greener.sh> | 2024-04-18 20:35:47 +0100 |
commit | a399857fb36afa7211aa200e4ba91b0e69ed21f3 (patch) | |
tree | bd4070df2f94abddea47d618c7fdbc0d2e07224e /dev-java/corretto-bin | |
parent | dev-java/corretto-bin: drop 21.0.2.14.1 (diff) | |
download | guru-a399857fb36afa7211aa200e4ba91b0e69ed21f3.tar.gz guru-a399857fb36afa7211aa200e4ba91b0e69ed21f3.tar.bz2 guru-a399857fb36afa7211aa200e4ba91b0e69ed21f3.zip |
dev-java/corretto-bin: add 22.0.1.8.1
Signed-off-by: Robert Greener <dev@greener.sh>
Diffstat (limited to 'dev-java/corretto-bin')
-rw-r--r-- | dev-java/corretto-bin/Manifest | 1 | ||||
-rw-r--r-- | dev-java/corretto-bin/corretto-bin-22.0.1.8.1.ebuild | 90 |
2 files changed, 91 insertions, 0 deletions
diff --git a/dev-java/corretto-bin/Manifest b/dev-java/corretto-bin/Manifest index e3239aea2..bea6c4b68 100644 --- a/dev-java/corretto-bin/Manifest +++ b/dev-java/corretto-bin/Manifest @@ -2,4 +2,5 @@ DIST amazon-corretto-11.0.23.9.1-linux-x64.tar.gz 195487466 BLAKE2B f17bfd1406fb DIST amazon-corretto-17.0.11.9.1-linux-x64.tar.gz 193947693 BLAKE2B c384a0343739a98466e0ae4ad19de501f17910570d567ff6eec47ec66e8723ea931c8eb143f57ff3e75ed53051529cf11f1fac8c43d1387dfb637a06b1e679b0 SHA512 a101945fa3fe3ca068a62c9ac3133ff8062a48834f672a1594a5a6e11f29827616c09fd7cb0bbb057a7bdb500b367b5cb97c75ad95d8041ca4e02d6d65df66b6 DIST amazon-corretto-21.0.3.9.1-linux-x64.tar.gz 209461943 BLAKE2B b21b20e3ae625ab25e59f4d7faa3988277b4e70ae1a98e4b7c5fc09df92e1616ca28aa786f50ccd0554df8b11c7cbc094fb8e0189bd80c6431c13db4cc6dec37 SHA512 f5a9f919f0707be620294ea322e9518758ef661bd88c8c2af1a8f95b06f78068272e67758a70c64dc5c8d4989829362aa7efa0ff13077022e5a32c7dafecabff DIST amazon-corretto-22.0.0.37.1-linux-x64.tar.gz 207737618 BLAKE2B 4f7cf43d4de10a44fec207fee62050948cefd532409bfc9122a007aa5a1a9deaf36e919d5773c43be15a3b731936134ee94104702780ec887efc0a43bc4cc781 SHA512 8a4ef82a33cee41b0fd782c9252bc944fa2a10c220e873699276857a32d618a5b4ad2053a06c377d211b691b793125d2c858b3773deaf6dc8a5babe50d05b969 +DIST amazon-corretto-22.0.1.8.1-linux-x64.tar.gz 207751648 BLAKE2B 37a65e9bfd006836967b7d29df944a500069163488bd23197fa7790705fd2637f6c223c72de884be1153708b2781b19fb66b88bb28eb68bd27a2db336af7a2f4 SHA512 e7f1d77cd4cd8e13f45b895141da076cd43b6c1cb2204a33742cfdf75185297340217a2745fd1d9f8e5d2cf276bf4926ee102f2f34588acd7a6c4c03bf688d82 DIST amazon-corretto-8.412.08.1-linux-x64.tar.gz 118088115 BLAKE2B e0a5e6de7985900514a22f14795966e161719db39259f55576a0172e133057837c713f823e59b29b1e81b236b69a3ce76e6ed7e3cd27745d6b4148b2b4e8af8a SHA512 48b0a5420d6f18d6bbb74ee8a14069d102c4e9bdc04b0818aa42e0ce345b39871762b6ba1b13322c829049897a79e9a8105637f317317fca9debf0b79d27c645 diff --git a/dev-java/corretto-bin/corretto-bin-22.0.1.8.1.ebuild b/dev-java/corretto-bin/corretto-bin-22.0.1.8.1.ebuild new file mode 100644 index 000000000..3a3a6a4a0 --- /dev/null +++ b/dev-java/corretto-bin/corretto-bin-22.0.1.8.1.ebuild @@ -0,0 +1,90 @@ +# 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/+} +DESCRIPTION="Prebuilt Java JDK binaries provided by Amazon Web Services" +HOMEPAGE="https://aws.amazon.com/corretto" + +SRC_URI=" + https://corretto.aws/downloads/resources/${PV}/amazon-corretto-${PV}-linux-x64.tar.gz +" + +S="${WORKDIR}/amazon-corretto-${MY_PV}-linux-x64" +LICENSE="GPL-2-with-classpath-exception" +SLOT=$(ver_cut 1) +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="*" + +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#/}" + + # 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 +} |