annotate dev-java/sun-jdk/sun-jdk-1.6.0.18.ebuild @ 201:148a6b1dbe47

bump rabbitmq to 1.7.1
author holger
date Sat, 30 Jan 2010 02:44:16 +0100 (2010-01-30)
parents 215927006721
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
198
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
1 # Copyright 1999-2009 Gentoo Foundation
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
2 # Distributed under the terms of the GNU General Public License v2
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.6.0.17.ebuild,v 1.3 2009/11/05 21:27:46 maekke Exp $
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
4
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
5 inherit versionator java-vm-2 eutils pax-utils
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
6
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
7 UPDATE="$(get_version_component_range 4)"
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
8 UPDATE="${UPDATE#0}"
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
9 MY_PV="$(get_version_component_range 2)u${UPDATE}"
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
10 X86_AT="jdk-${MY_PV}-dlj-linux-i586.bin"
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
11 AMD64_AT="jdk-${MY_PV}-dlj-linux-amd64.bin"
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
12
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
13 DESCRIPTION="Sun's Java SE Development Kit"
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
14 HOMEPAGE="http://java.sun.com/javase/6/"
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
15 URL_BASE="http://download.java.net/dlj/binaries"
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
16 SRC_URI="x86? ( ${URL_BASE}/${X86_AT} )
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
17 amd64? ( ${URL_BASE}/${AMD64_AT} )"
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
18 SLOT="1.6"
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
19 LICENSE="dlj-1.1"
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
20 KEYWORDS="amd64 x86"
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
21 RESTRICT="strip"
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
22 IUSE="X alsa derby doc examples jce nsplugin odbc"
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
23
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
24 QA_TEXTRELS_x86="opt/${P}/jre/lib/i386/motif21/libmawt.so
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
25 opt/${P}/jre/lib/i386/libdeploy.so
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
26 opt/${P}/jre/lib/i386/client/libjvm.so
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
27 opt/${P}/jre/lib/i386/server/libjvm.so"
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
28 QA_DT_HASH="opt/${P}/.*"
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
29
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
30 DEPEND="jce? ( =dev-java/sun-jce-bin-1.6.0* )"
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
31 RDEPEND="doc? ( =dev-java/java-sdk-docs-1.6.0* )
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
32 sys-libs/glibc
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
33 alsa? ( media-libs/alsa-lib )
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
34 X? (
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
35 x11-libs/libXext
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
36 x11-libs/libXi
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
37 x11-libs/libXp
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
38 x11-libs/libXtst
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
39 amd64? ( x11-libs/libXt )
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
40 x11-libs/libX11
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
41 )
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
42 odbc? ( dev-db/unixODBC )"
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
43
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
44 JAVA_PROVIDE="jdbc-stdext jdbc-rowset"
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
45
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
46 S="${WORKDIR}/jdk$(replace_version_separator 3 _)"
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
47
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
48 src_unpack() {
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
49 sh "${DISTDIR}"/${A} --accept-license --unpack || die "Failed to unpack"
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
50 }
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
51
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
52 src_compile() {
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
53 # Set PaX markings on all JDK/JRE executables to allow code-generation on
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
54 # the heap by the JIT compiler. This needs to be done before CDS - #215225
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
55 pax-mark m $(list-paxables "${S}"{,/jre}/bin/*)
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
56
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
57 # see bug #207282
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
58 if use x86; then
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
59 einfo "Creating the Class Data Sharing archives"
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
60 "${S}"/bin/java -client -Xshare:dump || die
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
61 "${S}"/bin/java -server -Xshare:dump || die
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
62 fi
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
63 }
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
64
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
65 src_install() {
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
66 local dirs="bin include jre lib man"
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
67
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
68 use derby && dirs="${dirs} db"
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
69
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
70 dodir /opt/${P}
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
71
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
72 cp -pPR $dirs "${D}/opt/${P}/" || die "failed to copy"
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
73 dodoc COPYRIGHT || die
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
74 dohtml README.html || die
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
75
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
76 cp -pP src.zip "${D}/opt/${P}/" || die
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
77
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
78 if use examples; then
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
79 cp -pPR demo sample "${D}/opt/${P}/" || die
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
80 fi
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
81
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
82 if use jce; then
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
83 cd "${D}/opt/${P}/jre/lib/security"
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
84 dodir /opt/${P}/jre/lib/security/strong-jce
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
85 mv "${D}"/opt/${P}/jre/lib/security/US_export_policy.jar \
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
86 "${D}"/opt/${P}/jre/lib/security/strong-jce || die
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
87 mv "${D}"/opt/${P}/jre/lib/security/local_policy.jar \
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
88 "${D}"/opt/${P}/jre/lib/security/strong-jce || die
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
89 dosym /opt/sun-jce-bin-1.6.0/jre/lib/security/unlimited-jce/US_export_policy.jar /opt/${P}/jre/lib/security/
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
90 dosym /opt/sun-jce-bin-1.6.0/jre/lib/security/unlimited-jce/local_policy.jar /opt/${P}/jre/lib/security/
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
91 fi
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
92
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
93 if use nsplugin; then
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
94 local plugin_dir="ns7-gcc29"
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
95 if has_version '>=sys-devel/gcc-3' ; then
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
96 plugin_dir="ns7"
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
97 fi
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
98
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
99 if use x86 ; then
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
100 install_mozilla_plugin /opt/${P}/jre/plugin/i386/$plugin_dir/libjavaplugin_oji.so
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
101 install_mozilla_plugin /opt/${P}/jre/lib/i386/libnpjp2.so plugin2
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
102 else
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
103 install_mozilla_plugin /opt/${P}/jre/lib/amd64/libnpjp2.so
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
104 fi
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
105 fi
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
106
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
107 # create dir for system preferences
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
108 dodir /opt/${P}/jre/.systemPrefs
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
109 # Create files used as storage for system preferences.
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
110 touch "${D}"/opt/${P}/jre/.systemPrefs/.system.lock
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
111 chmod 644 "${D}"/opt/${P}/jre/.systemPrefs/.system.lock
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
112 touch "${D}"/opt/${P}/jre/.systemPrefs/.systemRootModFile
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
113 chmod 644 "${D}"/opt/${P}/jre/.systemPrefs/.systemRootModFile
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
114
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
115 if [[ -f "${D}"/opt/${P}/jre/plugin/desktop/sun_java.desktop ]]; then
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
116 # install control panel for Gnome/KDE
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
117 # The jre also installs these so make sure that they do not have the same
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
118 # Name
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
119 sed -e "s/\(Name=\)Java/\1 Java Control Panel for Sun JDK ${SLOT}/" \
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
120 -e "s#Exec=.*#Exec=/opt/${P}/jre/bin/ControlPanel#" \
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
121 -e "s#Icon=.*#Icon=/opt/${P}/jre/plugin/desktop/sun_java.png#" \
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
122 "${D}"/opt/${P}/jre/plugin/desktop/sun_java.desktop > \
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
123 "${T}"/sun_jdk-${SLOT}.desktop
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
124
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
125 domenu "${T}"/sun_jdk-${SLOT}.desktop
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
126 fi
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
127
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
128 # bug #56444
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
129 insinto /opt/${P}/jre/lib/
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
130 newins "${FILESDIR}"/fontconfig.Gentoo.properties fontconfig.properties
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
131
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
132 set_java_env
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
133 java-vm_revdep-mask
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
134 }
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
135
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
136 pkg_postinst() {
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
137 # Set as default VM if none exists
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
138 java-vm-2_pkg_postinst
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
139
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
140 if use x86 && use nsplugin; then
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
141 elog
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
142 elog "Two variants of the nsplugin are available via eselect java-nsplugin:"
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
143 elog "${VMHANDLE} and ${VMHANDLE}-plugin2 (the Next-Generation Plug-In) "
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
144 ewarn "Note that the ${VMHANDLE}-plugin2 works only in Firefox 3!"
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
145 elog "For more info see https://jdk6.dev.java.net/plugin2/"
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
146 elog
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
147 fi
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
148
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
149 if use amd64 && use nsplugin; then
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
150 elog
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
151 elog "This version finally brings a browser plugin for amd64"
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
152 elog "It is the so-called Next-Generation Plug-In (plugin2)"
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
153 elog "Use eselect java-nsplugin to select it (${VMHANDLE})."
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
154 ewarn "Note that it works only in Firefox 3 or newer browsers!"
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
155 elog "For more info see https://jdk6.dev.java.net/plugin2/"
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
156 elog
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
157 fi
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
158
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
159 elog "Please reinstall eclipse-sdk if you have it installed and want"
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
160 elog "workaround for bug #215150."
215927006721 bump JDK to 1.6.0.18
holger
parents:
diff changeset
161 }