diff options
author | Georgy Yakovlev <gyakovlev@gentoo.org> | 2023-06-26 12:29:30 -0700 |
---|---|---|
committer | Georgy Yakovlev <gyakovlev@gentoo.org> | 2023-06-26 14:29:51 -0700 |
commit | 3c0dcbe03a09198ffb431b9c7bd6d3496367bd2b (patch) | |
tree | b157629d539199c668f130e2d72ed585bbd5e8f7 /dev-java/openjdk-bin | |
parent | app-crypt/codecrypt: add github upstream metadata (diff) | |
download | gentoo-3c0dcbe03a09198ffb431b9c7bd6d3496367bd2b.tar.gz gentoo-3c0dcbe03a09198ffb431b9c7bd6d3496367bd2b.tar.bz2 gentoo-3c0dcbe03a09198ffb431b9c7bd6d3496367bd2b.zip |
dev-java/openjdk-bin: add 8.372_p07
Bug: https://bugs.gentoo.org/908243
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'dev-java/openjdk-bin')
-rw-r--r-- | dev-java/openjdk-bin/Manifest | 6 | ||||
-rw-r--r-- | dev-java/openjdk-bin/openjdk-bin-8.372_p07.ebuild | 131 |
2 files changed, 137 insertions, 0 deletions
diff --git a/dev-java/openjdk-bin/Manifest b/dev-java/openjdk-bin/Manifest index cd1557481180..75d3638e9f38 100644 --- a/dev-java/openjdk-bin/Manifest +++ b/dev-java/openjdk-bin/Manifest @@ -12,8 +12,14 @@ DIST OpenJDK17U-jdk_x64_alpine-linux_hotspot_17.0.6_10.tar.gz 190844751 BLAKE2B DIST OpenJDK17U-jdk_x64_linux_hotspot_17.0.6_10.tar.gz 191502157 BLAKE2B 7de684d2529e63e6e28f726c57c139c4890caa7f2f753199eb1a5ac623d2f554c22f43b4b32fd1030c29c0cb6b9ad74ca27b1c7c4bb422bb889d48ba597726ef SHA512 71f0f14647d672ceff9a53db7bd6a158c787a3fb3196498a57ccd94c7da46af2550c04ab7ba95a549fe4f3d6482ecd7c77c4b20057ec2b32beb9a2a46c9ad0a5 DIST OpenJDK17U-jdk_x64_mac_hotspot_17.0.6_10.tar.gz 187219587 BLAKE2B dd8f19c7498bec3afcf464e38583ea769c14575d4fb2b4bc3102ded6731db934d85353863d46201e92dbf93b19ad8c2237f5e3c62cb1360da05cf56df8618362 SHA512 1e17bce0ae272dff9e788bc4d83e7a3a518aaab589448eb3139dba89e52e63ecaad9c991db99839ed7b22f1fd47820579a570271a5df01d37f595b72de89055e DIST OpenJDK8U-jdk_aarch64_linux_hotspot_8u362b09.tar.gz 102042474 BLAKE2B 02a12a4fd6fd9a0be8627e86bdc69f2aa76b1b0a877e6f4deed9fd5499d09559c6fe3157b538e7b5c308ae862f33fb2caaeed6530cc055a1a289870843712673 SHA512 d45e20de4a51f1151ef0c83eb1ea3e338e00afaa5d19b677a03328e2a5282601c4845cefeae6ada528e56949d82dd8057422dca73e8711f858b9bc00bda33abc +DIST OpenJDK8U-jdk_aarch64_linux_hotspot_8u372b07.tar.gz 102062639 BLAKE2B 46a855c69ea349895d4641754df09a1fc564dc3005534cb52b0611495dd93d8c42c9b8a740441de3169210d2d92faa15ff7c7de3ed0ec5106a7de228fc8c21ec SHA512 ce1fe591a5b59d46fbfba50cb8c47698fd1b5e0ce4b6bc1dcb9c6ea07d5a1afa3fb803b8f35df7dbcb7c6964b4be616e5f5a6e70f6d735052add9c7e77fc66a7 DIST OpenJDK8U-jdk_arm_linux_hotspot_8u362b09.tar.gz 98287152 BLAKE2B c41343bda7383163ea125246616764c3aa528cd78936a653974685440945e27c259bd6f72bd8a126d6eb9ff8a92189824881bbbd44fa7b23f676a6ff4197d89f SHA512 5b9cb46932efe95e0beca73616d7f982ba398d597a33aff34429919675d8524304f38b17d86faea4701813d6a992f16384c2721993800291a3640961a2027823 +DIST OpenJDK8U-jdk_arm_linux_hotspot_8u372b07.tar.gz 98310010 BLAKE2B 116ce3752db5c1995b54a78e9c7bce4c2a6b6dd3d8af895297384b3afeb79309e1d6fde4ea5d63e04f3e2bb157298802732b391044c2a1138434e74e37874f54 SHA512 41a9ffd613a4d71537a738281c31c9194d7df749beb08231965034b66920830e4e5eb34a726516b6a712d10326a33805d1fa8cd28a94a75170cc86eacd8b03a5 DIST OpenJDK8U-jdk_ppc64le_linux_hotspot_8u362b09.tar.gz 100484333 BLAKE2B ecfc4473fec3120d68ea511f72b8e97d4d5e92098849a3f04853b5ad11c8f5ce61b49ec074ff739083f9e2e25d65a6e657ef1c0c9f275606e8b41fda3a8aec2c SHA512 dbe8002f45d1e0ff4dd980123a88ae160ad006de0ab656798fec8896d23905071d1c6f41cff618422cf37d9620ee10dbe6522e8266095eaff3244a7c36232e38 +DIST OpenJDK8U-jdk_ppc64le_linux_hotspot_8u372b07.tar.gz 100508059 BLAKE2B b8cc628f4c6bee953937fa4b12d04b8947b0d95a0910f1de9ea51f4bb6bfba85ea5bb30c7fc1b23ec8402858116e2c35aa6d08a9ae1da00da4f3343d88554250 SHA512 1b9624fd4996c25108661b46e14c916399b7850ddced477e0433e53f1ae19af5c56ffdc28ac30a145164a88d22b7e74374f31baabe296ec5455ddf1aa640a81b DIST OpenJDK8U-jdk_x64_alpine-linux_hotspot_8u362b09.tar.gz 100860535 BLAKE2B 114aa536752f6f85fa80d26fd24d9579595c2a71e4dd3f3d048e773edbe86c39ce318caec7d6f883afeb9151350ee7819d544b1e4afbe7efc5e62b6a10c42036 SHA512 a15646dd1fb469d74dcafab8df4794ae2a9b34a32e80d4c0723ce510b5579ba5942e1c093ce4ccc764fc19191137f1d1d9b63ac935c8f21288b6f30046822e89 +DIST OpenJDK8U-jdk_x64_alpine-linux_hotspot_8u372b07.tar.gz 100856539 BLAKE2B 30abba9c69e4f955bceecaee5e2762e97687e752564f68cc4f7ee13589e1b523b1b4bb090408d1db9ecbd7e9229eb3a48bcea814102184b5d0ec444bab99b46a SHA512 8e70a720322f46cb4f7032782b1e5d95670f6c66745c3cf8a0941c05cc2213e2713909cc878e8cd4a32f60ef1258c3fc56721b203d741142c698ba4085b4fcfb DIST OpenJDK8U-jdk_x64_linux_hotspot_8u362b09.tar.gz 102949829 BLAKE2B 039d35113c156e929ca9b49a2a63ab326b9ed036f4cfe4facfcb88d4cd2984005e81a20c842f2abbd5dce8f9da864908de5379e68b72ef1e0f6f5ccfc241db1b SHA512 20bb587023cd5a6148ad06337cd5fc182275c3ebcaac95f65937e66b2bc75879a225e2fd2ef945ea45ba7886c983df3d24c2f01a1c1f9fce38f265dabed47ee9 +DIST OpenJDK8U-jdk_x64_linux_hotspot_8u372b07.tar.gz 102951681 BLAKE2B 2ab59821e586ab28f6a7f7ea50f2d2b3a16f62dce7b9d42219bf4cc867655c2a6c396d45be2d345d9800eaa553e06efd8023eee185374738e993a83c2cc29c60 SHA512 6e2034dfec2042f181db2835410eb63849c5e255db5fdf10632c1366fb53d4ae4591f7d2a4cda31bfe8b8e7a4672c4384054cf2769562f107f88051df4483059 DIST OpenJDK8U-jdk_x64_mac_hotspot_8u362b09.tar.gz 107290360 BLAKE2B 03f4ef48266779a9117bc6164b50298a2f23dc66b1d90370da64cd6bff7670cae09340f08e3358d43a5c051bff831020b568994cf59b3ba5a1b6c7938f5db12c SHA512 9923fda6021d5bacd598b13460f4b0668d156e92d0b3972e3746b996e3ee6275269e2deab14f7fd9ce8183670648df936efa9133cbe9b908f67e38b7e907387d +DIST OpenJDK8U-jdk_x64_mac_hotspot_8u372b07.tar.gz 107968606 BLAKE2B 92bf05671e150e3f3f2b705ceedfe1acc15d518426aac9bb9a59e1a3e7066a29fdb087b7a232efb34d698f7226c5f8ea2d0b65ee677bd4b9d3826566220adfaa SHA512 69dc662e235a5b56256e10847791ebffc03b9ba0d32b4d4f9d751d93b1042bcf8babd292055b3d4c901af48702e047c164b52b354bd22f4d672a253b71b20af3 diff --git a/dev-java/openjdk-bin/openjdk-bin-8.372_p07.ebuild b/dev-java/openjdk-bin/openjdk-bin-8.372_p07.ebuild new file mode 100644 index 000000000000..4a8f45e0623b --- /dev/null +++ b/dev-java/openjdk-bin/openjdk-bin-8.372_p07.ebuild @@ -0,0 +1,131 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit java-vm-2 + +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=$(ver_rs 1 'u' 2 '-' ${PV//p/b}) +SLOT=$(ver_cut 1) + +DESCRIPTION="Prebuilt Java JDK binaries provided by Eclipse Temurin" +HOMEPAGE="https://adoptium.net" +SRC_URI=" + $(abi_uri aarch64 arm64) + $(abi_uri arm) + $(abi_uri ppc64le ppc64) + $(abi_uri x64 amd64) + $(abi_uri x64 amd64 musl) + $(abi_uri x64 x64-macos) +" + +LICENSE="GPL-2-with-classpath-exception" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x64-macos" + +IUSE="alsa cups examples headless-awt selinux source" + +RDEPEND=" + >=sys-apps/baselayout-java-0.1.0-r1 + kernel_linux? ( + media-libs/fontconfig:1.0 + media-libs/freetype:2 + elibc_glibc? ( >=sys-libs/glibc-2.2.5:* ) + elibc_musl? ( sys-libs/musl ) + sys-libs/zlib + alsa? ( media-libs/alsa-lib ) + arm? ( dev-libs/libffi-compat:6 ) + 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 strip" +QA_PREBUILT="*" + +S="${WORKDIR}/jdk${MY_PV}" + +src_unpack() { + default + # 753575 + if use arm; then + mv -v "${S}"* "${S}" || die + elif [[ ${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#/}" + + rm ASSEMBLY_EXCEPTION LICENSE THIRD_PARTY_README || die + + # 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 + # this does not exist on arm64 hence -f + rm -fv jre/lib/*/libfreetype.so* || die + + if ! use alsa ; then + rm -v jre/lib/*/libjsoundalsa.so* || die + fi + + if ! use examples ; then + rm -vr sample || die + fi + + if use headless-awt ; then + rm -fvr {,jre/}lib/*/lib*{[jx]awt,splashscreen}* \ + {,jre/}bin/policytool bin/appletviewer || die + fi + fi + + if ! use source ; then + rm -v src.zip || die + fi + + rm -v jre/lib/security/cacerts || die + dosym ../../../../../etc/ssl/certs/java/cacerts \ + "${dest}"/jre/lib/security/cacerts + + dodir "${dest}" + cp -pPR * "${ddest}" || die + + # provide stable symlink + dosym "${P}" "/opt/${PN}-${SLOT}" + + java-vm_install-env "${FILESDIR}"/${PN}-${SLOT}.env.sh + java-vm_set-pax-markings "${ddest}" + java-vm_revdep-mask + java-vm_sandbox-predict /dev/random /proc/self/coredump_filter +} |