1 |
caster 09/09/29 15:56:25 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: sun-jre-bin-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.159 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.159&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/sun-jre-bin/ChangeLog?rev=1.159&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/sun-jre-bin/ChangeLog?r1=1.158&r2=1.159 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-java/sun-jre-bin/ChangeLog,v |
19 |
retrieving revision 1.158 |
20 |
retrieving revision 1.159 |
21 |
diff -u -r1.158 -r1.159 |
22 |
--- ChangeLog 18 Aug 2009 10:12:17 -0000 1.158 |
23 |
+++ ChangeLog 29 Sep 2009 15:56:25 -0000 1.159 |
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.158 2009/08/18 10:12:17 caster Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jre-bin/ChangeLog,v 1.159 2009/09/29 15:56:25 caster Exp $ |
29 |
+ |
30 |
+*sun-jre-bin-1.5.0.21 (29 Sep 2009) |
31 |
+ |
32 |
+ 29 Sep 2009; Vlastimil Babka <caster@g.o> |
33 |
+ +sun-jre-bin-1.5.0.21.ebuild: |
34 |
+ Version bump. |
35 |
|
36 |
*sun-jre-bin-1.6.0.16 (18 Aug 2009) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 dev-java/sun-jre-bin/sun-jre-bin-1.5.0.21.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/sun-jre-bin/sun-jre-bin-1.5.0.21.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.5.0.21.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: sun-jre-bin-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/dev-java/sun-jre-bin/sun-jre-bin-1.5.0.21.ebuild,v 1.1 2009/09/29 15:56:25 caster Exp $ |
51 |
|
52 |
inherit pax-utils versionator 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 |
X86_AT="jdk-${MY_PV}-dlj-linux-i586.bin" |
59 |
AMD64_AT="jdk-${MY_PV}-dlj-linux-amd64.bin" |
60 |
|
61 |
DESCRIPTION="Sun's Java SE Runtime Environment" |
62 |
HOMEPAGE="http://java.sun.com/j2se/1.5.0/" |
63 |
SRC_URI="x86? ( http://download.java.net/dlj/binaries/${X86_AT} ) |
64 |
amd64? ( http://download.java.net/dlj/binaries/${AMD64_AT} )" |
65 |
SLOT="1.5" |
66 |
LICENSE="dlj-1.1" |
67 |
KEYWORDS="-* ~amd64 ~x86" |
68 |
RESTRICT="strip" |
69 |
IUSE="X alsa nsplugin odbc" |
70 |
|
71 |
RDEPEND="sys-libs/glibc |
72 |
alsa? ( media-libs/alsa-lib ) |
73 |
X? ( |
74 |
x11-libs/libXext |
75 |
x11-libs/libXi |
76 |
x11-libs/libXp |
77 |
x11-libs/libXtst |
78 |
x11-libs/libXt |
79 |
x11-libs/libX11 |
80 |
) |
81 |
odbc? ( dev-db/unixODBC )" |
82 |
DEPEND="" |
83 |
|
84 |
JAVA_PROVIDE="jdbc-stdext jdbc-rowset" |
85 |
|
86 |
QA_TEXTRELS_x86="opt/${P}/lib/i386/motif21/libmawt.so |
87 |
opt/${P}/lib/i386/libdeploy.so" |
88 |
|
89 |
src_unpack() { |
90 |
mkdir bundled-jdk |
91 |
cd bundled-jdk |
92 |
sh "${DISTDIR}/${A}" --accept-license --unpack || die "Failed to unpack" |
93 |
|
94 |
cd .. |
95 |
bash "${FILESDIR}/construct.sh" bundled-jdk sun-jdk-${PV} ${P} || die "construct.sh failed" |
96 |
} |
97 |
|
98 |
src_compile() { |
99 |
# Set PaX markings on all JDK/JRE executables to allow code-generation on |
100 |
# the heap by the JIT compiler. This has to be done before CDS - #215225 |
101 |
pax-mark m $(list-paxables "${S}"/bin/*) |
102 |
|
103 |
# see bug #207282 |
104 |
if use x86; then |
105 |
einfo "Creating the Class Data Sharing archives" |
106 |
"${S}"/bin/java -client -Xshare:dump || die |
107 |
fi |
108 |
} |
109 |
|
110 |
src_install() { |
111 |
local dirs="bin lib man" |
112 |
# only X86 has the plugin and javaws |
113 |
use x86 && dirs="${dirs} javaws plugin" |
114 |
dodir /opt/${P} |
115 |
|
116 |
cp -pPR ${dirs} "${D}/opt/${P}/" || die "failed to copy" |
117 |
|
118 |
dodoc CHANGES README THIRDPARTYLICENSEREADME.txt || die |
119 |
dohtml Welcome.html || die |
120 |
|
121 |
if use nsplugin; then |
122 |
local plugin_dir="ns7-gcc29" |
123 |
if has_version '>=sys-devel/gcc-3' ; then |
124 |
plugin_dir="ns7" |
125 |
fi |
126 |
|
127 |
if use x86 ; then |
128 |
install_mozilla_plugin /opt/${P}/plugin/i386/$plugin_dir/libjavaplugin_oji.so |
129 |
else |
130 |
eerror "No plugin available for amd64 arch" |
131 |
fi |
132 |
fi |
133 |
|
134 |
# FIXME figure out how to handle the control pannel conflict with |
135 |
# sun-jdk-bin |
136 |
|
137 |
# install control panel for Gnome/KDE |
138 |
# sed -e "s/INSTALL_DIR\/JRE_NAME_VERSION/\/opt\/${P}\/jre/" \ |
139 |
# -e "s/\(Name=Java\)/\1 Control Panel ${SLOT}/" \ |
140 |
# ${D}/opt/${P}/plugin/desktop/sun_java.desktop > \ |
141 |
# ${T}/sun_java-${SLOT}.desktop |
142 |
|
143 |
# domenu ${T}/sun_java-${SLOT}.desktop |
144 |
|
145 |
# bug #56444 |
146 |
insinto /opt/${P}/lib/ |
147 |
newins "${FILESDIR}"/fontconfig.Gentoo.properties \ |
148 |
fontconfig.properties || die |
149 |
|
150 |
set_java_env |
151 |
java-vm_revdep-mask |
152 |
} |
153 |
|
154 |
pkg_postinst() { |
155 |
# Set as default VM if none exists |
156 |
java-vm-2_pkg_postinst |
157 |
|
158 |
elog "The epoll-based implementation of SelectorProvider is not selected by" |
159 |
elog "default." |
160 |
elog "Use java -Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.EPollSelectorProvider" |
161 |
} |