1 |
commit: 9b830484663e5244e37f7fc4df59b9bb47d89df9 |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 11 19:58:55 2022 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 11 20:14:17 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b830484 |
7 |
|
8 |
dev-java/openjdk-jre-bin: add 11.0.15_p10 |
9 |
|
10 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
11 |
|
12 |
dev-java/openjdk-jre-bin/Manifest | 1 + |
13 |
.../openjdk-jre-bin-11.0.15_p10.ebuild | 83 ++++++++++++++++++++++ |
14 |
2 files changed, 84 insertions(+) |
15 |
|
16 |
diff --git a/dev-java/openjdk-jre-bin/Manifest b/dev-java/openjdk-jre-bin/Manifest |
17 |
index 8da27b2f2d9d..37434dfb74dc 100644 |
18 |
--- a/dev-java/openjdk-jre-bin/Manifest |
19 |
+++ b/dev-java/openjdk-jre-bin/Manifest |
20 |
@@ -1,4 +1,5 @@ |
21 |
DIST OpenJDK11U-jre_x64_linux_hotspot_11.0.14_9.tar.gz 42435138 BLAKE2B 0f972a78221b74be4b8c87845f52d331eb6caf84eef06d291d0cd25ce4357b7072f938fd0390a9c54647d4ddcfe4c0184ddf84583e017e1bf78338b7939437bc SHA512 9ee64498d83d16cefc5a155393d9477bb78338d43a3b4b1699f4358644415a6be5601f7b2a87a82f2a95cafd6485b6db7b30bd0d21096110211b942e95deed64 |
22 |
+DIST OpenJDK11U-jre_x64_linux_hotspot_11.0.15_10.tar.gz 42471028 BLAKE2B a88fa041ffdcedabbcdadbb1eb4a0052456666ba779eb0f82bc27ea7f2923a1b2e538d14d5f615869e456b1bce48859211134c6bd9d31c2c082068686b68fd59 SHA512 a8a8a9c9f243aaf9b051bd0c35009ec96a28dcf47b53139dd59891a5ff2ced590e56961edb093cf67b8239d92a4b407f631b389fdff986fdb746316f420abf34 |
23 |
DIST OpenJDK17U-jre_x64_linux_hotspot_17.0.3_7.tar.gz 45971131 BLAKE2B dc8a358b10b0d3a6fac60f340ee5224c348aa4b2683e5f7b3396eaca180a12212260d45b8347b472f80671ef86a91f764727897146e4d36bc08b24c7920635fa SHA512 27da884a807c980386b7295f7ea5e253c03b497eff6e21e0cb35ea050552eaf9a3f71060cbd1a2f0cd6069a55ae00b43e46edcf09ab36c142587ea2ab781ad14 |
24 |
DIST OpenJDK8U-jre_x64_linux_hotspot_8u322b06.tar.gz 41317897 BLAKE2B b96b39d4b3f7fe54f9b04698d4f24879ce617e61ade298b7de1472cb85fbf7d5f297f009c0e881a17bcdaf9baaf3187acef531b0ace97a1f2ab099811995c815 SHA512 4a3acc1330056011f0097aaca77858779e2c89d214598ef66736956984204b8de804549e42c51f8392806753f3d534d34ad93ef6df9f2f45a369e04f6a0694ac |
25 |
DIST OpenJDK8U-jre_x64_linux_hotspot_8u332b09.tar.gz 41336220 BLAKE2B 52eb9aa2623335bca7be71d1aca6b4292a029554ef9f9e0e1209a7fa0892931c37b670f9f90586d4ff3cd35540a3a7cb230f20789481836d20f04d4cfcc56596 SHA512 c62002aa1a28547b0b0cefea3f83af2cf6507002bf296b1b83bd04406f4c362f4c74940209ebbd3803513395bec7503882aac7f8d35dcbf6a6e02e9155a53cdd |
26 |
|
27 |
diff --git a/dev-java/openjdk-jre-bin/openjdk-jre-bin-11.0.15_p10.ebuild b/dev-java/openjdk-jre-bin/openjdk-jre-bin-11.0.15_p10.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..a6f7f3ee248b |
30 |
--- /dev/null |
31 |
+++ b/dev-java/openjdk-jre-bin/openjdk-jre-bin-11.0.15_p10.ebuild |
32 |
@@ -0,0 +1,83 @@ |
33 |
+# Copyright 1999-2022 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=8 |
37 |
+ |
38 |
+inherit java-vm-2 |
39 |
+ |
40 |
+abi_uri() { |
41 |
+ echo "${2-$1}? ( |
42 |
+ https://github.com/adoptium/temurin${SLOT}-binaries/releases/download/jdk-${MY_PV}/OpenJDK${SLOT}U-jre_${1}_linux_hotspot_${MY_PV//+/_}.tar.gz |
43 |
+ )" |
44 |
+} |
45 |
+ |
46 |
+MY_PV=${PV/_p/+} |
47 |
+SLOT=${MY_PV%%[.+]*} |
48 |
+ |
49 |
+SRC_URI=" |
50 |
+ $(abi_uri x64 amd64) |
51 |
+" |
52 |
+ |
53 |
+DESCRIPTION="Prebuilt Java JRE binaries provided by Eclipse Temurin" |
54 |
+HOMEPAGE="https://adoptopenjdk.net" |
55 |
+LICENSE="GPL-2-with-classpath-exception" |
56 |
+KEYWORDS="~amd64" |
57 |
+IUSE="alsa cups +gentoo-vm headless-awt selinux" |
58 |
+ |
59 |
+RDEPEND=" |
60 |
+ media-libs/fontconfig:1.0 |
61 |
+ media-libs/freetype:2 |
62 |
+ >net-libs/libnet-1.1 |
63 |
+ >=sys-apps/baselayout-java-0.1.0-r1 |
64 |
+ >=sys-libs/glibc-2.2.5:* |
65 |
+ sys-libs/zlib |
66 |
+ alsa? ( media-libs/alsa-lib ) |
67 |
+ cups? ( net-print/cups ) |
68 |
+ selinux? ( sec-policy/selinux-java ) |
69 |
+ !headless-awt? ( |
70 |
+ x11-libs/libX11 |
71 |
+ x11-libs/libXext |
72 |
+ x11-libs/libXi |
73 |
+ x11-libs/libXrender |
74 |
+ x11-libs/libXtst |
75 |
+ )" |
76 |
+ |
77 |
+RESTRICT="preserve-libs splitdebug" |
78 |
+QA_PREBUILT="*" |
79 |
+ |
80 |
+S="${WORKDIR}/jdk-${MY_PV}-jre" |
81 |
+ |
82 |
+src_install() { |
83 |
+ local dest="/opt/${PN}-${SLOT}" |
84 |
+ local ddest="${ED}/${dest#/}" |
85 |
+ |
86 |
+ # Not sure why they bundle this as it's commonly available and they |
87 |
+ # only do so on x86_64. It's needed by libfontmanager.so. IcedTea |
88 |
+ # also has an explicit dependency while Oracle seemingly dlopens it. |
89 |
+ rm -vf lib/libfreetype.so || die |
90 |
+ |
91 |
+ # Oracle and IcedTea have libjsoundalsa.so depending on |
92 |
+ # libasound.so.2 but AdoptOpenJDK only has libjsound.so. Weird. |
93 |
+ if ! use alsa ; then |
94 |
+ rm -v lib/libjsound.* || die |
95 |
+ fi |
96 |
+ |
97 |
+ if use headless-awt ; then |
98 |
+ rm -v lib/lib*{[jx]awt,splashscreen}* || die |
99 |
+ fi |
100 |
+ |
101 |
+ rm -v lib/security/cacerts || die |
102 |
+ dosym -r /etc/ssl/certs/java/cacerts "${dest}"/lib/security/cacerts |
103 |
+ |
104 |
+ dodir "${dest}" |
105 |
+ cp -pPR * "${ddest}" || die |
106 |
+ |
107 |
+ java-vm_install-env "${FILESDIR}"/${PN}-${SLOT}.env.sh |
108 |
+ java-vm_set-pax-markings "${ddest}" |
109 |
+ java-vm_revdep-mask |
110 |
+ java-vm_sandbox-predict /dev/random /proc/self/coredump_filter |
111 |
+} |
112 |
+ |
113 |
+pkg_postinst() { |
114 |
+ java-vm-2_pkg_postinst |
115 |
+} |