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-jre-bin: ChangeLog sun-jre-bin-1.6.0.27.ebuild sun-jre-bin-1.6.0.25.ebuild sun-jre-bin-1.6.0.24.ebuild
Date: Thu, 01 Sep 2011 13:45:46
Message-Id: 20110901134533.518152004C@flycatcher.gentoo.org
1 caster 11/09/01 13:45:33
2
3 Modified: ChangeLog
4 Added: sun-jre-bin-1.6.0.27.ebuild
5 Removed: sun-jre-bin-1.6.0.25.ebuild
6 sun-jre-bin-1.6.0.24.ebuild
7 Log:
8 Version bump. Due to DLJ bundles no longer provided by Oracle, the package changes license to Oracle-BCLA-JavaSE and is fetch restricted again. Alternatives are dev-java/icedtea6-bin and dev-java/icedtea
9
10 (Portage version: 2.2.0_alpha51/cvs/Linux x86_64)
11
12 Revision Changes Path
13 1.196 dev-java/sun-jre-bin/ChangeLog
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/sun-jre-bin/ChangeLog?rev=1.196&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/sun-jre-bin/ChangeLog?rev=1.196&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/sun-jre-bin/ChangeLog?r1=1.195&r2=1.196
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/dev-java/sun-jre-bin/ChangeLog,v
22 retrieving revision 1.195
23 retrieving revision 1.196
24 diff -u -r1.195 -r1.196
25 --- ChangeLog 18 Jun 2011 11:49:51 -0000 1.195
26 +++ ChangeLog 1 Sep 2011 13:45:33 -0000 1.196
27 @@ -1,6 +1,15 @@
28 # ChangeLog for dev-java/sun-jre-bin
29 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jre-bin/ChangeLog,v 1.195 2011/06/18 11:49:51 hwoarang Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jre-bin/ChangeLog,v 1.196 2011/09/01 13:45:33 caster Exp $
32 +
33 +*sun-jre-bin-1.6.0.27 (01 Sep 2011)
34 +
35 + 01 Sep 2011; Vlastimil Babka <caster@g.o>
36 + -sun-jre-bin-1.6.0.24.ebuild, -sun-jre-bin-1.6.0.25.ebuild,
37 + +sun-jre-bin-1.6.0.27.ebuild:
38 + Version bump. Due to DLJ bundles no longer provided by Oracle, the package
39 + changes license to Oracle-BCLA-JavaSE and is fetch restricted again.
40 + Alternatives are dev-java/icedtea6-bin and dev-java/icedtea
41
42 18 Jun 2011; Markos Chandras <hwoarang@g.o>
43 sun-jre-bin-1.6.0.26.ebuild:
44
45
46
47 1.1 dev-java/sun-jre-bin/sun-jre-bin-1.6.0.27.ebuild
48
49 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/sun-jre-bin/sun-jre-bin-1.6.0.27.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/sun-jre-bin/sun-jre-bin-1.6.0.27.ebuild?rev=1.1&content-type=text/plain
51
52 Index: sun-jre-bin-1.6.0.27.ebuild
53 ===================================================================
54 # Copyright 1999-2011 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jre-bin/sun-jre-bin-1.6.0.27.ebuild,v 1.1 2011/09/01 13:45:33 caster Exp $
57
58 inherit versionator pax-utils eutils java-vm-2
59
60 UPDATE="$(get_version_component_range 4)"
61 UPDATE="${UPDATE#0}"
62 MY_PV="$(get_version_component_range 2)u${UPDATE}"
63
64 DOWNLOAD_LINK="http://www.oracle.com/technetwork/java/javase/downloads/jre-${MY_PV}-download-440425.html"
65 X86_AT="jre-${MY_PV}-linux-i586.bin"
66 AMD64_AT="jre-${MY_PV}-linux-x64.bin"
67
68 DESCRIPTION="Oracle (formerly Sun) Java SE Runtime Environment"
69 HOMEPAGE="http://www.oracle.com/technetwork/java/javase/overview/index-jsp-136246.html"
70 SRC_URI="x86? ( ${X86_AT} )
71 amd64? ( ${AMD64_AT} )"
72
73 SLOT="1.6"
74 LICENSE="Oracle-BCLA-JavaSE"
75 KEYWORDS="-* ~amd64 ~x86"
76 RESTRICT="fetch strip"
77 IUSE="X alsa jce nsplugin odbc"
78
79 DEPEND="jce? ( =dev-java/sun-jce-bin-1.6.0* )"
80 RDEPEND="${DEPEND}
81 sys-libs/glibc
82 alsa? ( media-libs/alsa-lib )
83 X? (
84 x11-libs/libXext
85 x11-libs/libXi
86 x11-libs/libXp
87 x11-libs/libXtst
88 amd64? ( x11-libs/libXt )
89 x11-libs/libX11
90 )
91 odbc? ( dev-db/unixODBC )"
92
93 JAVA_PROVIDE="jdbc-stdext jdbc-rowset"
94
95 QA_TEXTRELS_x86="opt/${P}/lib/i386/client/libjvm.so
96 opt/${P}/lib/i386/motif21/libmawt.so
97 opt/${P}/lib/i386/libdeploy.so
98 opt/${P}/lib/i386/server/libjvm.so"
99
100 S="${WORKDIR}/jre$(replace_version_separator 3 _)"
101
102 pkg_nofetch() {
103
104 if use x86; then
105 AT=${X86_AT}
106 elif use amd64; then
107 AT=${AMD64_AT}
108 fi
109
110 einfo "Due to Oracle no longer providing the distro-friendly DLJ bundles, the package has become fetch restricted again."
111 einfo "Alternatives are switching to dev-java/icedtea6-bin or the source-based dev-java/icedtea:6"
112
113 einfo "Please download ${AT} from:"
114 einfo "${DOWNLOAD_LINK}"
115 einfo "and move it to ${DISTDIR}"
116 }
117
118 src_unpack() {
119 sh "${DISTDIR}"/${A} -noregister || die "Failed to unpack"
120 }
121
122 src_compile() {
123 # Set PaX markings on all JDK/JRE executables to allow code-generation on
124 # the heap by the JIT compiler. This has to be done before CDS - #215225
125 pax-mark m $(list-paxables "${S}"/bin/*)
126
127 # see bug #207282
128 if use x86; then
129 einfo "Creating the Class Data Sharing archives"
130 "${S}"/bin/java -client -Xshare:dump || die
131 "${S}"/bin/java -server -Xshare:dump || die
132 fi
133 }
134
135 src_install() {
136 local dirs="bin lib man"
137
138 # only X86 has the plugin and javaws
139 use x86 && dirs="${dirs} javaws plugin"
140 dodir /opt/${P}
141
142 cp -pPR $dirs "${D}/opt/${P}/" || die "failed to copy"
143
144 dodoc README THIRDPARTYLICENSEREADME.txt || die
145 dohtml Welcome.html || die
146 dodir /opt/${P}/share/
147
148 if use jce; then
149 cd "${D}/opt/${P}/lib/security"
150 dodir /opt/${P}/lib/security/strong-jce
151 mv "${D}"/opt/${P}/lib/security/US_export_policy.jar \
152 "${D}"/opt/${P}/lib/security/strong-jce || die
153 mv "${D}"/opt/${P}/lib/security/local_policy.jar \
154 "${D}"/opt/${P}/lib/security/strong-jce || die
155 dosym /opt/sun-jce-bin-1.6.0/jre/lib/security/unlimited-jce/US_export_policy.jar /opt/${P}/lib/security/
156 dosym /opt/sun-jce-bin-1.6.0/jre/lib/security/unlimited-jce/local_policy.jar /opt/${P}/lib/security/
157 fi
158
159 if use nsplugin; then
160 local plugin_dir="ns7-gcc29"
161 if has_version '>=sys-devel/gcc-3' ; then
162 plugin_dir="ns7"
163 fi
164
165 if use x86 ; then
166 install_mozilla_plugin /opt/${P}/lib/i386/libnpjp2.so
167 install_mozilla_plugin /opt/${P}/plugin/i386/$plugin_dir/libjavaplugin_oji.so old_oji
168 else
169 install_mozilla_plugin /opt/${P}/lib/amd64/libnpjp2.so
170 fi
171 fi
172
173 # install control panel for Gnome/KDE
174 if [[ -e "${D}/opt/${P}/plugin/desktop/sun_java.desktop" ]]; then
175 sed -e "s/\(Name=Java\)/\1 Control Panel for Sun JRE ${SLOT}/" \
176 -e "s#Exec=.*#Exec=/opt/${P}/bin/ControlPanel#" \
177 -e "s#Icon=.*#Icon=/opt/${P}/plugin/desktop/sun_java.png#" \
178 "${D}/opt/${P}/plugin/desktop/sun_java.desktop" > \
179 "${T}/sun_jre-${SLOT}.desktop" || die
180 domenu "${T}/sun_jre-${SLOT}.desktop" || die
181 fi
182
183 # bug #56444
184 insinto /opt/${P}/lib/
185 newins "${FILESDIR}"/fontconfig.Gentoo.properties fontconfig.properties
186
187 set_java_env
188 java-vm_revdep-mask
189 }
190
191 pkg_postinst() {
192 # Set as default VM if none exists
193 java-vm-2_pkg_postinst
194
195 if use x86 && use nsplugin; then
196 elog
197 elog "Two variants of the nsplugin are available via eselect java-nsplugin:"
198 elog "Note that starting with ${PN}-1.6.0.18-r1 their naming and the default changed,"
199 elog "users with the old plugin set are switched to the new default automatically."
200 elog "The default ${VMHANDLE} is the new 'plugin2' which works in Firefox 3 (xulrunner-1.9)"
201 elog "and newer, the ${VMHANDLE}-old_oji is the old plugin using the OJI API"
202 elog "that was removed in Firefox 3.6 (xulrunner-1.9.2)."
203 elog "For more info see https://jdk6.dev.java.net/plugin2/"
204 elog
205 fi
206
207 if use amd64 && use nsplugin; then
208 elog
209 elog "The amd64 version ships the new 'plugin2' browser plugin which works"
210 elog "in Firefox 3+ and other recent browser versions."
211 elog "For more info see https://jdk6.dev.java.net/plugin2/"
212 elog
213 fi
214 }