Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/openjdk-bin/
Date: Fri, 01 Feb 2019 09:09:58
Message-Id: 1549011770.ec77d7ae906dd1a80a24790723d4ec735a5f8541.gyakovlev@gentoo
1 commit: ec77d7ae906dd1a80a24790723d4ec735a5f8541
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 1 08:20:00 2019 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 1 09:02:50 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec77d7ae
7
8 dev-java/openjdk-bin: add ~amd64 and ~ppc64le openjdk-bin:8
9
10 Bug: https://bugs.gentoo.org/672058
11 Package-Manager: Portage-2.3.59, Repoman-2.3.12
12 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
13
14 dev-java/openjdk-bin/Manifest | 2 +
15 dev-java/openjdk-bin/openjdk-bin-8.202_p08.ebuild | 102 ++++++++++++++++++++++
16 2 files changed, 104 insertions(+)
17
18 diff --git a/dev-java/openjdk-bin/Manifest b/dev-java/openjdk-bin/Manifest
19 index 8214785139f..ed0984c8c10 100644
20 --- a/dev-java/openjdk-bin/Manifest
21 +++ b/dev-java/openjdk-bin/Manifest
22 @@ -5,3 +5,5 @@ DIST OpenJDK11U-jdk_ppc64le_linux_hotspot_11.0.2_7.tar.gz 180394013 BLAKE2B b5b8
23 DIST OpenJDK11U-jdk_x64_linux_hotspot_11.0.1_13.tar.gz 195710782 BLAKE2B a374afea8de4333488294dcb200e235f7cc42309a56e693a9b5434dc74d0189b57c26adc93ef22454a4ed05f44b90afa8fdfc016feb022c1eaeb706044581f24 SHA512 b5e55cd32daa3b30fb84b8f4fed0ef70e4f8e3e153974c0c9fa0fcdf22cade99613da93f2289798b625adde24d9a1c4c4808a139e9f2feb2543b05f273f3bdd8
24 DIST OpenJDK11U-jdk_x64_linux_hotspot_11.0.2_7.tar.gz 195593592 BLAKE2B 038c88dd4475842ffd27afc9249925baea0230cd993a963e13c2e090a0f6332fbeaebefae5b5e98026a12a7d94696633507a9d08af469b0227372088b5cd4869 SHA512 f9f4d168105e499b0da4923c6fe18c31ea6f6a24a48fc9d47b643460316d75de273f8f6dcbd43c9df6efcfb77127182dab8125c55f63200c5ff53cc9eb0ddcdc
25 DIST OpenJDK8U-jdk_aarch64_linux_hotspot_8u191b12.tar.gz 75382012 BLAKE2B 9521bb3d0dc08d5069108bb56594d401cbadf7a290652a39c7379e6ded530044e85f1ffae1cd3eb7e881d7c283c06463e6f8b76602d03a7bf5b188b1004f5daf SHA512 156f7a57f095095b72edb4bfc766d575795e496b006fb994566b0207d346e89863cf377ce97290bf1b47923c5d6aee5558eaa7a54f394f95a270b1cfec4308e2
26 +DIST OpenJDK8U-jdk_ppc64le_linux_hotspot_8u202b08.tar.gz 101497437 BLAKE2B 4fdc659f9cc50fd968cd339cf24780cd0097286fe3004669972b925fa5c8bbd0e6024587f761ef05ec170c4caa6a915f9f748badd021fae6eb669aa613e1c90d SHA512 42991d2203d51492090e92ee4c7600e7b0ab613550d925f52dd7c7c3b796f9bd36e7284d55540b661a5175064d714267cddd786d81aeda358feda3927e3676e3
27 +DIST OpenJDK8U-jdk_x64_linux_hotspot_8u202b08.tar.gz 104336613 BLAKE2B 3bf42af57707a057077969487f66c32289d0dc96639aee553b18812262d517b07a8e80e3351a4b22731569c7d7c1443d8018d05a41a26abf844a1a2950e7c368 SHA512 8e04d22fe03d2ab92e48fbbfe7d6015d9062d8e767d55ca9235e02b39841236d47b8977ae0252d5f4351a4c5fe082d377e2f8978156cf73c0208028a422e5e4c
28
29 diff --git a/dev-java/openjdk-bin/openjdk-bin-8.202_p08.ebuild b/dev-java/openjdk-bin/openjdk-bin-8.202_p08.ebuild
30 new file mode 100644
31 index 00000000000..d214f0e0b45
32 --- /dev/null
33 +++ b/dev-java/openjdk-bin/openjdk-bin-8.202_p08.ebuild
34 @@ -0,0 +1,102 @@
35 +# Copyright 1999-2019 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=6
39 +
40 +inherit eapi7-ver java-vm-2
41 +
42 +abi_uri() {
43 + echo "${2-$1}? (
44 + https://github.com/AdoptOpenJDK/openjdk${SLOT}-binaries/releases/download/jdk${MY_PV}/OpenJDK8U-jdk_${1}_linux_hotspot_${MY_PV/-/}.tar.gz
45 + )"
46 +}
47 +
48 +MY_PV=$(ver_rs 1 'u' 2 '-' ${PV//p/b})
49 +SLOT="$(ver_cut 1)"
50 +
51 +DESCRIPTION="Prebuilt Java JDK binaries provided by AdoptOpenJDK"
52 +HOMEPAGE="https://adoptopenjdk.net"
53 +SRC_URI="
54 + $(abi_uri x64 amd64)
55 + $(abi_uri ppc64le ppc64)
56 +"
57 +
58 +LICENSE="GPL-2-with-classpath-exception"
59 +KEYWORDS="~amd64 ~ppc64"
60 +
61 +IUSE="alsa cups doc examples +gentoo-vm headless-awt nsplugin selinux source +webstart"
62 +
63 +RDEPEND="
64 + media-libs/fontconfig:1.0
65 + media-libs/freetype:2
66 + >=sys-libs/glibc-2.2.5:*
67 + sys-libs/zlib
68 + alsa? ( media-libs/alsa-lib )
69 + cups? ( net-print/cups )
70 + doc? ( dev-java/java-sdk-docs:1.${SLOT} )
71 + selinux? ( sec-policy/selinux-java )
72 + !headless-awt? (
73 + x11-libs/libX11
74 + x11-libs/libXext
75 + x11-libs/libXi
76 + x11-libs/libXrender
77 + x11-libs/libXtst
78 + )"
79 +
80 +PDEPEND="webstart? ( >=dev-java/icedtea-web-1.6.1:0 )
81 + nsplugin? ( >=dev-java/icedtea-web-1.6.1:0[nsplugin] )"
82 +
83 +RESTRICT="preserve-libs splitdebug"
84 +QA_PREBUILT="*"
85 +
86 +S="${WORKDIR}/jdk${MY_PV}"
87 +
88 +src_install() {
89 + local dest="/opt/${P}"
90 + local ddest="${ED}${dest#/}"
91 +
92 + rm ASSEMBLY_EXCEPTION LICENSE THIRD_PARTY_README || die
93 +
94 + # this does not exist on arm64 hence -f
95 + rm -fv jre/lib/*/libfreetype.so* || die
96 +
97 + if ! use alsa ; then
98 + rm -v jre/lib/*/libjsoundalsa.so* || die
99 + fi
100 +
101 + if ! use examples ; then
102 + rm -vr sample || die
103 + fi
104 +
105 + if use headless-awt ; then
106 + rm -fvr */jre/lib/*/lib*{[jx]awt,splashscreen}* \
107 + {,jre/}bin/policytool bin/appletviewer || die
108 + fi
109 +
110 + if ! use source ; then
111 + rm -v src.zip || die
112 + fi
113 +
114 + dodir "${dest}"
115 + cp -pPR * "${ddest}" || die
116 +
117 + use gentoo-vm && java-vm_install-env "${FILESDIR}"/${PN}-${SLOT}.env.sh
118 + java-vm_set-pax-markings "${ddest}"
119 + java-vm_revdep-mask
120 + java-vm_sandbox-predict /dev/random /proc/self/coredump_filter
121 +}
122 +
123 +pkg_postinst() {
124 + java-vm-2_pkg_postinst
125 +
126 + if use gentoo-vm ; then
127 + ewarn "WARNING! You have enabled the gentoo-vm USE flag, making this JDK"
128 + ewarn "recognised by the system. This will almost certainly break things."
129 + else
130 + ewarn "The experimental gentoo-vm USE flag has not been enabled so this JDK"
131 + ewarn "will not be recognised by the system. For example, simply calling"
132 + ewarn "\"java\" will launch a different JVM. This is necessary until Gentoo"
133 + ewarn "fully supports OpenJDK 8. This JDK must therefore be invoked using its"
134 + ewarn "absolute location under ${EPREFIX}/opt/${P}."
135 + fi
136 +}