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