diff options
author | Georgy Yakovlev <gyakovlev@gentoo.org> | 2023-06-26 12:50:26 -0700 |
---|---|---|
committer | Georgy Yakovlev <gyakovlev@gentoo.org> | 2023-06-26 14:30:07 -0700 |
commit | ecac4bb16a3dba16922b76884e0f76a4fb45970c (patch) | |
tree | da16e16a0145fb72007daa6174e2b61d2b71c824 /dev-java | |
parent | dev-java/openjdk-bin: add 8.372_p07 (diff) | |
download | gentoo-ecac4bb16a3dba16922b76884e0f76a4fb45970c.tar.gz gentoo-ecac4bb16a3dba16922b76884e0f76a4fb45970c.tar.bz2 gentoo-ecac4bb16a3dba16922b76884e0f76a4fb45970c.zip |
dev-java/openjdk-bin: add 11.0.19_p7
Bug: https://bugs.gentoo.org/908243
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/openjdk-bin/Manifest | 6 | ||||
-rw-r--r-- | dev-java/openjdk-bin/openjdk-bin-11.0.19_p7.ebuild | 135 |
2 files changed, 141 insertions, 0 deletions
diff --git a/dev-java/openjdk-bin/Manifest b/dev-java/openjdk-bin/Manifest index 75d3638e9f38..0dc96af2c737 100644 --- a/dev-java/openjdk-bin/Manifest +++ b/dev-java/openjdk-bin/Manifest @@ -1,9 +1,15 @@ DIST OpenJDK11U-jdk_aarch64_linux_hotspot_11.0.18_10.tar.gz 190875193 BLAKE2B 117f56583c1a7f4aee8df9117c683ad205fa424a53a46fedad21bddd5c36ffcbd7031db468da09bdc840de65a19f5420d12a79612be48142181b8e691c959686 SHA512 e3fbcb65feda7bc59a2054deaaa255d5e4af479d4105ba8d1089fc00c1d80989d3f7a2ee1bb93a68fd98257cc98d6a1800e6de4539232a7110743264da033f0e +DIST OpenJDK11U-jdk_aarch64_linux_hotspot_11.0.19_7.tar.gz 190945517 BLAKE2B 24bd0e9ec9d9b64db542c42c800572ce960be69cc30abb6515eb0da34c234e8d5f3b714c1fb0be1d97b8a8019cfdeecc4068370d4ec6bd064a4bee9a1333e3d6 SHA512 cee8eb4c5950a0ff29ebfde4182c5b5f64f5eb3a3ba288561da95604c7f4e2a9507d23485d695d53cba29f0f96111a9687fe2fa2763986199e88cefd27318656 DIST OpenJDK11U-jdk_arm_linux_hotspot_11.0.18_10.tar.gz 181837466 BLAKE2B df9935b4a2b8255439a0691b06636c4c40cd6d15dbcdf6b722eb57219cf67f1a7e44bf1eee3d7f8b65ca854c83d61a942d8384add454384f5b0f0113767173c2 SHA512 0b8a7e7a856d310ead1fbae214473a11ce41fef00b19b4e5a9553d076d4d6f692852983ea6afc3fb06800c8478e79c510e60d7157e7b13a710663ee01939bfad +DIST OpenJDK11U-jdk_arm_linux_hotspot_11.0.19_7.tar.gz 181919937 BLAKE2B 127fdca2b7305a45e23110b5e95079f9eafc554c8cdd620fbe0750b25f880a0e14be16b60e0a8fe8289adede3a99ef5205b75ad586f165f2e72d69e322e91b4a SHA512 2e1d030b3dcd90ca8a14637547b525a3ed1113516b3f8c9b41377e71399ecd634d9db97457d75e8fa6e2451500c1986a6dd31393a8e0d81216b5d334e8eeece6 DIST OpenJDK11U-jdk_ppc64le_linux_hotspot_11.0.18_10.tar.gz 176301953 BLAKE2B 8132410a2d7d56dc65877d66b64eeac1943315d83144b026e03fa5ce68ee688e4c47f96112d6ebee87353275d797ffad1d7b52ea90882755cd9825d4a1e251f0 SHA512 d530bb22118e643b04b97823b779e308952df443cf03c3a65727fd64e531006beada229742e89d93eb7fe693ac7687c0229cb9ebc28482841d4a2c03d451b317 +DIST OpenJDK11U-jdk_ppc64le_linux_hotspot_11.0.19_7.tar.gz 176344532 BLAKE2B 08030f5cbff4fb287340bcbb935e507d652786de4a3b77e9f331751f4de28cc1bc1cae6db1a240f19be21d69ee81a4995ed5d22b31ee7b6e5ef4e9c1e0295daa SHA512 9f29484275a0468aa6fbd949c7110b55a102deb8b6f94f004c91f6c49b5e83ba6d29eaa94298d003754215d4a5e68106fae7e4b1fcb361dd3b4e32afc8578d74 DIST OpenJDK11U-jdk_x64_alpine-linux_hotspot_11.0.18_10.tar.gz 193025321 BLAKE2B 7302e0be8681b34d65b7dc83fd7e4dc720710edfd5dc536cf94da61853cb8a9e65ca2d9fb0057129aaa18bce70dcaf41dd802a650ab9acb9e4f939c403c3c5f4 SHA512 ed3f06f35b046d811fcee5eaff196a035b706ba29f585748585bace1e9ffdb13f16fd1f23c44319760229c4fb1c3a2feb3ed540632f8da8541914c135f06eb74 +DIST OpenJDK11U-jdk_x64_alpine-linux_hotspot_11.0.19_7.tar.gz 193074969 BLAKE2B ea50ff6b9f4ea244e506b868fb9c56776bfda597dcd7a5dec82d9bb89b568cce2faf67cdcf615e5c8af2da20a2e724ff20046ff278ed6290971cccab6cc2b361 SHA512 858f9ab7b10a748dec7bd918e3d8dec829d069fd1da0a1215769035f3a9c69eb0e63aca91a5e8ef8a389786cf11fa95840ea171f6722e8d5f2b276f1ea2c5dba DIST OpenJDK11U-jdk_x64_linux_hotspot_11.0.18_10.tar.gz 194100197 BLAKE2B 751034d006335d3c48f5394d797d963b13a1eb4f30688dbae2be29cdc4c21855a8dd5f1faac895e17c0a56c43bd64b0a73bad61b845dd1cc1b0ce0d62019bcb9 SHA512 8d3e285b850b6f5d81481d7d2ffa1951a28ad383eda6ecbede3f2653437bd7d978a4b8613d870613a0b97e76325ee03e97b3b89e0cd124ffdf3c9bd2e16426d2 +DIST OpenJDK11U-jdk_x64_linux_hotspot_11.0.19_7.tar.gz 194163202 BLAKE2B 67bd852819520aca89a01c4dc3b623857caee10b3321988c9638cabd53ba2b70cd79c015e4542a7cd007ece0e0ce53ba6ea9803cabc77adcdb3585f233b57120 SHA512 ec2b335b5bebf0c3d465b721f3ae870dc1d31bae8ab6a5c01813b8670214350f48d0098556dd4183904b485df4b476a3a0f1bdffc13065daee3ad60d899d6047 DIST OpenJDK11U-jdk_x64_mac_hotspot_11.0.18_10.tar.gz 187254949 BLAKE2B 063f437ae64b3b6e30dacca5c01b02118ec7752cc91ece1ddaef16994629a6f5e8912fc4c11fdb44d521929a620803f1c3906911a45f5cec67a705b62bb279a3 SHA512 d9ed4bc73965672752392fd2741372a92dff4d2262c45dff31d95e13970afd31f513bc3ad93071e568c3e9e8afbf9af89f758d80f4922dc364ff332df08e762c +DIST OpenJDK11U-jdk_x64_mac_hotspot_11.0.19_7.tar.gz 186680275 BLAKE2B 6ace35227cbd34bfa3538221f5f135b07cb389327df4d88c4e179e48ff73884a1296ce69af8c35554c04a247944b8f3a39d7fa8608e1a0c6d26231c5e68a1f0e SHA512 95d8ef853a1104715ac023ea7036834e0a2ff43aa509344bf3d9b590ecbbcd5f06164042f6decbf83283dcaf06d39771b787eaa23c7299fa04bdf925a0d1988a DIST OpenJDK17U-jdk_aarch64_linux_hotspot_17.0.6_10.tar.gz 190151132 BLAKE2B f602ebc908f111d6c3aceb5cf6fabdc0940bd3aafb840b78fdda64e98a247f0dfa7fc648827cc62cb46c16ce084ca1cf51274c9629b28580d028a9ac4b2be8a0 SHA512 f8a46cbc32160ebeee9c2047e6ac7837fbdc73549257c61d197486675fcb9420def98400779a0ec40a73652dc919daa5a9442bafe4f9129891527e24a109bb99 DIST OpenJDK17U-jdk_aarch64_mac_hotspot_17.0.6_10.tar.gz 177369180 BLAKE2B c45592830d2a9d87871b324d6ee331013c7ac5c1a968edede6ebb639c611422c4d2ee507c8cac7b154abf2031c71f7248b5ab4795bf4e56fc89e75469cdce1a2 SHA512 3e63a9c5457ca82cae15058f86c06bafb9172f95669d24b43bb371d19eedb7afec8725fabe1104fb0f575c2bd7e7ac8f41c103d6f967f7b910663b1e51d05a4a DIST OpenJDK17U-jdk_arm_linux_hotspot_17.0.6_10.tar.gz 188314167 BLAKE2B 71d8de8745dc5777cbec614f7ea254919b485d225e1eda0d43dde6c21bda20e5cb19c751af851471e5aa0d7399737df769758f7962932b63a85e00dabe746675 SHA512 7bd7a1a638088cf12b5722320c90504a661ab684dfd3f13fd87e24f12b94f5f2abcc98570d8939da9fe89d8f62e0de939db883b4d1e4f1262dae1e63610b4b6b diff --git a/dev-java/openjdk-bin/openjdk-bin-11.0.19_p7.ebuild b/dev-java/openjdk-bin/openjdk-bin-11.0.19_p7.ebuild new file mode 100644 index 000000000000..b3ee8c67b3ab --- /dev/null +++ b/dev-java/openjdk-bin/openjdk-bin-11.0.19_p7.ebuild @@ -0,0 +1,135 @@ +# Copyright 1999-2023 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${SLOT}U-jdk_${1}_${os}_hotspot_${MY_PV//+/_}.tar.gz + ${musl:+ ) } )" +} + +MY_PV=${PV/_p/+} +SLOT=$(ver_cut 1) + +SRC_URI=" + $(abi_uri aarch64 arm64) + $(abi_uri arm) + $(abi_uri ppc64le ppc64) + $(abi_uri x64 amd64) + $(abi_uri x64 x64-macos) + $(abi_uri x64 amd64 musl) +" + +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-${MY_PV}" + +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 +} |