Gentoo Archives: gentoo-commits

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