Gentoo Archives: gentoo-commits

From: "James Le Cuirot (chewi)" <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-java/oracle-jre-bin: oracle-jre-bin-1.8.0.40.ebuild ChangeLog oracle-jre-bin-1.8.0.31.ebuild
Date: Tue, 03 Mar 2015 23:49:12
Message-Id: 20150303234907.0366D12FBA@oystercatcher.gentoo.org
1 chewi 15/03/03 23:49:06
2
3 Modified: ChangeLog
4 Added: oracle-jre-bin-1.8.0.40.ebuild
5 Removed: oracle-jre-bin-1.8.0.31.ebuild
6 Log:
7 Version bump of oracle-jre-bin:8 wrt bug #542048
8
9 (Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key 9C6D7DE4)
10
11 Revision Changes Path
12 1.78 dev-java/oracle-jre-bin/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/oracle-jre-bin/ChangeLog?rev=1.78&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/oracle-jre-bin/ChangeLog?rev=1.78&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/oracle-jre-bin/ChangeLog?r1=1.77&r2=1.78
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-java/oracle-jre-bin/ChangeLog,v
21 retrieving revision 1.77
22 retrieving revision 1.78
23 diff -u -r1.77 -r1.78
24 --- ChangeLog 30 Jan 2015 05:19:11 -0000 1.77
25 +++ ChangeLog 3 Mar 2015 23:49:06 -0000 1.78
26 @@ -1,6 +1,12 @@
27 # ChangeLog for dev-java/oracle-jre-bin
28 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-java/oracle-jre-bin/ChangeLog,v 1.77 2015/01/30 05:19:11 ercpe Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-java/oracle-jre-bin/ChangeLog,v 1.78 2015/03/03 23:49:06 chewi Exp $
31 +
32 +*oracle-jre-bin-1.8.0.40 (03 Mar 2015)
33 +
34 + 03 Mar 2015; James Le Cuirot <chewi@g.o>
35 + +oracle-jre-bin-1.8.0.40.ebuild, -oracle-jre-bin-1.8.0.31.ebuild:
36 + Version bump of oracle-jre-bin:8 wrt bug #542048
37
38 30 Jan 2015; Johann Schmitz <ercpe@g.o>
39 -oracle-jre-bin-1.7.0.71.ebuild, -oracle-jre-bin-1.7.0.72.ebuild,
40
41
42
43 1.1 dev-java/oracle-jre-bin/oracle-jre-bin-1.8.0.40.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/oracle-jre-bin/oracle-jre-bin-1.8.0.40.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/oracle-jre-bin/oracle-jre-bin-1.8.0.40.ebuild?rev=1.1&content-type=text/plain
47
48 Index: oracle-jre-bin-1.8.0.40.ebuild
49 ===================================================================
50 # Copyright 1999-2015 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-java/oracle-jre-bin/oracle-jre-bin-1.8.0.40.ebuild,v 1.1 2015/03/03 23:49:06 chewi Exp $
53
54 EAPI="5"
55
56 inherit java-vm-2 eutils prefix versionator
57
58 if [[ "$(get_version_component_range 4)" == 0 ]] ; then
59 S_PV="$(get_version_component_range 1-3)"
60 else
61 MY_PV_EXT="u$(get_version_component_range 4)"
62 S_PV="$(get_version_component_range 1-4)"
63 fi
64
65 MY_PV="$(get_version_component_range 2)${MY_PV_EXT}"
66
67 X86_AT="jre-${MY_PV}-linux-i586.tar.gz"
68 AMD64_AT="jre-${MY_PV}-linux-x64.tar.gz"
69
70 # This URIs need updating when bumping!
71 JRE_URI="http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html"
72 JCE_URI="http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html"
73
74 JCE_DIR="UnlimitedJCEPolicyJDK8"
75 JCE_FILE="jce_policy-8.zip"
76
77 DESCRIPTION="Oracle's Java SE Runtime Environment"
78 HOMEPAGE="http://www.oracle.com/technetwork/java/javase/"
79 SRC_URI="
80 x86? ( ${X86_AT} )
81 amd64? ( ${AMD64_AT} )
82 jce? ( ${JCE_FILE} )"
83
84 LICENSE="Oracle-BCLA-JavaSE"
85 SLOT="1.8"
86 KEYWORDS="~amd64 ~x86"
87 IUSE="X alsa fontconfig jce nsplugin pax_kernel selinux"
88
89 RESTRICT="fetch strip"
90 QA_PREBUILT="*"
91
92 COMMON_DEP=""
93 RDEPEND="${COMMON_DEP}
94 X? (
95 x11-libs/libXext
96 x11-libs/libXi
97 x11-libs/libXrender
98 x11-libs/libXtst
99 x11-libs/libX11
100 )
101 alsa? ( media-libs/alsa-lib )
102 fontconfig? ( media-libs/fontconfig )
103 !prefix? ( sys-libs/glibc )
104 selinux? ( sec-policy/selinux-java )"
105 # scanelf won't create a PaX header, so depend on paxctl to avoid fallback
106 # marking. #427642
107 DEPEND="${COMMON_DEP}
108 jce? ( app-arch/unzip )
109 pax_kernel? ( sys-apps/paxctl )"
110
111 S="${WORKDIR}/jre"
112
113 pkg_nofetch() {
114 if use x86; then
115 AT=${X86_AT}
116 elif use amd64; then
117 AT=${AMD64_AT}
118 fi
119
120 einfo "Please download '${AT}' from:"
121 einfo "'${JRE_URI}'"
122 einfo "and move it to '${DISTDIR}'"
123
124 if use jce; then
125 einfo "Also download '${JCE_FILE}' from:"
126 einfo "'${JCE_URI}'"
127 einfo "and move it to '${DISTDIR}'"
128 fi
129
130 einfo
131 einfo "If the above mentioned urls do not point to the correct version anymore,"
132 einfo "please download the files from Oracle's java download archive:"
133 einfo
134 einfo " http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html#jre-${MY_PV}-oth-JPR"
135 einfo
136
137 }
138
139 src_unpack() {
140 default
141
142 # Upstream is changing their versioning scheme every release around 1.8.0.*;
143 # to stop having to change it over and over again, just wildcard match and
144 # live a happy life instead of trying to get this new jre1.8.0_05 to work.
145 mv "${WORKDIR}"/jre* "${S}" || die
146 }
147
148 src_prepare() {
149 if use jce; then
150 mv "${WORKDIR}"/${JCE_DIR} lib/security/ || die
151 fi
152 }
153
154 src_install() {
155 local dest="/opt/${P}"
156 local ddest="${ED}${dest}"
157
158 # Create files used as storage for system preferences.
159 mkdir .systemPrefs || die
160 touch .systemPrefs/.system.lock || die
161 touch .systemPrefs/.systemRootModFile || die
162
163 # We should not need the ancient plugin for Firefox 2 anymore, plus it has
164 # writable executable segments
165 if use x86; then
166 rm -vf lib/i386/libjavaplugin_oji.so \
167 lib/i386/libjavaplugin_nscp*.so
168 rm -vrf plugin/i386
169 fi
170 # Without nsplugin flag, also remove the new plugin
171 local arch=${ARCH};
172 use x86 && arch=i386;
173 if ! use nsplugin; then
174 rm -vf lib/${arch}/libnpjp2.so \
175 lib/${arch}/libjavaplugin_jni.so
176 fi
177
178 dodir "${dest}"
179 cp -pPR bin lib man "${ddest}" || die
180
181 # This needs to be done before CDS - #215225
182 java-vm_set-pax-markings "${ddest}"
183
184 # see bug #207282
185 einfo "Creating the Class Data Sharing archives"
186 case ${ARCH} in
187 arm|ia64)
188 ${ddest}/bin/java -client -Xshare:dump || die
189 ;;
190 x86)
191 ${ddest}/bin/java -client -Xshare:dump || die
192 # limit heap size for large memory on x86 #467518
193 # this is a workaround and shouldn't be needed.
194 ${ddest}/bin/java -server -Xms64m -Xmx64m -Xshare:dump || die
195 ;;
196 *)
197 ${ddest}/bin/java -server -Xshare:dump || die
198 ;;
199 esac
200 # Remove empty dirs we might have copied
201 find "${D}" -type d -empty -exec rmdir -v {} + || die
202
203 dodoc COPYRIGHT README
204
205 if use jce; then
206 dodir ${dest}/lib/security/strong-jce
207 mv "${ddest}"/lib/security/US_export_policy.jar \
208 "${ddest}"/lib/security/strong-jce || die
209 mv "${ddest}"/lib/security/local_policy.jar \
210 "${ddest}"/lib/security/strong-jce || die
211 dosym "${dest}"/lib/security/${JCE_DIR}/US_export_policy.jar \
212 "${dest}"/lib/security/US_export_policy.jar
213 dosym "${dest}"/lib/security/${JCE_DIR}/local_policy.jar \
214 "${dest}"/lib/security/local_policy.jar
215 fi
216
217 if use nsplugin; then
218 install_mozilla_plugin "${dest}"/lib/${arch}/libnpjp2.so
219 fi
220
221 # Install desktop file for the Java Control Panel.
222 # Using ${PN}-${SLOT} to prevent file collision with jre and or other slots.
223 # make_desktop_entry can't be used as ${P} would end up in filename.
224 newicon lib/desktop/icons/hicolor/48x48/apps/sun-jcontrol.png \
225 sun-jcontrol-${PN}-${SLOT}.png || die
226 sed -e "s#Name=.*#Name=Java Control Panel for Oracle JRE ${SLOT}#" \
227 -e "s#Exec=.*#Exec=/opt/${P}/bin/jcontrol#" \
228 -e "s#Icon=.*#Icon=sun-jcontrol-${PN}-${SLOT}#" \
229 -e "s#Application;##" \
230 -e "/Encoding/d" \
231 lib/desktop/applications/sun_java.desktop > \
232 "${T}"/jcontrol-${PN}-${SLOT}.desktop || die
233 domenu "${T}"/jcontrol-${PN}-${SLOT}.desktop
234
235 # Prune all fontconfig files so libfontconfig will be used and only install
236 # a Gentoo specific one if fontconfig is disabled.
237 # http://docs.oracle.com/javase/7/docs/technotes/guides/intl/fontconfig.html
238 rm "${ddest}"/lib/fontconfig.* || die
239 if ! use fontconfig; then
240 cp "${FILESDIR}"/fontconfig.Gentoo.properties "${T}"/fontconfig.properties || die
241 eprefixify "${T}"/fontconfig.properties
242 insinto "${dest}"/lib/
243 doins "${T}"/fontconfig.properties
244 fi
245
246 set_java_env
247 java-vm_revdep-mask
248 java-vm_sandbox-predict /dev/random /proc/self/coredump_filter
249 }