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.06.ebuild
Date: Wed, 16 Apr 2008 21:37:43
Message-Id: E1JmFK0-0001KI-47@stork.gentoo.org
1 caster 08/04/16 21:37:40
2
3 Modified: ChangeLog
4 Added: sun-jre-bin-1.6.0.06.ebuild
5 Log:
6 Version bump. Fixes problems with xcb - bug #156353.
7 (Portage version: 2.1.5_rc3)
8
9 Revision Changes Path
10 1.127 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.127&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/sun-jre-bin/ChangeLog?rev=1.127&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/sun-jre-bin/ChangeLog?r1=1.126&r2=1.127
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-java/sun-jre-bin/ChangeLog,v
19 retrieving revision 1.126
20 retrieving revision 1.127
21 diff -u -r1.126 -r1.127
22 --- ChangeLog 30 Mar 2008 23:59:09 -0000 1.126
23 +++ ChangeLog 16 Apr 2008 21:37:39 -0000 1.127
24 @@ -1,6 +1,12 @@
25 # ChangeLog for dev-java/sun-jre-bin
26 # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jre-bin/ChangeLog,v 1.126 2008/03/30 23:59:09 robbat2 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jre-bin/ChangeLog,v 1.127 2008/04/16 21:37:39 caster Exp $
29 +
30 +*sun-jre-bin-1.6.0.06 (16 Apr 2008)
31 +
32 + 16 Apr 2008; Vlastimil Babka <caster@g.o>
33 + +sun-jre-bin-1.6.0.06.ebuild:
34 + Version bump. Fixes problems with xcb - bug #156353.
35
36 30 Mar 2008; Robin H. Johnson <robbat2@g.o>
37 sun-jre-bin-1.6.0.05-r1.ebuild:
38
39
40
41 1.1 dev-java/sun-jre-bin/sun-jre-bin-1.6.0.06.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/sun-jre-bin/sun-jre-bin-1.6.0.06.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.06.ebuild?rev=1.1&content-type=text/plain
45
46 Index: sun-jre-bin-1.6.0.06.ebuild
47 ===================================================================
48 # Copyright 1999-2008 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.06.ebuild,v 1.1 2008/04/16 21:37:39 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 J2SE Development Kit, version ${PV}"
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 else
138 eerror "No plugin available for amd64 arch"
139 fi
140 fi
141
142 # install control panel for Gnome/KDE
143 if [[ -e "${D}/opt/${P}/plugin/desktop/sun_java.desktop" ]]; then
144 sed -e "s/\(Name=Java\)/\1 Control Panel for Sun JRE ${SLOT}/" \
145 -e "s#Exec=.*#Exec=/opt/${P}/bin/ControlPanel#" \
146 -e "s#Icon=.*#Icon=/opt/${P}/plugin/desktop/sun_java.png#" \
147 "${D}/opt/${P}/plugin/desktop/sun_java.desktop" > \
148 "${T}/sun_jre-${SLOT}.desktop" || die
149 domenu "${T}/sun_jre-${SLOT}.desktop" || die
150 fi
151
152 # bug #56444
153 insinto /opt/${P}/lib/
154 newins "${FILESDIR}"/fontconfig.Gentoo.properties fontconfig.properties
155
156 set_java_env
157 java-vm_revdep-mask
158 }
159
160 pkg_postinst() {
161 # Set as default VM if none exists
162 java-vm-2_pkg_postinst
163
164 elog "Beginning with 1.5.0.10 the hotspot vm can use epoll"
165 elog "The epoll-based implementation of SelectorProvider is not selected by"
166 elog "default."
167 elog "Use java -Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.EPollSelectorProvider"
168 }
169
170
171
172 --
173 gentoo-commits@l.g.o mailing list