Gentoo Archives: gentoo-commits

From: "Vlastimil Babka (caster)" <caster@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-java/sun-jdk: sun-jdk-1.6.0.17.ebuild ChangeLog sun-jdk-1.6.0.18-r1.ebuild sun-jdk-1.6.0.18.ebuild
Date: Wed, 03 Feb 2010 11:27:32
Message-Id: E1NcdOK-0000Fs-Qf@stork.gentoo.org
1 caster 10/02/03 11:27:28
2
3 Modified: sun-jdk-1.6.0.17.ebuild ChangeLog
4 sun-jdk-1.6.0.18.ebuild
5 Added: sun-jdk-1.6.0.18-r1.ebuild
6 Log:
7 Revbump to change the naming and default browser plugin on x86. The default variant (without suffix) is now the 'plugin2' which works with Firefox 3+ including 3.6. The old plugin has '-old_oji' suffix and doesn't work in FF 3.6. Users that had the old plugin set will be switched to the new default automatically.
8 (Portage version: 2.2_rc62/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.4 dev-java/sun-jdk/sun-jdk-1.6.0.17.ebuild
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.6.0.17.ebuild?rev=1.4&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.6.0.17.ebuild?rev=1.4&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.6.0.17.ebuild?r1=1.3&r2=1.4
16
17 Index: sun-jdk-1.6.0.17.ebuild
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.6.0.17.ebuild,v
20 retrieving revision 1.3
21 retrieving revision 1.4
22 diff -u -r1.3 -r1.4
23 --- sun-jdk-1.6.0.17.ebuild 5 Nov 2009 21:27:46 -0000 1.3
24 +++ sun-jdk-1.6.0.17.ebuild 3 Feb 2010 11:27:28 -0000 1.4
25 @@ -1,6 +1,6 @@
26 -# Copyright 1999-2009 Gentoo Foundation
27 +# Copyright 1999-2010 Gentoo Foundation
28 # Distributed under the terms of the GNU General Public License v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.6.0.17.ebuild,v 1.3 2009/11/05 21:27:46 maekke Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.6.0.17.ebuild,v 1.4 2010/02/03 11:27:28 caster Exp $
31
32 inherit versionator java-vm-2 eutils pax-utils
33
34 @@ -155,7 +155,4 @@
35 elog "For more info see https://jdk6.dev.java.net/plugin2/"
36 elog
37 fi
38 -
39 - elog "Please reinstall eclipse-sdk if you have it installed and want"
40 - elog "workaround for bug #215150."
41 }
42
43
44
45 1.277 dev-java/sun-jdk/ChangeLog
46
47 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/sun-jdk/ChangeLog?rev=1.277&view=markup
48 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/sun-jdk/ChangeLog?rev=1.277&content-type=text/plain
49 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/sun-jdk/ChangeLog?r1=1.276&r2=1.277
50
51 Index: ChangeLog
52 ===================================================================
53 RCS file: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/ChangeLog,v
54 retrieving revision 1.276
55 retrieving revision 1.277
56 diff -u -r1.276 -r1.277
57 --- ChangeLog 23 Jan 2010 22:06:31 -0000 1.276
58 +++ ChangeLog 3 Feb 2010 11:27:28 -0000 1.277
59 @@ -1,6 +1,16 @@
60 # ChangeLog for dev-java/sun-jdk
61 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
62 -# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/ChangeLog,v 1.276 2010/01/23 22:06:31 caster Exp $
63 +# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/ChangeLog,v 1.277 2010/02/03 11:27:28 caster Exp $
64 +
65 +*sun-jdk-1.6.0.18-r1 (03 Feb 2010)
66 +
67 + 03 Feb 2010; Vlastimil Babka <caster@g.o> sun-jdk-1.6.0.17.ebuild,
68 + sun-jdk-1.6.0.18.ebuild, +sun-jdk-1.6.0.18-r1.ebuild:
69 + Revbump to change the naming and default browser plugin on x86. The
70 + default variant (without suffix) is now the 'plugin2' which works with
71 + Firefox 3+ including 3.6. The old plugin has '-old_oji' suffix and doesn't
72 + work in FF 3.6. Users that had the old plugin set will be switched to the
73 + new default automatically.
74
75 23 Jan 2010; Vlastimil Babka <caster@g.o> sun-jdk-1.6.0.18.ebuild:
76 Add jce also to RDEPEND, as pointed out by Amit Dor-Shifer
77
78
79
80 1.3 dev-java/sun-jdk/sun-jdk-1.6.0.18.ebuild
81
82 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.6.0.18.ebuild?rev=1.3&view=markup
83 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.6.0.18.ebuild?rev=1.3&content-type=text/plain
84 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.6.0.18.ebuild?r1=1.2&r2=1.3
85
86 Index: sun-jdk-1.6.0.18.ebuild
87 ===================================================================
88 RCS file: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.6.0.18.ebuild,v
89 retrieving revision 1.2
90 retrieving revision 1.3
91 diff -u -r1.2 -r1.3
92 --- sun-jdk-1.6.0.18.ebuild 23 Jan 2010 22:06:31 -0000 1.2
93 +++ sun-jdk-1.6.0.18.ebuild 3 Feb 2010 11:27:28 -0000 1.3
94 @@ -1,6 +1,6 @@
95 # Copyright 1999-2010 Gentoo Foundation
96 # Distributed under the terms of the GNU General Public License v2
97 -# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.6.0.18.ebuild,v 1.2 2010/01/23 22:06:31 caster Exp $
98 +# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.6.0.18.ebuild,v 1.3 2010/02/03 11:27:28 caster Exp $
99
100 inherit versionator java-vm-2 eutils pax-utils
101
102 @@ -156,7 +156,4 @@
103 elog "For more info see https://jdk6.dev.java.net/plugin2/"
104 elog
105 fi
106 -
107 - elog "Please reinstall eclipse-sdk if you have it installed and want"
108 - elog "workaround for bug #215150."
109 }
110
111
112
113 1.1 dev-java/sun-jdk/sun-jdk-1.6.0.18-r1.ebuild
114
115 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.6.0.18-r1.ebuild?rev=1.1&view=markup
116 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.6.0.18-r1.ebuild?rev=1.1&content-type=text/plain
117
118 Index: sun-jdk-1.6.0.18-r1.ebuild
119 ===================================================================
120 # Copyright 1999-2010 Gentoo Foundation
121 # Distributed under the terms of the GNU General Public License v2
122 # $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.6.0.18-r1.ebuild,v 1.1 2010/02/03 11:27:28 caster Exp $
123
124 inherit versionator java-vm-2 eutils pax-utils
125
126 UPDATE="$(get_version_component_range 4)"
127 UPDATE="${UPDATE#0}"
128 MY_PV="$(get_version_component_range 2)u${UPDATE}"
129 X86_AT="jdk-${MY_PV}-dlj-linux-i586.bin"
130 AMD64_AT="jdk-${MY_PV}-dlj-linux-amd64.bin"
131
132 DESCRIPTION="Sun's Java SE Development Kit"
133 HOMEPAGE="http://java.sun.com/javase/6/"
134 URL_BASE="http://download.java.net/dlj/binaries"
135 SRC_URI="x86? ( ${URL_BASE}/${X86_AT} )
136 amd64? ( ${URL_BASE}/${AMD64_AT} )"
137 SLOT="1.6"
138 LICENSE="dlj-1.1"
139 KEYWORDS="~amd64 ~x86"
140 RESTRICT="strip"
141 IUSE="X alsa derby doc examples jce nsplugin odbc"
142
143 QA_TEXTRELS_x86="opt/${P}/jre/lib/i386/motif21/libmawt.so
144 opt/${P}/jre/lib/i386/libdeploy.so
145 opt/${P}/jre/lib/i386/client/libjvm.so
146 opt/${P}/jre/lib/i386/server/libjvm.so"
147 QA_DT_HASH="opt/${P}/.*"
148
149 DEPEND="jce? ( =dev-java/sun-jce-bin-1.6.0* )"
150 RDEPEND="${DEPEND}
151 doc? ( =dev-java/java-sdk-docs-1.6.0* )
152 sys-libs/glibc
153 alsa? ( media-libs/alsa-lib )
154 X? (
155 x11-libs/libXext
156 x11-libs/libXi
157 x11-libs/libXp
158 x11-libs/libXtst
159 amd64? ( x11-libs/libXt )
160 x11-libs/libX11
161 )
162 odbc? ( dev-db/unixODBC )"
163
164 JAVA_PROVIDE="jdbc-stdext jdbc-rowset"
165
166 S="${WORKDIR}/jdk$(replace_version_separator 3 _)"
167
168 src_unpack() {
169 sh "${DISTDIR}"/${A} --accept-license --unpack || die "Failed to unpack"
170 }
171
172 src_compile() {
173 # Set PaX markings on all JDK/JRE executables to allow code-generation on
174 # the heap by the JIT compiler. This needs to be done before CDS - #215225
175 pax-mark m $(list-paxables "${S}"{,/jre}/bin/*)
176
177 # see bug #207282
178 if use x86; then
179 einfo "Creating the Class Data Sharing archives"
180 "${S}"/bin/java -client -Xshare:dump || die
181 "${S}"/bin/java -server -Xshare:dump || die
182 fi
183 }
184
185 src_install() {
186 local dirs="bin include jre lib man"
187
188 use derby && dirs="${dirs} db"
189
190 dodir /opt/${P}
191
192 cp -pPR $dirs "${D}/opt/${P}/" || die "failed to copy"
193 dodoc COPYRIGHT || die
194 dohtml README.html || die
195
196 cp -pP src.zip "${D}/opt/${P}/" || die
197
198 if use examples; then
199 cp -pPR demo sample "${D}/opt/${P}/" || die
200 fi
201
202 if use jce; then
203 cd "${D}/opt/${P}/jre/lib/security"
204 dodir /opt/${P}/jre/lib/security/strong-jce
205 mv "${D}"/opt/${P}/jre/lib/security/US_export_policy.jar \
206 "${D}"/opt/${P}/jre/lib/security/strong-jce || die
207 mv "${D}"/opt/${P}/jre/lib/security/local_policy.jar \
208 "${D}"/opt/${P}/jre/lib/security/strong-jce || die
209 dosym /opt/sun-jce-bin-1.6.0/jre/lib/security/unlimited-jce/US_export_policy.jar /opt/${P}/jre/lib/security/
210 dosym /opt/sun-jce-bin-1.6.0/jre/lib/security/unlimited-jce/local_policy.jar /opt/${P}/jre/lib/security/
211 fi
212
213 if use nsplugin; then
214 local plugin_dir="ns7-gcc29"
215 if has_version '>=sys-devel/gcc-3' ; then
216 plugin_dir="ns7"
217 fi
218
219 if use x86 ; then
220 install_mozilla_plugin /opt/${P}/jre/lib/i386/libnpjp2.so
221 install_mozilla_plugin /opt/${P}/jre/plugin/i386/$plugin_dir/libjavaplugin_oji.so old_oji
222 else
223 install_mozilla_plugin /opt/${P}/jre/lib/amd64/libnpjp2.so
224 fi
225 fi
226
227 # create dir for system preferences
228 dodir /opt/${P}/jre/.systemPrefs
229 # Create files used as storage for system preferences.
230 touch "${D}"/opt/${P}/jre/.systemPrefs/.system.lock
231 chmod 644 "${D}"/opt/${P}/jre/.systemPrefs/.system.lock
232 touch "${D}"/opt/${P}/jre/.systemPrefs/.systemRootModFile
233 chmod 644 "${D}"/opt/${P}/jre/.systemPrefs/.systemRootModFile
234
235 if [[ -f "${D}"/opt/${P}/jre/plugin/desktop/sun_java.desktop ]]; then
236 # install control panel for Gnome/KDE
237 # The jre also installs these so make sure that they do not have the same
238 # Name
239 sed -e "s/\(Name=\)Java/\1 Java Control Panel for Sun JDK ${SLOT}/" \
240 -e "s#Exec=.*#Exec=/opt/${P}/jre/bin/ControlPanel#" \
241 -e "s#Icon=.*#Icon=/opt/${P}/jre/plugin/desktop/sun_java.png#" \
242 "${D}"/opt/${P}/jre/plugin/desktop/sun_java.desktop > \
243 "${T}"/sun_jdk-${SLOT}.desktop
244
245 domenu "${T}"/sun_jdk-${SLOT}.desktop
246 fi
247
248 # bug #56444
249 insinto /opt/${P}/jre/lib/
250 newins "${FILESDIR}"/fontconfig.Gentoo.properties fontconfig.properties
251
252 set_java_env
253 java-vm_revdep-mask
254 }
255
256 pkg_postinst() {
257 # Set as default VM if none exists
258 java-vm-2_pkg_postinst
259
260 if use x86 && use nsplugin; then
261 elog
262 elog "Two variants of the nsplugin are available via eselect java-nsplugin:"
263 elog "Note that starting with ${PN}-1.6.0.18-r1 their naming and the default changed,"
264 elog "users with the old plugin set are switched to the new default automatically."
265 elog "The default ${VMHANDLE} is the new 'plugin2' which works in Firefox 3 (xulrunner-1.9)"
266 elog "and newer, the ${VMHANDLE}-old_oji is the old plugin using the OJI API"
267 elog "that was removed in Firefox 3.6 (xulrunner-1.9.2)."
268 elog "For more info see https://jdk6.dev.java.net/plugin2/"
269 elog
270 fi
271
272 if use amd64 && use nsplugin; then
273 elog
274 elog "The amd64 version ships the new 'plugin2' browser plugin which works"
275 elog "in Firefox 3+ and other recent browser versions."
276 elog "For more info see https://jdk6.dev.java.net/plugin2/"
277 elog
278 fi
279 }