1 |
commit: f198b7be88bf4d78edf184b6fd001c44cdbd4066 |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 18 18:18:42 2019 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 18 18:54:34 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f198b7be |
7 |
|
8 |
dev-java/openjdk-jre-bin: bump to 8.212_p03 |
9 |
|
10 |
Package-Manager: Portage-2.3.63, Repoman-2.3.12 |
11 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
12 |
|
13 |
dev-java/openjdk-jre-bin/Manifest | 1 + |
14 |
.../openjdk-jre-bin-8.212_p03.ebuild | 94 ++++++++++++++++++++++ |
15 |
2 files changed, 95 insertions(+) |
16 |
|
17 |
diff --git a/dev-java/openjdk-jre-bin/Manifest b/dev-java/openjdk-jre-bin/Manifest |
18 |
index d9d0ed15a23..ac49662b2aa 100644 |
19 |
--- a/dev-java/openjdk-jre-bin/Manifest |
20 |
+++ b/dev-java/openjdk-jre-bin/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST OpenJDK11U-jre_x64_linux_hotspot_11.0.2_9.tar.gz 41525058 BLAKE2B da456e8415ef45d07968c12082f2351910284b47bac92a952d4962fbc4c63cb2fa006696b6b175e0d1073b1fca76cca61460465d0959afe80d2f5ce9006d9350 SHA512 96b527be34c49e6351bed0d000153c1bc9491cf89f8a7f90190feccd2984cce1e3d18747e108d476c4417f15947d436f20cd34fe88f8126edecf4a789d725b0a |
23 |
DIST OpenJDK8U-jre_x64_linux_hotspot_8u202b08.tar.gz 40856726 BLAKE2B d9d4599989a0232bcc145aaf58b20dbfcedbe33adb2b3ee65b7e726dea350210f66eb81b321268a29d3234244c517642cfe908531242afb220509666e02c0617 SHA512 f9bb03cd0876f6b3b36d8ba821a14648b5ac2ec6dc6eefb95dc333aae77b55c940153cdd1715b21feaf7d7f2148bf8c272777c8afab911965e514f9792287962 |
24 |
+DIST OpenJDK8U-jre_x64_linux_hotspot_8u212b03.tar.gz 40871242 BLAKE2B 8a6eee7f7465cbccc575e44ab08d6a3d2cedc32954475ea71064a4b6d4379927a795225fed7394922bdaa2a425efb6966d6a0126a55a0fa0e68dc0eeb7a6e935 SHA512 3b0c560cce673fa0e9506c18c4a25b56e26c8ccd7874098f55c37f1a556387b4c2d3ba81ef0368cc666178028eef0fd7beac6307588628c8c8c051381a21366f |
25 |
|
26 |
diff --git a/dev-java/openjdk-jre-bin/openjdk-jre-bin-8.212_p03.ebuild b/dev-java/openjdk-jre-bin/openjdk-jre-bin-8.212_p03.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..2af8e9e8e29 |
29 |
--- /dev/null |
30 |
+++ b/dev-java/openjdk-jre-bin/openjdk-jre-bin-8.212_p03.ebuild |
31 |
@@ -0,0 +1,94 @@ |
32 |
+# Copyright 1999-2019 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+ |
37 |
+inherit eapi7-ver java-vm-2 |
38 |
+ |
39 |
+abi_uri() { |
40 |
+ echo "${2-$1}? ( |
41 |
+ https://github.com/AdoptOpenJDK/openjdk${SLOT}-binaries/releases/download/jdk${MY_PV}/OpenJDK8U-jre_${1}_linux_hotspot_${MY_PV/-/}.tar.gz |
42 |
+ )" |
43 |
+} |
44 |
+ |
45 |
+MY_PV=$(ver_rs 1 'u' 2 '-' ${PV//p/b}) |
46 |
+SLOT="$(ver_cut 1)" |
47 |
+ |
48 |
+DESCRIPTION="Prebuilt Java JRE binaries provided by AdoptOpenJDK" |
49 |
+HOMEPAGE="https://adoptopenjdk.net" |
50 |
+SRC_URI=" |
51 |
+ $(abi_uri x64 amd64) |
52 |
+" |
53 |
+ |
54 |
+LICENSE="GPL-2-with-classpath-exception" |
55 |
+KEYWORDS="~amd64" |
56 |
+ |
57 |
+IUSE="alsa cups +gentoo-vm headless-awt nsplugin selinux +webstart" |
58 |
+ |
59 |
+RDEPEND=" |
60 |
+ media-libs/fontconfig:1.0 |
61 |
+ media-libs/freetype:2 |
62 |
+ >net-libs/libnet-1.1 |
63 |
+ >=sys-libs/glibc-2.2.5:* |
64 |
+ sys-libs/zlib |
65 |
+ alsa? ( media-libs/alsa-lib ) |
66 |
+ cups? ( net-print/cups ) |
67 |
+ selinux? ( sec-policy/selinux-java ) |
68 |
+ !headless-awt? ( |
69 |
+ x11-libs/libX11 |
70 |
+ x11-libs/libXext |
71 |
+ x11-libs/libXi |
72 |
+ x11-libs/libXrender |
73 |
+ x11-libs/libXtst |
74 |
+ )" |
75 |
+ |
76 |
+PDEPEND=" |
77 |
+ webstart? ( >=dev-java/icedtea-web-1.6.1:0 ) |
78 |
+ nsplugin? ( >=dev-java/icedtea-web-1.6.1:0[nsplugin] )" |
79 |
+ |
80 |
+RESTRICT="preserve-libs splitdebug" |
81 |
+QA_PREBUILT="*" |
82 |
+ |
83 |
+S="${WORKDIR}/jdk${MY_PV}-jre" |
84 |
+ |
85 |
+src_install() { |
86 |
+ local dest="/opt/${P}" |
87 |
+ local ddest="${ED}${dest#/}" |
88 |
+ |
89 |
+ rm ASSEMBLY_EXCEPTION LICENSE THIRD_PARTY_README || die |
90 |
+ |
91 |
+ # this does not exist on arm64 hence -f |
92 |
+ rm -fv lib/*/libfreetype.so* || die |
93 |
+ |
94 |
+ if ! use alsa ; then |
95 |
+ rm -v lib/*/libjsoundalsa.so* || die |
96 |
+ fi |
97 |
+ |
98 |
+ if use headless-awt ; then |
99 |
+ rm -fvr lib/*/lib*{[jx]awt,splashscreen}* \ |
100 |
+ bin/policytool || die |
101 |
+ fi |
102 |
+ |
103 |
+ dodir "${dest}" |
104 |
+ cp -pPR * "${ddest}" || die |
105 |
+ |
106 |
+ use gentoo-vm && java-vm_install-env "${FILESDIR}"/${PN}-${SLOT}.env.sh |
107 |
+ java-vm_set-pax-markings "${ddest}" |
108 |
+ java-vm_revdep-mask |
109 |
+ java-vm_sandbox-predict /dev/random /proc/self/coredump_filter |
110 |
+} |
111 |
+ |
112 |
+pkg_postinst() { |
113 |
+ java-vm-2_pkg_postinst |
114 |
+ |
115 |
+ if use gentoo-vm ; then |
116 |
+ ewarn "WARNING! You have enabled the gentoo-vm USE flag, making this JRE" |
117 |
+ ewarn "recognised by the system. This will almost certainly break things." |
118 |
+ else |
119 |
+ ewarn "The experimental gentoo-vm USE flag has not been enabled so this JRE" |
120 |
+ ewarn "will not be recognised by the system. For example, simply calling" |
121 |
+ ewarn "\"java\" will launch a different JVM. This is necessary until Gentoo" |
122 |
+ ewarn "fully supports OpenJDK 8. This JRE must therefore be invoked using its" |
123 |
+ ewarn "absolute location under ${EPREFIX}/opt/${P}." |
124 |
+ fi |
125 |
+} |