1 |
commit: d2e2b039ecb0a8c7fdbea133df33be797ceb611c |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 22 01:12:28 2022 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 22 01:12:28 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2e2b039 |
7 |
|
8 |
dev-java/openjdk-bin: drop 17.0.1_p12 |
9 |
|
10 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
11 |
|
12 |
dev-java/openjdk-bin/openjdk-bin-17.0.1_p12.ebuild | 147 --------------------- |
13 |
1 file changed, 147 deletions(-) |
14 |
|
15 |
diff --git a/dev-java/openjdk-bin/openjdk-bin-17.0.1_p12.ebuild b/dev-java/openjdk-bin/openjdk-bin-17.0.1_p12.ebuild |
16 |
deleted file mode 100644 |
17 |
index e90e1c5b5be2..000000000000 |
18 |
--- a/dev-java/openjdk-bin/openjdk-bin-17.0.1_p12.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,147 +0,0 @@ |
21 |
-# Copyright 1999-2021 Gentoo Authors |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=6 |
25 |
- |
26 |
-inherit java-vm-2 toolchain-funcs |
27 |
- |
28 |
-abi_uri() { |
29 |
- local baseuri="https://github.com/adoptium/temurin${SLOT}-binaries/releases/download/jdk-${MY_PV}/" |
30 |
- local musl= |
31 |
- local os=linux |
32 |
- |
33 |
- case ${2} in |
34 |
- *-macos) os=mac ;; |
35 |
- *-solaris) os=solaris ;; |
36 |
- esac |
37 |
- |
38 |
- if [[ ${3} == musl ]]; then |
39 |
- os=alpine-linux |
40 |
- musl=true |
41 |
- fi |
42 |
- |
43 |
- echo "${2-$1}? ( |
44 |
- ${musl:+ elibc_musl? ( } |
45 |
- ${baseuri}/OpenJDK${SLOT}U-jdk_${1}_${os}_hotspot_${MY_PV//+/_}.tar.gz |
46 |
- ${musl:+ ) } )" |
47 |
-} |
48 |
- |
49 |
-MY_PV=${PV/_p/+} |
50 |
-SLOT=${MY_PV%%[.+]*} |
51 |
- |
52 |
-SRC_URI=" |
53 |
- $(abi_uri arm) |
54 |
- $(abi_uri aarch64 arm64) |
55 |
- $(abi_uri ppc64le ppc64) |
56 |
- $(abi_uri x64 amd64) |
57 |
- $(abi_uri x64 amd64 musl) |
58 |
- $(abi_uri x64 x64-macos) |
59 |
-" |
60 |
- |
61 |
-DESCRIPTION="Prebuilt Java JDK binaries provided by Eclipse Temurin" |
62 |
-HOMEPAGE="https://adoptium.net" |
63 |
-LICENSE="GPL-2-with-classpath-exception" |
64 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x64-macos" |
65 |
-IUSE="alsa cups +gentoo-vm headless-awt selinux source" |
66 |
- |
67 |
-RDEPEND=" |
68 |
- >=sys-apps/baselayout-java-0.1.0-r1 |
69 |
- kernel_linux? ( |
70 |
- media-libs/fontconfig:1.0 |
71 |
- media-libs/freetype:2 |
72 |
- media-libs/harfbuzz |
73 |
- elibc_glibc? ( >=sys-libs/glibc-2.2.5:* ) |
74 |
- sys-libs/zlib |
75 |
- alsa? ( media-libs/alsa-lib ) |
76 |
- cups? ( net-print/cups ) |
77 |
- selinux? ( sec-policy/selinux-java ) |
78 |
- !headless-awt? ( |
79 |
- x11-libs/libX11 |
80 |
- x11-libs/libXext |
81 |
- x11-libs/libXi |
82 |
- x11-libs/libXrender |
83 |
- x11-libs/libXtst |
84 |
- ) |
85 |
- )" |
86 |
- |
87 |
-RESTRICT="preserve-libs splitdebug" |
88 |
-QA_PREBUILT="*" |
89 |
- |
90 |
-S="${WORKDIR}/jdk-${MY_PV}" |
91 |
- |
92 |
-pkg_pretend() { |
93 |
- if [[ "$(tc-is-softfloat)" != "no" ]]; then |
94 |
- die "These binaries require a hardfloat system." |
95 |
- fi |
96 |
-} |
97 |
- |
98 |
-src_unpack() { |
99 |
- default |
100 |
- if [[ ${A} == *_mac_* ]] ; then |
101 |
- mv -v "${S}/Contents/Home/"* "${S}" || die |
102 |
- rm -Rf "${S}/Contents" # drop macOS executable |
103 |
- fi |
104 |
-} |
105 |
- |
106 |
-src_install() { |
107 |
- local dest="/opt/${P}" |
108 |
- local ddest="${ED%/}/${dest#/}" |
109 |
- |
110 |
- # on macOS if they would exist they would be called .dylib, but most |
111 |
- # importantly, there are no different providers, so everything |
112 |
- # that's shipped works. |
113 |
- if [[ ${A} != *_mac_* ]] ; then |
114 |
- # Not sure why they bundle this as it's commonly available and they |
115 |
- # only do so on x86_64. It's needed by libfontmanager.so. IcedTea |
116 |
- # also has an explicit dependency while Oracle seemingly dlopens it. |
117 |
- rm -vf lib/libfreetype.so || die |
118 |
- |
119 |
- # prefer system copy # https://bugs.gentoo.org/776676 |
120 |
- rm -vf lib/libharfbuzz.so || die |
121 |
- |
122 |
- # Oracle and IcedTea have libjsoundalsa.so depending on |
123 |
- # libasound.so.2 but AdoptOpenJDK only has libjsound.so. Weird. |
124 |
- if ! use alsa ; then |
125 |
- rm -v lib/libjsound.* || die |
126 |
- fi |
127 |
- |
128 |
- if use headless-awt ; then |
129 |
- rm -v lib/lib*{[jx]awt,splashscreen}* || die |
130 |
- fi |
131 |
- fi |
132 |
- |
133 |
- if ! use source ; then |
134 |
- rm -v lib/src.zip || die |
135 |
- fi |
136 |
- |
137 |
- rm -v lib/security/cacerts || die |
138 |
- dosym ../../../../etc/ssl/certs/java/cacerts \ |
139 |
- "${dest}"/lib/security/cacerts |
140 |
- |
141 |
- dodir "${dest}" |
142 |
- cp -pPR * "${ddest}" || die |
143 |
- |
144 |
- # provide stable symlink |
145 |
- dosym "${P}" "/opt/${PN}-${SLOT}" |
146 |
- |
147 |
- use gentoo-vm && java-vm_install-env "${FILESDIR}"/${PN}-${SLOT}.env.sh |
148 |
- java-vm_set-pax-markings "${ddest}" |
149 |
- java-vm_revdep-mask |
150 |
- java-vm_sandbox-predict /dev/random /proc/self/coredump_filter |
151 |
-} |
152 |
- |
153 |
-pkg_postinst() { |
154 |
- java-vm-2_pkg_postinst |
155 |
- |
156 |
- if use gentoo-vm ; then |
157 |
- ewarn "WARNING! You have enabled the gentoo-vm USE flag, making this JDK" |
158 |
- ewarn "recognised by the system. This will almost certainly break" |
159 |
- ewarn "many java ebuilds as they are not ready for openjdk-${SLOT}" |
160 |
- else |
161 |
- ewarn "The experimental gentoo-vm USE flag has not been enabled so this JDK" |
162 |
- ewarn "will not be recognised by the system. For example, simply calling" |
163 |
- ewarn "\"java\" will launch a different JVM. This is necessary until Gentoo" |
164 |
- ewarn "fully supports Java ${SLOT}. This JDK must therefore be invoked using its" |
165 |
- ewarn "absolute location under ${EPREFIX}/opt/${P}." |
166 |
- fi |
167 |
-} |