From: Petteri Räty Date: Thu, 19 Apr 2007 19:25:16 +0000 (+0000) Subject: Fix the location of src.zip to match Sun specified JDK directory layout. See bug... X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=42d37a53a9e44abdaf5e5e4b1220928d4c31a060;p=gentoo.git Fix the location of src.zip to match Sun specified JDK directory layout. See bug #2241 for more details. Package-Manager: portage-2.1.2.3 --- diff --git a/dev-java/sun-jdk/ChangeLog b/dev-java/sun-jdk/ChangeLog index 7a76d097e72e..a3fb80d2d0f1 100644 --- a/dev-java/sun-jdk/ChangeLog +++ b/dev-java/sun-jdk/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for dev-java/sun-jdk # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/ChangeLog,v 1.193 2007/04/19 18:54:25 betelgeuse Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/ChangeLog,v 1.194 2007/04/19 19:25:16 betelgeuse Exp $ + +*sun-jdk-1.6.0-r2 (19 Apr 2007) +*sun-jdk-1.5.0.11-r1 (19 Apr 2007) + + 19 Apr 2007; Petteri Räty + +sun-jdk-1.5.0.11-r1.ebuild, +sun-jdk-1.6.0-r2.ebuild: + Fix the location of src.zip to match Sun specified JDK directory layout. See + bug #2241 for more details. *sun-jdk-1.4.2.13-r2 (19 Apr 2007) diff --git a/dev-java/sun-jdk/Manifest b/dev-java/sun-jdk/Manifest index 637f89649424..dc78b399ac07 100644 --- a/dev-java/sun-jdk/Manifest +++ b/dev-java/sun-jdk/Manifest @@ -41,6 +41,10 @@ EBUILD sun-jdk-1.5.0.10.ebuild 4603 RMD160 53d5ec9888ab703a3e747dc5572eaccf5dfa9 MD5 aea4f559a38fe9c5d5b5f470386d779a sun-jdk-1.5.0.10.ebuild 4603 RMD160 53d5ec9888ab703a3e747dc5572eaccf5dfa9373 sun-jdk-1.5.0.10.ebuild 4603 SHA256 54f252579d64c2ae35b0601a4806c598932a93465949f07974cb819a2f5d49a8 sun-jdk-1.5.0.10.ebuild 4603 +EBUILD sun-jdk-1.5.0.11-r1.ebuild 5088 RMD160 31511bfbff9b3544a4bd5cd49a2aecd18321d99d SHA1 d0acc77bf7130d53f5bfd2c8fadfe56d29ac0ab3 SHA256 537c08f753046fa476b01c977bd2f10676727de17ae23205aa209062fa9ee21f +MD5 6f58fe4acada8e7446e4d6e55e20d1a6 sun-jdk-1.5.0.11-r1.ebuild 5088 +RMD160 31511bfbff9b3544a4bd5cd49a2aecd18321d99d sun-jdk-1.5.0.11-r1.ebuild 5088 +SHA256 537c08f753046fa476b01c977bd2f10676727de17ae23205aa209062fa9ee21f sun-jdk-1.5.0.11-r1.ebuild 5088 EBUILD sun-jdk-1.5.0.11.ebuild 4652 RMD160 e0bc27a59f528e63a4b8bd983e77e12f17250a03 SHA1 5a20495322a45e1e35fe281da2f94a74593a90f0 SHA256 352f8632dce237af85bfbfd8acca4ffc91e1ee9569f56d539940e43981ae5257 MD5 3d881ef509df7c965fa7b1aa28025d49 sun-jdk-1.5.0.11.ebuild 4652 RMD160 e0bc27a59f528e63a4b8bd983e77e12f17250a03 sun-jdk-1.5.0.11.ebuild 4652 @@ -49,10 +53,14 @@ EBUILD sun-jdk-1.6.0-r1.ebuild 4802 RMD160 51b3b35fdb07034968f5859c27cf672b937d4 MD5 82a5b3f47a0051ce2a06f287c437befd sun-jdk-1.6.0-r1.ebuild 4802 RMD160 51b3b35fdb07034968f5859c27cf672b937d4913 sun-jdk-1.6.0-r1.ebuild 4802 SHA256 422b0f6b1b7b6e36bfaf59998e9bede433b17b7f0dfa19c25486d431b28ee753 sun-jdk-1.6.0-r1.ebuild 4802 -MISC ChangeLog 37771 RMD160 ea5473a14d398fb972986e30353933a1384a5620 SHA1 14e4ea5ae7c3762cdcec03c54eed488154147cc2 SHA256 84aa2f1f97dcb5f5039d686a21768d7ea2fc14b2658f1b26cec8e60088c08cb7 -MD5 3423ea3a8664d0965d29add93169da15 ChangeLog 37771 -RMD160 ea5473a14d398fb972986e30353933a1384a5620 ChangeLog 37771 -SHA256 84aa2f1f97dcb5f5039d686a21768d7ea2fc14b2658f1b26cec8e60088c08cb7 ChangeLog 37771 +EBUILD sun-jdk-1.6.0-r2.ebuild 5252 RMD160 ccbfb62a918ac7d15571f52882f67f2e46869983 SHA1 3f160b2dfea3acdbdd136d5266127a8855e02a8c SHA256 8813bf7ef638c88a06c2cc0bb53aaf63223fea7e351399804bb4649f0ee87875 +MD5 db8862f92fb8cf93bbf50c163d764c2d sun-jdk-1.6.0-r2.ebuild 5252 +RMD160 ccbfb62a918ac7d15571f52882f67f2e46869983 sun-jdk-1.6.0-r2.ebuild 5252 +SHA256 8813bf7ef638c88a06c2cc0bb53aaf63223fea7e351399804bb4649f0ee87875 sun-jdk-1.6.0-r2.ebuild 5252 +MISC ChangeLog 38059 RMD160 c172488a8c9d274c4c0ea9188cc1c2655e712352 SHA1 1a51266c25e8c53f614798c03907b0703a0a7713 SHA256 d203ad4496a76fd37dc263ddc298e77c64f0f10118951a90c223bcbb746cc501 +MD5 ac52764143d2fa77d21f587e27984c3e ChangeLog 38059 +RMD160 c172488a8c9d274c4c0ea9188cc1c2655e712352 ChangeLog 38059 +SHA256 d203ad4496a76fd37dc263ddc298e77c64f0f10118951a90c223bcbb746cc501 ChangeLog 38059 MISC metadata.xml 237 RMD160 e2fa73e8b206c77bc262fd54691289bf05696668 SHA1 47fb9d11272aa2245df406c2156c2482e166a1c3 SHA256 3e53f0c8fb262a6751adb4c188e045e0be6de8739c02ec1af079cba5512e696d MD5 2f36c2b94fc9625e5c96d8e558f6ffba metadata.xml 237 RMD160 e2fa73e8b206c77bc262fd54691289bf05696668 metadata.xml 237 @@ -72,13 +80,19 @@ SHA256 f1f582a1bfca18c6375dc35e75bd199066d2361ffbf7e577a592afb4b351e34d files/di MD5 03a3655dea58f8ecfdf9b222a82c13d1 files/digest-sun-jdk-1.5.0.11 563 RMD160 baf28f80473123c2c382cda0d6e3908a455aec27 files/digest-sun-jdk-1.5.0.11 563 SHA256 d05c274f69904c60645c3639147b1741b3edeba807959724e8310ec9b1ea8b4b files/digest-sun-jdk-1.5.0.11 563 +MD5 03a3655dea58f8ecfdf9b222a82c13d1 files/digest-sun-jdk-1.5.0.11-r1 563 +RMD160 baf28f80473123c2c382cda0d6e3908a455aec27 files/digest-sun-jdk-1.5.0.11-r1 563 +SHA256 d05c274f69904c60645c3639147b1741b3edeba807959724e8310ec9b1ea8b4b files/digest-sun-jdk-1.5.0.11-r1 563 MD5 7cca7ffac6725b17472340fe8db317f6 files/digest-sun-jdk-1.6.0-r1 521 RMD160 7329a96c4622d1ea677604d88299616019b8f1d2 files/digest-sun-jdk-1.6.0-r1 521 SHA256 d5cebb938ce9873bffbdee08dfc2d4e46c0984e6d420221916b9acd94a0118c4 files/digest-sun-jdk-1.6.0-r1 521 +MD5 7cca7ffac6725b17472340fe8db317f6 files/digest-sun-jdk-1.6.0-r2 521 +RMD160 7329a96c4622d1ea677604d88299616019b8f1d2 files/digest-sun-jdk-1.6.0-r2 521 +SHA256 d5cebb938ce9873bffbdee08dfc2d4e46c0984e6d420221916b9acd94a0118c4 files/digest-sun-jdk-1.6.0-r2 521 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (GNU/Linux) -iD8DBQFGJ7rqcxLzpIGCsLQRAsCpAJ0S4tt972P4wifBvdQF5e44XiCN7gCglxUR -X/svvLACTXS9KiLtqSXbFh8= -=OgjO +iD8DBQFGJ8IlcxLzpIGCsLQRAptLAJ4lSaWlVPUy1snsmnujkczppkxVgQCff/n4 +2r6i7DM/A6oSXUMMnXjeBiM= +=m96D -----END PGP SIGNATURE----- diff --git a/dev-java/sun-jdk/files/digest-sun-jdk-1.5.0.11-r1 b/dev-java/sun-jdk/files/digest-sun-jdk-1.5.0.11-r1 new file mode 100644 index 000000000000..e6f312fcc9a8 --- /dev/null +++ b/dev-java/sun-jdk/files/digest-sun-jdk-1.5.0.11-r1 @@ -0,0 +1,6 @@ +MD5 ace2fc1b8c9d381b4e297c66c5a9caa7 jdk-1_5_0_11-dlj-linux-amd64.bin 43954177 +RMD160 bd865019d3fb2268800696207dba158ea2986a7f jdk-1_5_0_11-dlj-linux-amd64.bin 43954177 +SHA256 98df66902f42f764cb89b12a1502b976f2e5ddb2aa5000e14846b90cef74e0db jdk-1_5_0_11-dlj-linux-amd64.bin 43954177 +MD5 9dfdad6a166ed403513c0a5509d82e4b jdk-1_5_0_11-dlj-linux-i586.bin 49598681 +RMD160 74c5bd78450397006ea145580c3554d77b64a31d jdk-1_5_0_11-dlj-linux-i586.bin 49598681 +SHA256 da7c0217c1c6d47aad77a8b5ca0b30b01846c8090d5b1d5907862ef7122a1705 jdk-1_5_0_11-dlj-linux-i586.bin 49598681 diff --git a/dev-java/sun-jdk/files/digest-sun-jdk-1.6.0-r2 b/dev-java/sun-jdk/files/digest-sun-jdk-1.6.0-r2 new file mode 100644 index 000000000000..95693b0f544e --- /dev/null +++ b/dev-java/sun-jdk/files/digest-sun-jdk-1.6.0-r2 @@ -0,0 +1,6 @@ +MD5 2e0c075c27b09aed67f99475c3a19f83 jdk-6-dlj-linux-amd64.bin 56347832 +RMD160 b4d12bf55ea6baa465c227cff2d314d26de4876e jdk-6-dlj-linux-amd64.bin 56347832 +SHA256 f1f35d331809487bb922bbd3ca46de4abc3e45c482f94127f4ac8f3c8b3321c3 jdk-6-dlj-linux-amd64.bin 56347832 +MD5 f4481c4e064cec06a65d7751d9105c6d jdk-6-dlj-linux-i586.bin 62718862 +RMD160 4ff9f1f82b20f0dbd792e6765c02d87749e00aac jdk-6-dlj-linux-i586.bin 62718862 +SHA256 1c4f98edb6c1b379807d9dab61971c0271b2b4cf1f1be914cc85354744408467 jdk-6-dlj-linux-i586.bin 62718862 diff --git a/dev-java/sun-jdk/sun-jdk-1.5.0.11-r1.ebuild b/dev-java/sun-jdk/sun-jdk-1.5.0.11-r1.ebuild new file mode 100644 index 000000000000..46c125f456c5 --- /dev/null +++ b/dev-java/sun-jdk/sun-jdk-1.5.0.11-r1.ebuild @@ -0,0 +1,163 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.5.0.11-r1.ebuild,v 1.1 2007/04/19 19:25:16 betelgeuse Exp $ + +inherit java-vm-2 eutils pax-utils + +MY_PVL=${PV%.*}_${PV##*.} +MY_PVA=${PV//./_} +S="${WORKDIR}/jdk${MY_PVL}" + +X86_AT="jdk-${MY_PVA}-dlj-linux-i586.bin" +AMD64_AT="jdk-${MY_PVA}-dlj-linux-amd64.bin" + +DESCRIPTION="Sun's J2SE Development Kit, version ${PV}" +HOMEPAGE="http://java.sun.com/j2se/1.5.0/" +SRC_URI="x86? ( http://download.java.net/dlj/binaries/${X86_AT} ) + amd64? ( http://download.java.net/dlj/binaries/${AMD64_AT} )" +SLOT="1.5" +LICENSE="dlj-1.1" +KEYWORDS="~amd64 ~x86" +RESTRICT="nostrip" +IUSE="X alsa doc examples jce nsplugin" + +QA_TEXTRELS_x86="opt/${P}/jre/lib/i386/motif21/libmawt.so opt/${P}/jre/lib/i386/libdeploy.so" + +DEPEND=" + doc? ( =dev-java/java-sdk-docs-1.5.0* ) + jce? ( =dev-java/sun-jce-bin-1.5.0* )" + +RDEPEND=" + sys-libs/glibc + alsa? ( media-libs/alsa-lib ) + doc? ( =dev-java/java-sdk-docs-1.5.0* ) + X? ( + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXi + x11-libs/libXp + x11-libs/libXt + )" + +JAVA_PROVIDE="jdbc-stdext jdbc-rowset" + +PACKED_JARS="lib/tools.jar jre/lib/rt.jar jre/lib/jsse.jar jre/lib/charsets.jar jre/lib/ext/localedata.jar jre/lib/plugin.jar jre/lib/javaws.jar jre/lib/deploy.jar" + +src_unpack() { + if [ ! -r "${DISTDIR}/${A}" ]; then + die "cannot read ${A}. Please check the permission and try again." + fi + + sh "${DISTDIR}/${A}" --accept-license --unpack || die "Failed to unpack" +} + +src_install() { + local dirs="bin include jre lib man" + + # Set PaX markings on all JDK/JRE executables to allow code-generation on + # the heap by the JIT compiler. + pax-mark m $(list-paxables ${S}{,/jre}/bin/*) + + dodir /opt/${P} + + for i in $dirs ; do + cp -pPR $i ${D}/opt/${P}/ || die "failed to copy" + done + dodoc COPYRIGHT README.html || die + dohtml README.html || die + dodir /opt/${P}/share/ + + cp -pP src.zip "${D}/opt/${P}/" || die + dosym "/opt/${P}/src.zip" /opt/${P}/share || die + + if use examples; then + cp -pPR demo ${D}/opt/${P}/share/ + if ( use x86 || use amd64 ); then + cp -pPR sample ${D}/opt/${P}/share/ + fi + fi + + if use jce; then + cd ${D}/opt/${P}/jre/lib/security || die + dodir /opt/${P}/jre/lib/security/strong-jce + mv ${D}/opt/${P}/jre/lib/security/US_export_policy.jar \ + ${D}/opt/${P}/jre/lib/security/strong-jce || die + mv ${D}/opt/${P}/jre/lib/security/local_policy.jar \ + ${D}/opt/${P}/jre/lib/security/strong-jce || die + local jcedir="/opt/sun-jce-bin-1.5.0/jre/lib/security/unlimited-jce/" + dosym ${jcedir}/US_export_policy.jar \ + /opt/${P}/jre/lib/security/ || die + dosym ${jcedir}/local_policy.jar \ + /opt/${P}/jre/lib/security/ || die + fi + + if use nsplugin; then + local plugin_dir="ns7-gcc29" + if has_version '>=sys-devel/gcc-3' ; then + plugin_dir="ns7" + fi + + if use x86 ; then + install_mozilla_plugin /opt/${P}/jre/plugin/i386/$plugin_dir/libjavaplugin_oji.so + else + eerror "No plugin available for amd64 arch" + fi + fi + + # create dir for system preferences + dodir /opt/${P}/jre/.systemPrefs + # Create files used as storage for system preferences. + touch ${D}/opt/${P}/jre/.systemPrefs/.system.lock + chmod 644 ${D}/opt/${P}/jre/.systemPrefs/.system.lock + touch ${D}/opt/${P}/jre/.systemPrefs/.systemRootModFile + chmod 644 ${D}/opt/${P}/jre/.systemPrefs/.systemRootModFile + + # install control panel for Gnome/KDE + if [[ -f ${D}/opt/${P}/jre/plugin/desktop/sun_java.desktop ]]; then + sed -e "s/INSTALL_DIR\/JRE_NAME_VERSION/\/opt\/${P}\/jre/" \ + -e "s/\(Name=Java\)/\1 Control Panel ${SLOT}/" \ + ${D}/opt/${P}/jre/plugin/desktop/sun_java.desktop > \ + ${T}/sun_java-${SLOT}.desktop \ + || die "Failed to sed .desktop file" + + domenu ${T}/sun_java-${SLOT}.desktop + fi + + # bug #56444 + insinto /opt/${P}/jre/lib/ + newins "${FILESDIR}"/fontconfig.Gentoo.properties fontconfig.properties + + set_java_env +} + +pkg_postinst() { + # Set as default VM if none exists + java-vm-2_pkg_postinst + + if ! use X; then + local xwarn="virtual/x11 and/or" + fi + + echo + ewarn "Some parts of Sun's JDK require ${xwarn} virtual/lpr to be installed." + ewarn "Be careful which Java libraries you attempt to use." + + echo + elog " Be careful: ${P}'s Java compiler uses" + elog " '-source 1.5' as default. Some keywords such as 'enum'" + elog " are not valid identifiers any more in that mode," + elog " which can cause incompatibility with certain sources." + + echo + elog "Beginning with 1.5.0.10 the hotspot vm can use epoll" + elog "The epoll-based implementation of SelectorProvider is not selected by" + elog "default." + elog "Use java -Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.EPollSelectorProvider" + elog "" + elog "Starting with 1.5.0.11-r1 the src.zip is installed to the standard" + elog "location. It is still symlinked to the old location (/opt/${P}/share)" + elog "but it will be removed if there will be 1.5.0.12." + elog "See https://bugs.gentoo.org/show_bug.cgi?id=2241 and" + elog "http://java.sun.com/j2se/1.5.0/docs/tooldocs/linux/jdkfiles.html" + elog "for more details." +} diff --git a/dev-java/sun-jdk/sun-jdk-1.6.0-r2.ebuild b/dev-java/sun-jdk/sun-jdk-1.6.0-r2.ebuild new file mode 100644 index 000000000000..4bc2dc837a71 --- /dev/null +++ b/dev-java/sun-jdk/sun-jdk-1.6.0-r2.ebuild @@ -0,0 +1,165 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.6.0-r2.ebuild,v 1.1 2007/04/19 19:25:16 betelgeuse Exp $ + +inherit java-vm-2 eutils pax-utils + +#MY_PVA=${PV//./_} +MY_PVA=6 +S="${WORKDIR}/jdk${PV}" + +X86_AT="jdk-${MY_PVA}-dlj-linux-i586.bin" +AMD64_AT="jdk-${MY_PVA}-dlj-linux-amd64.bin" + +DESCRIPTION="Sun's J2SE Development Kit, version ${PV}" +HOMEPAGE="http://java.sun.com/javase/6/" +SRC_URI="x86? ( http://download.java.net/dlj/binaries/${X86_AT} ) + amd64? ( http://download.java.net/dlj/binaries/${AMD64_AT} )" +SLOT="1.6" +LICENSE="dlj-1.1" +KEYWORDS="~amd64 ~x86" +RESTRICT="nostrip" +IUSE="X alsa doc examples jce nsplugin" + +QA_TEXTRELS_x86="opt/${P}/jre/lib/i386/motif21/libmawt.so + opt/${P}/jre/lib/i386/libdeploy.so + opt/${P}/jre/lib/i386/client/libjvm.so + opt/${P}/jre/lib/i386/server/libjvm.so" + +DEPEND=" + doc? ( =dev-java/java-sdk-docs-1.6.0* ) + jce? ( =dev-java/sun-jce-bin-1.6.0* )" + +RDEPEND=" + ${DEPEND} + x86? ( =virtual/libstdc++-3.3 ) + sys-libs/glibc + alsa? ( media-libs/alsa-lib ) + X? ( + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXi + x11-libs/libXp + x11-libs/libXt + x11-libs/libXtst + )" + +JAVA_PROVIDE="jdbc-stdext jdbc-rowset" + +PACKED_JARS="lib/tools.jar jre/lib/rt.jar jre/lib/jsse.jar jre/lib/charsets.jar jre/lib/ext/localedata.jar jre/lib/plugin.jar jre/lib/javaws.jar jre/lib/deploy.jar" + +src_unpack() { + if [ ! -r ${DISTDIR}/${A} ]; then + die "cannot read ${A}. Please check the permission and try again." + fi + + sh ${DISTDIR}/${A} --accept-license --unpack || die "Failed to unpack" +} + +src_install() { + local dirs="bin include jre lib man" + + # Set PaX markings on all JDK/JRE executables to allow code-generation on + # the heap by the JIT compiler. + pax-mark m $(list-paxables ${S}{,/jre}/bin/*) + + dodir /opt/${P} + + for i in $dirs ; do + cp -pPR $i ${D}/opt/${P}/ || die "failed to copy" + done + dodoc COPYRIGHT README.html + dohtml README.html + dodir /opt/${P}/share/ + + cp -pP src.zip "${D}/opt/${P}/" || die + dosym /opt/${P}/src.zip /opt/${P}/share/src.zip || die + + if use examples; then + cp -pPR demo ${D}/opt/${P}/share/ + if ( use x86 || use amd64 ); then + cp -pPR sample ${D}/opt/${P}/share/ + fi + fi + + if use jce; then + cd ${D}/opt/${P}/jre/lib/security + dodir /opt/${P}/jre/lib/security/strong-jce + mv ${D}/opt/${P}/jre/lib/security/US_export_policy.jar ${D}/opt/${P}/jre/lib/security/strong-jce + mv ${D}/opt/${P}/jre/lib/security/local_policy.jar ${D}/opt/${P}/jre/lib/security/strong-jce + dosym /opt/sun-jce-bin-1.6.0/jre/lib/security/unlimited-jce/US_export_policy.jar /opt/${P}/jre/lib/security/ + dosym /opt/sun-jce-bin-1.6.0/jre/lib/security/unlimited-jce/local_policy.jar /opt/${P}/jre/lib/security/ + fi + + if use nsplugin; then + local plugin_dir="ns7-gcc29" + if has_version '>=sys-devel/gcc-3' ; then + plugin_dir="ns7" + fi + + if use x86 ; then + install_mozilla_plugin /opt/${P}/jre/plugin/i386/$plugin_dir/libjavaplugin_oji.so + else + eerror "No plugin available for amd64 arch" + fi + fi + + # create dir for system preferences + dodir /opt/${P}/jre/.systemPrefs + # Create files used as storage for system preferences. + touch ${D}/opt/${P}/jre/.systemPrefs/.system.lock + chmod 644 ${D}/opt/${P}/jre/.systemPrefs/.system.lock + touch ${D}/opt/${P}/jre/.systemPrefs/.systemRootModFile + chmod 644 ${D}/opt/${P}/jre/.systemPrefs/.systemRootModFile + + if [[ -f ${D}/opt/${P}/jre/plugin/desktop/sun_java.desktop ]]; then + # install control panel for Gnome/KDE + # The jre also installs these so make sure that they do not have the same + # Name + sed -e "s/\(Name=\)Java/\1 Java Control Panel for Sun JDK ${SLOT}/" \ + -e "s#Exec=.*#Exec=/opt/${P}/jre/bin/ControlPanel#" \ + -e "s#Icon=.*#Icon=/opt/${P}/jre/plugin/desktop/sun_java.png#" \ + ${D}/opt/${P}/jre/plugin/desktop/sun_java.desktop > \ + ${T}/sun_jdk-${SLOT}.desktop + + domenu ${T}/sun_jdk-${SLOT}.desktop + fi + + # bug #56444 + insinto /opt/${P}/jre/lib/ + newins "${FILESDIR}"/fontconfig.Gentoo.properties fontconfig.properties + + set_java_env +} + +pkg_postinst() { + # Set as default VM if none exists + java-vm-2_pkg_postinst + + if ! use X; then + local xwarn="virtual/x11 and/or" + fi + + echo + ewarn "Some parts of Sun's JDK require ${xwarn} virtual/lpr to be installed." + ewarn "Be careful which Java libraries you attempt to use." + + echo + elog " Be careful: ${P}'s Java compiler uses" + elog " '-source 1.6' as default. Some keywords such as 'enum'" + elog " are not valid identifiers any more in that mode," + elog " which can cause incompatibility with certain sources." + + echo + elog "Beginning with 1.5.0.10 the hotspot vm can use epoll" + elog "The epoll-based implementation of SelectorProvider is not selected by" + elog "default." + elog "Use java -Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.EPollSelectorProvider" + elog "" + elog "Starting with 1.6.0-r2 the src.zip is installed to the standard" + elog "location. It is still symlinked to the old location (/opt/${P}/share)" + elog "but the symlink will be removed with the next version bump." + elog "See https://bugs.gentoo.org/show_bug.cgi?id=2241 and" + elog "http://java.sun.com/javase/6/docs/technotes/tools/linux/jdkfiles.html" + elog "for more details." +}