Gentoo Archives: gentoo-commits

From: "Vlastimil Babka (caster)" <caster@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-emulation/emul-linux-x86-java: ChangeLog emul-linux-x86-java-1.5.0.21.ebuild
Date: Tue, 29 Sep 2009 16:00:41
Message-Id: E1Msf83-0004WB-Fy@stork.gentoo.org
1 caster 09/09/29 16:00:39
2
3 Modified: ChangeLog
4 Added: emul-linux-x86-java-1.5.0.21.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.2_rc40/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.78 app-emulation/emul-linux-x86-java/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/emul-linux-x86-java/ChangeLog?rev=1.78&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/emul-linux-x86-java/ChangeLog?rev=1.78&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/emul-linux-x86-java/ChangeLog?r1=1.77&r2=1.78
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-java/ChangeLog,v
19 retrieving revision 1.77
20 retrieving revision 1.78
21 diff -u -r1.77 -r1.78
22 --- ChangeLog 18 Aug 2009 10:11:50 -0000 1.77
23 +++ ChangeLog 29 Sep 2009 16:00:39 -0000 1.78
24 @@ -1,6 +1,12 @@
25 # ChangeLog for app-emulation/emul-linux-x86-java
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-java/ChangeLog,v 1.77 2009/08/18 10:11:50 caster Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-java/ChangeLog,v 1.78 2009/09/29 16:00:39 caster Exp $
29 +
30 +*emul-linux-x86-java-1.5.0.21 (29 Sep 2009)
31 +
32 + 29 Sep 2009; Vlastimil Babka <caster@g.o>
33 + +emul-linux-x86-java-1.5.0.21.ebuild:
34 + Version bump.
35
36 *emul-linux-x86-java-1.6.0.16 (18 Aug 2009)
37
38
39
40
41 1.1 app-emulation/emul-linux-x86-java/emul-linux-x86-java-1.5.0.21.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/emul-linux-x86-java/emul-linux-x86-java-1.5.0.21.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/emul-linux-x86-java/emul-linux-x86-java-1.5.0.21.ebuild?rev=1.1&content-type=text/plain
45
46 Index: emul-linux-x86-java-1.5.0.21.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/app-emulation/emul-linux-x86-java/emul-linux-x86-java-1.5.0.21.ebuild,v 1.1 2009/09/29 16:00: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-3)u${UPDATE}"
57
58 At="jdk-${MY_PV}-dlj-linux-i586.bin"
59 DESCRIPTION="Sun's Java SE Runtime Environment (32bit)"
60 HOMEPAGE="http://java.sun.com/j2se/1.5.0/"
61 SRC_URI="http://download.java.net/dlj/binaries/${At}"
62
63 SLOT="1.5"
64 LICENSE="dlj-1.1"
65 KEYWORDS="-* ~amd64"
66 RESTRICT="strip"
67 IUSE="X alsa nsplugin"
68
69 JAVA_VM_NO_GENERATION1=true
70
71 RDEPEND="alsa? ( app-emulation/emul-linux-x86-soundlibs )
72 X? ( app-emulation/emul-linux-x86-xlibs )"
73
74 JAVA_PROVIDE="jdbc-stdext jdbc-rowset"
75
76 QA_TEXTRELS_amd64="opt/${P}/lib/i386/motif21/libmawt.so
77 opt/${P}/lib/i386/libdeploy.so"
78 QA_DT_HASH="opt/${P}/.*"
79
80 src_unpack() {
81 mkdir bundled-jdk
82 cd bundled-jdk
83 sh "${DISTDIR}"/${At} --accept-license --unpack || die "Failed to unpack"
84
85 cd ..
86 bash "${FILESDIR}"/construct.sh bundled-jdk sun-jdk-${PV} ${P} || die "construct.sh failed"
87 }
88
89 src_compile() {
90 # Set PaX markings on all JDK/JRE executables to allow code-generation on
91 # the heap by the JIT compiler. This has to be done before CDS - #215225
92 pax-mark m $(list-paxables "${S}"/bin/*)
93
94 # see bug #207282
95 einfo "Creating the Class Data Sharing archives"
96 "${S}"/bin/java -client -Xshare:dump || die
97 }
98
99 src_install() {
100 dodir /opt/${P}
101 cp -pPR bin lib man javaws plugin "${D}/opt/${P}/" || die "failed to copy"
102
103 dodoc CHANGES README THIRDPARTYLICENSEREADME.txt || die
104 dohtml Welcome.html || die
105
106 if use nsplugin; then
107 local plugin_dir="ns7-gcc29"
108 if has_version '>=sys-devel/gcc-3' ; then
109 plugin_dir="ns7"
110 fi
111
112 install_mozilla_plugin /opt/${P}/plugin/i386/$plugin_dir/libjavaplugin_oji.so
113 fi
114
115 # FIXME figure out how to handle the control pannel conflict with
116 # sun-jdk-bin
117
118 # install control panel for Gnome/KDE
119 # sed -e "s/INSTALL_DIR\/JRE_NAME_VERSION/\/opt\/${P}\/jre/" \
120 # -e "s/\(Name=Java\)/\1 Control Panel ${SLOT}/" \
121 # ${D}/opt/${P}/plugin/desktop/sun_java.desktop > \
122 # ${T}/sun_java-${SLOT}.desktop
123
124 # domenu ${T}/sun_java-${SLOT}.desktop
125
126 set_java_env
127 java-vm_revdep-mask
128 }
129
130 pkg_postinst() {
131 # Set as default VM if none exists
132 java-vm-2_pkg_postinst
133
134 if ! use X; then
135 local xwarn="X11 libraries and/or"
136 fi
137
138 echo
139 ewarn "Some parts of Sun's JDK require ${xwarn} virtual/lpr to be installed."
140 ewarn "Be careful which Java libraries you attempt to use."
141
142 echo
143 elog "Beginning with 1.5.0.10 the hotspot vm can use epoll"
144 elog "The epoll-based implementation of SelectorProvider is not selected by"
145 elog "default."
146 elog "Use java -Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.EPollSelectorProvider"
147 }