1 |
commit: 17e174a3a230c285fb5360ce1102c38f91bb8dec |
2 |
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 17 09:47:41 2019 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 17 09:50:36 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17e174a3 |
7 |
|
8 |
dev-java/oracle-jre-bin-1.8.0.202: bump |
9 |
|
10 |
Package-Manager: Portage-2.3.56, Repoman-2.3.12 |
11 |
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> |
12 |
|
13 |
dev-java/oracle-jre-bin/Manifest | 2 + |
14 |
.../oracle-jre-bin/oracle-jre-bin-1.8.0.202.ebuild | 220 +++++++++++++++++++++ |
15 |
2 files changed, 222 insertions(+) |
16 |
|
17 |
diff --git a/dev-java/oracle-jre-bin/Manifest b/dev-java/oracle-jre-bin/Manifest |
18 |
index 5a30b69fc32..403b9df901f 100644 |
19 |
--- a/dev-java/oracle-jre-bin/Manifest |
20 |
+++ b/dev-java/oracle-jre-bin/Manifest |
21 |
@@ -1,2 +1,4 @@ |
22 |
DIST jre-8u192-linux-i586.tar.gz 87804679 BLAKE2B bb1dea51f0d45dcd3aabc82668790ee274c83f2e3c596d836d7b57c971ff6535881849cce5757132fed1b537a4a9677fbbb0b8b003d423d26ee72cb71047428f SHA512 5c749f358aa5b55513765eeb52dd2e0d3cb2b3223cc93739aa36445af8c6a3171a01cab673e106312e816c0a3b584a8a1be4aed1e2662e86b6d318d86a135485 |
23 |
DIST jre-8u192-linux-x64.tar.gz 84597342 BLAKE2B 655db641df8349109e2944838f16f37ea208772580f0753e664a0642649745c123b2a781497ca3b9028f55c0bd2816cb5746d7d1d04cc83bb536ca0b467a4fc0 SHA512 d786f9e032bc286f3d4f361c382b6606c7462240b191d04606ca5ed9e59e3d7703cbaf1d57693c6763d00374c76c99cdb2f58c0bc372ef5c14c6304d556b4c8a |
24 |
+DIST jre-8u202-linux-i586.tar.gz 90106000 BLAKE2B e756771caf8567c58870a267aafc9d48e98f06da1373a33bfdf40cc564c8df1645df38ad2f6951bc34d703bb0f4646b52ebf008dfc470231b4e93078c7730862 SHA512 573e32dc715d280084e71999e71a2875a488cbbba2b42c5107c55669c8842dd4ca6c6f42034b5e0b705c22a7a1d9799b456211034a6f351bc9d8e8fd803e0ad3 |
25 |
+DIST jre-8u202-linux-x64.tar.gz 86883826 BLAKE2B 8e69f4e8d6ce7d556ce7c8f30f5c71a50997103f729935269581f0af054fd1dc769b7099ad3a35d4baf41c8a6bdd76b049ae4908714701b196c4ce57ff61b39b SHA512 2460cde88162b00f5ca5600084f5f6b8720b8158869f5f5832fe886a5a6e839eb48398e9e3df47c45be257d9f6915e682d294d560b09e097ff610f09a76b1760 |
26 |
|
27 |
diff --git a/dev-java/oracle-jre-bin/oracle-jre-bin-1.8.0.202.ebuild b/dev-java/oracle-jre-bin/oracle-jre-bin-1.8.0.202.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..0301c67934a |
30 |
--- /dev/null |
31 |
+++ b/dev-java/oracle-jre-bin/oracle-jre-bin-1.8.0.202.ebuild |
32 |
@@ -0,0 +1,220 @@ |
33 |
+# Copyright 1999-2019 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=6 |
37 |
+ |
38 |
+inherit desktop gnome2-utils java-vm-2 prefix versionator |
39 |
+ |
40 |
+KEYWORDS="-* ~amd64 ~x86" |
41 |
+ |
42 |
+if [[ "$(get_version_component_range 4)" == 0 ]] ; then |
43 |
+ S_PV="$(get_version_component_range 1-3)" |
44 |
+else |
45 |
+ MY_PV_EXT="u$(get_version_component_range 4)" |
46 |
+ S_PV="$(get_version_component_range 1-4)" |
47 |
+fi |
48 |
+ |
49 |
+MY_PV="$(get_version_component_range 2)${MY_PV_EXT}" |
50 |
+ |
51 |
+declare -A ARCH_FILES |
52 |
+ARCH_FILES[amd64]="jre-${MY_PV}-linux-x64.tar.gz" |
53 |
+ARCH_FILES[x86]="jre-${MY_PV}-linux-i586.tar.gz" |
54 |
+ |
55 |
+for keyword in ${KEYWORDS//-\*} ; do |
56 |
+ SRC_URI+=" ${keyword#\~}? ( ${ARCH_FILES[${keyword#\~}]} )" |
57 |
+done |
58 |
+ |
59 |
+DESCRIPTION="Oracle's Java SE Runtime Environment" |
60 |
+HOMEPAGE="http://www.oracle.com/technetwork/java/javase/" |
61 |
+LICENSE="Oracle-BCLA-JavaSE" |
62 |
+SLOT="1.8" |
63 |
+IUSE="alsa commercial cups +fontconfig headless-awt javafx jce nsplugin selinux" |
64 |
+RESTRICT="fetch preserve-libs strip" |
65 |
+QA_PREBUILT="*" |
66 |
+ |
67 |
+# NOTES: |
68 |
+# |
69 |
+# * cups is dlopened. |
70 |
+# |
71 |
+# * libpng is also dlopened but only by libsplashscreen, which isn't |
72 |
+# important, so we can exclude that. |
73 |
+# |
74 |
+# * We still need to work out the exact AWT and JavaFX dependencies |
75 |
+# under MacOS. It doesn't appear to use many, if any, of the |
76 |
+# dependencies below. |
77 |
+# |
78 |
+RDEPEND="!x64-macos? ( |
79 |
+ !headless-awt? ( |
80 |
+ x11-libs/libX11 |
81 |
+ x11-libs/libXext |
82 |
+ x11-libs/libXi |
83 |
+ x11-libs/libXrender |
84 |
+ x11-libs/libXtst |
85 |
+ ) |
86 |
+ javafx? ( |
87 |
+ dev-libs/glib:2 |
88 |
+ dev-libs/libxml2:2 |
89 |
+ dev-libs/libxslt |
90 |
+ media-libs/freetype:2 |
91 |
+ x11-libs/cairo |
92 |
+ x11-libs/gtk+:2 |
93 |
+ x11-libs/libX11 |
94 |
+ x11-libs/libXtst |
95 |
+ x11-libs/libXxf86vm |
96 |
+ x11-libs/pango |
97 |
+ virtual/opengl |
98 |
+ ) |
99 |
+ ) |
100 |
+ alsa? ( media-libs/alsa-lib ) |
101 |
+ cups? ( net-print/cups ) |
102 |
+ fontconfig? ( media-libs/fontconfig:1.0 ) |
103 |
+ !prefix? ( sys-libs/glibc:* ) |
104 |
+ selinux? ( sec-policy/selinux-java )" |
105 |
+ |
106 |
+DEPEND="app-arch/zip" |
107 |
+ |
108 |
+S="${WORKDIR}/jre$(replace_version_separator 3 _ ${S_PV})" |
109 |
+ |
110 |
+pkg_nofetch() { |
111 |
+ einfo "Please download ${ARCH_FILES[${ARCH}]} and move it to" |
112 |
+ einfo "your distfiles directory:" |
113 |
+ einfo |
114 |
+ einfo " http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html" |
115 |
+ einfo |
116 |
+ einfo "If the above mentioned URL does not point to the correct version anymore," |
117 |
+ einfo "please download the file from Oracle's Java download archive:" |
118 |
+ einfo |
119 |
+ einfo " http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html" |
120 |
+ einfo |
121 |
+} |
122 |
+ |
123 |
+src_prepare() { |
124 |
+ default |
125 |
+ |
126 |
+ # Remove the hook that calls Oracle's evil usage tracker. Not just |
127 |
+ # because it's evil but because it breaks the sandbox during builds |
128 |
+ # and we can't find any other feasible way to disable it or make it |
129 |
+ # write somewhere else. See bug #559936 for details. |
130 |
+ zip -d lib/rt.jar sun/misc/PostVMInitHook.class || die |
131 |
+} |
132 |
+ |
133 |
+src_install() { |
134 |
+ local dest="/opt/${P}" |
135 |
+ local ddest="${ED}${dest#/}" |
136 |
+ |
137 |
+ # Create files used as storage for system preferences. |
138 |
+ mkdir .systemPrefs || die |
139 |
+ touch .systemPrefs/.system.lock || die |
140 |
+ touch .systemPrefs/.systemRootModFile || die |
141 |
+ |
142 |
+ if ! use alsa ; then |
143 |
+ rm -vf lib/*/libjsoundalsa.* || die |
144 |
+ fi |
145 |
+ |
146 |
+ if ! use commercial ; then |
147 |
+ rm -vfr lib/jfr* || die |
148 |
+ fi |
149 |
+ |
150 |
+ if use headless-awt ; then |
151 |
+ rm -vf lib/*/lib*{[jx]awt,splashscreen}* \ |
152 |
+ bin/{javaws,policytool} || die |
153 |
+ fi |
154 |
+ |
155 |
+ if ! use javafx ; then |
156 |
+ rm -vf lib/*/lib*{decora,fx,glass,prism}* \ |
157 |
+ lib/*/libgstreamer-lite.* lib/{,ext/}*fx* || die |
158 |
+ fi |
159 |
+ |
160 |
+ if ! use nsplugin ; then |
161 |
+ rm -vf lib/*/libnpjp2.* || die |
162 |
+ else |
163 |
+ local nsplugin=$(echo lib/*/libnpjp2.*) |
164 |
+ local nsplugin_link=${nsplugin##*/} |
165 |
+ nsplugin_link=${nsplugin_link/./-${PN}-${SLOT}.} |
166 |
+ dosym "${dest}/${nsplugin}" "/usr/$(get_libdir)/nsbrowser/plugins/${nsplugin_link}" |
167 |
+ fi |
168 |
+ |
169 |
+ # Even though plugins linked against multiple ffmpeg versions are |
170 |
+ # provided, they generally lag behind what Gentoo has available. |
171 |
+ rm -vf lib/*/libavplugin* || die |
172 |
+ |
173 |
+ # Prune all fontconfig files so that libfontconfig will be used. |
174 |
+ rm -v lib/fontconfig.* || die |
175 |
+ |
176 |
+ # Install desktop file for the Java Control Panel. Using |
177 |
+ # ${PN}-${SLOT} to prevent file collision with JDK and other slots. |
178 |
+ if [[ -d lib/desktop/icons ]] ; then |
179 |
+ local icon |
180 |
+ pushd lib/desktop/icons >/dev/null || die |
181 |
+ for icon in */*/apps/sun-jcontrol.png ; do |
182 |
+ insinto /usr/share/icons/"${icon%/*}" |
183 |
+ newins "${icon}" sun-jcontrol-${PN}-${SLOT}.png |
184 |
+ done |
185 |
+ popd >/dev/null || die |
186 |
+ make_desktop_entry \ |
187 |
+ "${dest}"/bin/jcontrol \ |
188 |
+ "Java Control Panel for Oracle JRE ${SLOT}" \ |
189 |
+ sun-jcontrol-${PN}-${SLOT} \ |
190 |
+ "Settings;Java;" |
191 |
+ fi |
192 |
+ |
193 |
+ dodoc COPYRIGHT |
194 |
+ dodir "${dest}" |
195 |
+ cp -pPR bin lib man "${ddest}" || die |
196 |
+ |
197 |
+ ln -s policy/$(usex jce unlimited limited)/{US_export,local}_policy.jar \ |
198 |
+ "${ddest}"/lib/security/ || die |
199 |
+ |
200 |
+ # Only install Gentoo-specific fontconfig if flag is disabled. |
201 |
+ # https://docs.oracle.com/javase/8/docs/technotes/guides/intl/fontconfig.html |
202 |
+ if ! use fontconfig ; then |
203 |
+ insinto "${dest}"/lib/ |
204 |
+ doins "$(prefixify_ro "${FILESDIR}"/fontconfig.properties)" |
205 |
+ fi |
206 |
+ |
207 |
+ # Needs to be done before CDS, bug #215225. |
208 |
+ java-vm_set-pax-markings "${ddest}" |
209 |
+ |
210 |
+ # See bug #207282. |
211 |
+ einfo "Creating the Class Data Sharing archives" |
212 |
+ case ${ARCH} in |
213 |
+ arm|ia64) |
214 |
+ ${ddest}/bin/java -client -Xshare:dump || die |
215 |
+ ;; |
216 |
+ x86) |
217 |
+ ${ddest}/bin/java -client -Xshare:dump || die |
218 |
+ # limit heap size for large memory on x86 #467518 |
219 |
+ # this is a workaround and shouldn't be needed. |
220 |
+ ${ddest}/bin/java -server -Xms64m -Xmx64m -Xshare:dump || die |
221 |
+ ;; |
222 |
+ *) |
223 |
+ ${ddest}/bin/java -server -Xshare:dump || die |
224 |
+ ;; |
225 |
+ esac |
226 |
+ |
227 |
+ # Remove empty dirs we might have copied. |
228 |
+ find "${D}" -type d -empty -exec rmdir -v {} + || die |
229 |
+ |
230 |
+ java-vm_install-env "${FILESDIR}"/${PN}.env.sh |
231 |
+ java-vm_revdep-mask |
232 |
+ java-vm_sandbox-predict /dev/random /proc/self/coredump_filter |
233 |
+} |
234 |
+ |
235 |
+pkg_preinst() { |
236 |
+ gnome2_icon_savelist |
237 |
+} |
238 |
+ |
239 |
+pkg_postinst() { |
240 |
+ gnome2_icon_cache_update |
241 |
+ java-vm-2_pkg_postinst |
242 |
+ |
243 |
+ if ! use headless-awt && ! use javafx ; then |
244 |
+ ewarn "You have disabled the javafx flag. Some modern desktop Java applications" |
245 |
+ ewarn "require this and they may fail with a confusing error message." |
246 |
+ fi |
247 |
+} |
248 |
+ |
249 |
+pkg_postrm() { |
250 |
+ gnome2_icon_cache_update |
251 |
+ java-vm-2_pkg_postrm |
252 |
+} |