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.14.ebuild
Date: Sun, 31 May 2009 11:24:58
Message-Id: E1MAj9r-0001gn-If@stork.gentoo.org
1 caster 09/05/31 11:24:55
2
3 Modified: ChangeLog
4 Added: sun-jre-bin-1.6.0.14.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.2_rc33/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.149 dev-java/sun-jre-bin/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/sun-jre-bin/ChangeLog?rev=1.149&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/sun-jre-bin/ChangeLog?rev=1.149&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/sun-jre-bin/ChangeLog?r1=1.148&r2=1.149
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-java/sun-jre-bin/ChangeLog,v
19 retrieving revision 1.148
20 retrieving revision 1.149
21 diff -u -r1.148 -r1.149
22 --- ChangeLog 29 May 2009 20:32:40 -0000 1.148
23 +++ ChangeLog 31 May 2009 11:24:55 -0000 1.149
24 @@ -1,6 +1,12 @@
25 # ChangeLog for dev-java/sun-jre-bin
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jre-bin/ChangeLog,v 1.148 2009/05/29 20:32:40 caster Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jre-bin/ChangeLog,v 1.149 2009/05/31 11:24:55 caster Exp $
29 +
30 +*sun-jre-bin-1.6.0.14 (31 May 2009)
31 +
32 + 31 May 2009; Vlastimil Babka <caster@g.o>
33 + +sun-jre-bin-1.6.0.14.ebuild:
34 + Version bump.
35
36 29 May 2009; Vlastimil Babka <caster@g.o>
37 sun-jre-bin-1.4.2.19.ebuild, -sun-jre-bin-1.5.0.17.ebuild,
38
39
40
41 1.1 dev-java/sun-jre-bin/sun-jre-bin-1.6.0.14.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/sun-jre-bin/sun-jre-bin-1.6.0.14.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/sun-jre-bin/sun-jre-bin-1.6.0.14.ebuild?rev=1.1&content-type=text/plain
45
46 Index: sun-jre-bin-1.6.0.14.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jre-bin/sun-jre-bin-1.6.0.14.ebuild,v 1.1 2009/05/31 11:24:55 caster Exp $
51
52 inherit versionator pax-utils eutils java-vm-2
53
54 UPDATE="$(get_version_component_range 4)"
55 UPDATE="${UPDATE#0}"
56 MY_PV="$(get_version_component_range 2)u${UPDATE}"
57
58 SUFFIX=".bin"
59 X86_AT="jdk-${MY_PV}-dlj-linux-i586${SUFFIX}"
60 AMD64_AT="jdk-${MY_PV}-dlj-linux-amd64${SUFFIX}"
61
62 DESCRIPTION="Sun's Java SE Runtime Environment"
63 HOMEPAGE="http://java.sun.com/javase/6/"
64 URL_BASE="http://download.java.net/dlj/binaries"
65 SRC_URI="x86? ( ${URL_BASE}/${X86_AT} )
66 amd64? ( ${URL_BASE}/${AMD64_AT} )"
67 SLOT="1.6"
68 LICENSE="dlj-1.1"
69 KEYWORDS="-* ~amd64 ~x86"
70 RESTRICT="strip"
71 IUSE="X alsa nsplugin odbc"
72
73 RDEPEND="sys-libs/glibc
74 x86? ( =virtual/libstdc++-3.3 )
75 alsa? ( media-libs/alsa-lib )
76 X? (
77 x11-libs/libXext
78 x11-libs/libXi
79 x11-libs/libXp
80 x11-libs/libXtst
81 amd64? ( x11-libs/libXt )
82 x11-libs/libX11
83 )
84 odbc? ( dev-db/unixODBC )"
85 DEPEND=""
86
87 JAVA_PROVIDE="jdbc-stdext jdbc-rowset"
88
89 QA_TEXTRELS_x86="opt/${P}/lib/i386/client/libjvm.so
90 opt/${P}/lib/i386/motif21/libmawt.so
91 opt/${P}/lib/i386/libdeploy.so
92 opt/${P}/lib/i386/server/libjvm.so"
93
94 src_unpack() {
95 mkdir bundled-jdk
96 cd bundled-jdk
97 sh "${DISTDIR}"/${A} --accept-license --unpack || die "Failed to unpack"
98
99 cd ..
100 bash "${FILESDIR}/construct-1.6.sh" bundled-jdk sun-jdk-${PV} ${P} || die "construct.sh failed"
101 }
102
103 src_compile() {
104 # Set PaX markings on all JDK/JRE executables to allow code-generation on
105 # the heap by the JIT compiler. This has to be done before CDS - #215225
106 pax-mark m $(list-paxables "${S}"/bin/*)
107
108 # see bug #207282
109 if use x86; then
110 einfo "Creating the Class Data Sharing archives"
111 "${S}"/bin/java -client -Xshare:dump || die
112 "${S}"/bin/java -server -Xshare:dump || die
113 fi
114 }
115
116 src_install() {
117 local dirs="bin lib man"
118
119 # only X86 has the plugin and javaws
120 use x86 && dirs="${dirs} javaws plugin"
121 dodir /opt/${P}
122
123 cp -pPR $dirs "${D}/opt/${P}/" || die "failed to copy"
124
125 dodoc README THIRDPARTYLICENSEREADME.txt || die
126 dohtml Welcome.html || die
127 dodir /opt/${P}/share/
128
129 if use nsplugin; then
130 local plugin_dir="ns7-gcc29"
131 if has_version '>=sys-devel/gcc-3' ; then
132 plugin_dir="ns7"
133 fi
134
135 if use x86 ; then
136 install_mozilla_plugin /opt/${P}/plugin/i386/$plugin_dir/libjavaplugin_oji.so
137 install_mozilla_plugin /opt/${P}/lib/i386/libnpjp2.so plugin2
138 else
139 install_mozilla_plugin /opt/${P}/lib/amd64/libnpjp2.so
140 fi
141 fi
142
143 # install control panel for Gnome/KDE
144 if [[ -e "${D}/opt/${P}/plugin/desktop/sun_java.desktop" ]]; then
145 sed -e "s/\(Name=Java\)/\1 Control Panel for Sun JRE ${SLOT}/" \
146 -e "s#Exec=.*#Exec=/opt/${P}/bin/ControlPanel#" \
147 -e "s#Icon=.*#Icon=/opt/${P}/plugin/desktop/sun_java.png#" \
148 "${D}/opt/${P}/plugin/desktop/sun_java.desktop" > \
149 "${T}/sun_jre-${SLOT}.desktop" || die
150 domenu "${T}/sun_jre-${SLOT}.desktop" || die
151 fi
152
153 # bug #56444
154 insinto /opt/${P}/lib/
155 newins "${FILESDIR}"/fontconfig.Gentoo.properties fontconfig.properties
156
157 set_java_env
158 java-vm_revdep-mask
159 }
160
161 pkg_postinst() {
162 # Set as default VM if none exists
163 java-vm-2_pkg_postinst
164
165 if use x86 && use nsplugin; then
166 elog
167 elog "Two variants of the nsplugin are available via eselect java-nsplugin:"
168 elog "${VMHANDLE} and ${VMHANDLE}-plugin2 (the Next-Generation Plug-In) "
169 ewarn "Note that the ${VMHANDLE}-plugin2 works only in Firefox 3!"
170 elog "For more info see https://jdk6.dev.java.net/plugin2/"
171 elog
172 fi
173
174 if use amd64 && use nsplugin; then
175 elog
176 elog "This version finally brings a browser plugin for amd64"
177 elog "It is the so-called Next-Generation Plug-In (plugin2)"
178 elog "Use eselect java-nsplugin to select it (${VMHANDLE})."
179 ewarn "Note that it works only in Firefox 3 or newer browsers!"
180 elog "For more info see https://jdk6.dev.java.net/plugin2/"
181 elog
182 fi
183
184 elog "Beginning with 1.5.0.10 the hotspot vm can use epoll"
185 elog "The epoll-based implementation of SelectorProvider is not selected by"
186 elog "default."
187 elog "Use java -Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.EPollSelectorProvider"
188 }