Gentoo Archives: gentoo-commits

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