diff options
author | Adrian Almenar <strider@gentoo.org> | 2003-12-09 04:22:29 +0000 |
---|---|---|
committer | Adrian Almenar <strider@gentoo.org> | 2003-12-09 04:22:29 +0000 |
commit | d4eeceada4ee0426b07d9984aacd5ecab8390dcc (patch) | |
tree | 28d5f2714e2f262a7b3b555357690055174c68f0 /dev-java | |
parent | Updated Homepages for ebuilds, Version Bump of JDK 1.4.1.05 to 1.4.1.06, and ... (diff) | |
download | gentoo-2-d4eeceada4ee0426b07d9984aacd5ecab8390dcc.tar.gz gentoo-2-d4eeceada4ee0426b07d9984aacd5ecab8390dcc.tar.bz2 gentoo-2-d4eeceada4ee0426b07d9984aacd5ecab8390dcc.zip |
Updated Homepages for ebuilds, Version Bump of JDK 1.4.1.05 to 1.4.1.06, and 1.4.2.02 to 1.4.2.03.
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/sun-jdk/ChangeLog | 6 | ||||
-rw-r--r-- | dev-java/sun-jdk/Manifest | 16 | ||||
-rw-r--r-- | dev-java/sun-jdk/files/digest-sun-jdk-1.4.1.06 | 1 | ||||
-rw-r--r-- | dev-java/sun-jdk/files/digest-sun-jdk-1.4.2.03 | 1 | ||||
-rw-r--r-- | dev-java/sun-jdk/files/sun-jdk-1.3.1.09 | 2 | ||||
-rw-r--r-- | dev-java/sun-jdk/files/sun-jdk-1.4.1.05 | 1 | ||||
-rw-r--r-- | dev-java/sun-jdk/files/sun-jdk-1.4.1.06 | 13 | ||||
-rw-r--r-- | dev-java/sun-jdk/files/sun-jdk-1.4.2.03 | 13 | ||||
-rw-r--r-- | dev-java/sun-jdk/sun-jdk-1.4.1.05.ebuild | 23 | ||||
-rw-r--r-- | dev-java/sun-jdk/sun-jdk-1.4.1.06.ebuild | 112 | ||||
-rw-r--r-- | dev-java/sun-jdk/sun-jdk-1.4.2.02.ebuild | 6 | ||||
-rw-r--r-- | dev-java/sun-jdk/sun-jdk-1.4.2.03.ebuild | 162 |
12 files changed, 336 insertions, 20 deletions
diff --git a/dev-java/sun-jdk/ChangeLog b/dev-java/sun-jdk/ChangeLog index b7c3b4e6db1d..5432677dd05e 100644 --- a/dev-java/sun-jdk/ChangeLog +++ b/dev-java/sun-jdk/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-java/sun-jdk # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/ChangeLog,v 1.59 2003/12/07 17:41:49 strider Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/ChangeLog,v 1.60 2003/12/09 04:22:22 strider Exp $ + + 09 Dec 2003; Adrian Almenar <strider@gentoo.org> sun-jdk-1.4.1.06.ebuild, + sun-jdk-1.4.2.03.ebuild, files/sun-jdk-1.4.2.03, files/sun-jdk-1.4.1.06: + Version Bump for sun-jdk-1.4.1.06 and sun-jdk-1.4.2.03. 07 Dec 2003; Adrian Almenar <strider@gentoo.org> sun-jdk-1.3.1.09.ebuild, sun-jdk-1.4.1.05.ebuild, sun-jdk-1.4.2.01.ebuild, sun-jdk-1.4.2.02.ebuild, diff --git a/dev-java/sun-jdk/Manifest b/dev-java/sun-jdk/Manifest index 9675a3e20c8f..38e2131cd839 100644 --- a/dev-java/sun-jdk/Manifest +++ b/dev-java/sun-jdk/Manifest @@ -1,13 +1,15 @@ MD5 760e21df2610a2e687b00ac28b55d1dd sun-jdk-1.3.1.09.ebuild 3481 -MD5 64480bfeb37a2eea8f1dd54230b55068 sun-jdk-1.4.2.03.ebuild 4904 -MD5 e7fc40c5ec2dda4796cd7072b55ca8f2 sun-jdk-1.4.1.06.ebuild 3227 -MD5 2f90bff21c016b4d03353d4561f7e2c4 ChangeLog 13388 -MD5 1091fb7ef3b91e6da346be3d1ad3cc32 sun-jdk-1.4.2.02.ebuild 4906 +MD5 439c0159a4ea3ffa2b744f101dda9e46 sun-jdk-1.4.2.03.ebuild 5008 +MD5 ed71c42804ea3d749865b113a7f5db75 sun-jdk-1.4.1.06.ebuild 3330 +MD5 6a9a5137160b64f4fa40f6c364e17c1d ChangeLog 13598 +MD5 9f23bb95d5f9f94ad16dbc336f4adf8e sun-jdk-1.4.2.02.ebuild 5010 MD5 3624458aaf058b4b4b2cf00e096c5c84 metadata.xml 382 -MD5 014e42f009d9c900ccdd2522d0a2e576 sun-jdk-1.4.1.05.ebuild 3333 -MD5 20129e994188aa6a6f1b4690cbb91ca9 files/sun-jdk-1.3.1.09 648 -MD5 440220b7275afac3cce9a222d39a2fde files/sun-jdk-1.4.1.05 581 +MD5 f88d1ccfcc8bbfecc893cda23faf0e10 sun-jdk-1.4.1.05.ebuild 3332 +MD5 cd97114b20d221cee190400af253f8a3 files/sun-jdk-1.3.1.09 488 +MD5 23ca5a0105772f176633ba85c292ef97 files/sun-jdk-1.4.1.05 465 +MD5 23ca5a0105772f176633ba85c292ef97 files/sun-jdk-1.4.1.06 465 MD5 ccd9bd0dbf7649c2e5681e9cda01f99c files/sun-jdk-1.4.2.02 519 +MD5 ccd9bd0dbf7649c2e5681e9cda01f99c files/sun-jdk-1.4.2.03 519 MD5 951b3321a6c971e8af7c5b12816f3db0 files/digest-sun-jdk-1.3.1.09 76 MD5 c79470c52b4a6023145cc947d213b59b files/digest-sun-jdk-1.4.1.05 76 MD5 758406756bec272a9edfb8f09979c1f9 files/digest-sun-jdk-1.4.1.06 76 diff --git a/dev-java/sun-jdk/files/digest-sun-jdk-1.4.1.06 b/dev-java/sun-jdk/files/digest-sun-jdk-1.4.1.06 new file mode 100644 index 000000000000..4c742d5c8fe1 --- /dev/null +++ b/dev-java/sun-jdk/files/digest-sun-jdk-1.4.1.06 @@ -0,0 +1 @@ +MD5 26bd43452ff187c09e8ea5b407942d35 j2sdk-1_4_1_06-linux-i586.bin 41630408 diff --git a/dev-java/sun-jdk/files/digest-sun-jdk-1.4.2.03 b/dev-java/sun-jdk/files/digest-sun-jdk-1.4.2.03 new file mode 100644 index 000000000000..276ea2219800 --- /dev/null +++ b/dev-java/sun-jdk/files/digest-sun-jdk-1.4.2.03 @@ -0,0 +1 @@ +MD5 859aa6750161477acec83b7bb5d9998d j2sdk-1_4_2_03-linux-i586.bin 35818038 diff --git a/dev-java/sun-jdk/files/sun-jdk-1.3.1.09 b/dev-java/sun-jdk/files/sun-jdk-1.3.1.09 index e7b1efe4bf2e..7aa3f5ad48e7 100644 --- a/dev-java/sun-jdk/files/sun-jdk-1.3.1.09 +++ b/dev-java/sun-jdk/files/sun-jdk-1.3.1.09 @@ -1,8 +1,6 @@ # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author: Karl Trygve Kalleberg -# Maintainer: Tools Team <tools@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/files/sun-jdk-1.3.1.09,v 1.2 2003/08/15 05:56:19 strider Exp $ VERSION="Sun JDK @PV@" JAVA_HOME=/opt/@P@ diff --git a/dev-java/sun-jdk/files/sun-jdk-1.4.1.05 b/dev-java/sun-jdk/files/sun-jdk-1.4.1.05 index 24d04ad29858..d4257ac24aa5 100644 --- a/dev-java/sun-jdk/files/sun-jdk-1.4.1.05 +++ b/dev-java/sun-jdk/files/sun-jdk-1.4.1.05 @@ -1,7 +1,6 @@ # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author: Karl Trygve Kalleberg -# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/files/sun-jdk-1.4.1.05,v 1.1 2003/09/12 04:40:28 strider Exp $ VERSION="Sun JDK @PV@" JAVA_HOME=/opt/@P@ diff --git a/dev-java/sun-jdk/files/sun-jdk-1.4.1.06 b/dev-java/sun-jdk/files/sun-jdk-1.4.1.06 new file mode 100644 index 000000000000..d4257ac24aa5 --- /dev/null +++ b/dev-java/sun-jdk/files/sun-jdk-1.4.1.06 @@ -0,0 +1,13 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author: Karl Trygve Kalleberg + +VERSION="Sun JDK @PV@" +JAVA_HOME=/opt/@P@ +CLASSPATH=.:/opt/@P@/jre/lib:/opt/@P@/lib/tools.jar:/opt/@P@/jre/lib/rt.jar +JDK_HOME=/opt/@P@ +JAVAC=${JAVA_HOME}/bin/javac +ADDPATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin" +ADDLDPATH="/opt/@P@/jre/lib" + +ENV_VARS="JAVA_HOME CLASSPATH JDK_HOME JAVAC ADDPATH ADDLDPATH" diff --git a/dev-java/sun-jdk/files/sun-jdk-1.4.2.03 b/dev-java/sun-jdk/files/sun-jdk-1.4.2.03 new file mode 100644 index 000000000000..ea03125e02f4 --- /dev/null +++ b/dev-java/sun-jdk/files/sun-jdk-1.4.2.03 @@ -0,0 +1,13 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author: Karl Trygve Kalleberg + +VERSION="Sun JDK @PV@" +JAVA_HOME=/opt/@P@ +CLASSPATH=.:/opt/@P@/jre/lib:/opt/@P@/lib/tools.jar:/opt/@P@/jre/lib/rt.jar +JDK_HOME=/opt/@P@ +JAVAC=${JAVA_HOME}/bin/javac +ADDPATH="${JAVA_HOME}/bin:${JAVA_HOME}/jre/bin:${JAVA_HOME}/jre/javaws" +ADDLDPATH="/opt/@P@/jre/lib" +MANPATH="/opt/@P@/man" +ENV_VARS="JAVA_HOME CLASSPATH JDK_HOME JAVAC ADDPATH ADDLDPATH MANPATH" diff --git a/dev-java/sun-jdk/sun-jdk-1.4.1.05.ebuild b/dev-java/sun-jdk/sun-jdk-1.4.1.05.ebuild index eceeb1be70fc..3d45462dd395 100644 --- a/dev-java/sun-jdk/sun-jdk-1.4.1.05.ebuild +++ b/dev-java/sun-jdk/sun-jdk-1.4.1.05.ebuild @@ -1,15 +1,15 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.4.1.05.ebuild,v 1.4 2003/12/09 00:21:30 strider Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.4.1.05.ebuild,v 1.5 2003/12/09 04:22:22 strider Exp $ IUSE="doc" inherit java nsplugins At="j2sdk-1_4_1_05-linux-i586.bin" -S="${WORKDIR}/j2sdk1.4.1_04" -DESCRIPTION="Sun's J2SE Development Kit, version 1.4.1_04" -HOMEPAGE="http://java.sun.com/j2se/1.4.1/download.html" +S="${WORKDIR}/j2sdk1.4.1_05" +DESCRIPTION="Sun's J2SE Development Kit, version 1.4.1_05" +HOMEPAGE="http://java.sun.com/products/archive/index.html" SRC_URI=${At} RESTRICT="fetch" SLOT="1.4" @@ -37,6 +37,17 @@ src_unpack() { eerror "cannot read ${At}. Please check the permission and try again." die fi + + #Thanks to Douglas Pollock <douglas.pollock@magma.ca> for this + #comment found on the sun-jdk 1.2.2 ebuild that he sent. + ewarn "WARNING:" + ewarn "Sun's JDK 1.4.1 series has begun the Sun End of Life (EOL)" + ewarn "process. The EOL transition period is from July 15, 2003 " + ewarn "until January 15, 2004. Sun is advising users to move to" + ewarn "more recent JDK versions." + echo + sleep 8 + #Search for the ELF Header testExp=`echo -e "\177\105\114\106\001\001\001"` startAt=`grep -aonm 1 ${testExp} ${DISTDIR}/${At} | cut -d: -f1` @@ -84,14 +95,14 @@ pkg_postinst () { einfo "********************************************************" echo - einfo "******************************************************" + einfo "********************************************************" einfo " After installing ${P} this" einfo " was set as the default JVM to run." einfo " When finished please run the following so your" einfo " enviroment gets updated." eerror " /usr/sbin/env-update && source /etc/profile" einfo " Or use java-config program to set your preferred VM" - einfo "******************************************************" + einfo "********************************************************" echo -ne "\a" ; sleep 0.1 &>/dev/null ; sleep 0,1 &>/dev/null echo -ne "\a" ; sleep 1 diff --git a/dev-java/sun-jdk/sun-jdk-1.4.1.06.ebuild b/dev-java/sun-jdk/sun-jdk-1.4.1.06.ebuild new file mode 100644 index 000000000000..0e15c336630d --- /dev/null +++ b/dev-java/sun-jdk/sun-jdk-1.4.1.06.ebuild @@ -0,0 +1,112 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.4.1.06.ebuild,v 1.1 2003/12/09 04:22:22 strider Exp $ + +IUSE="doc" + +inherit java nsplugins + +At="j2sdk-1_4_1_06-linux-i586.bin" +S="${WORKDIR}/j2sdk1.4.1_06" +DESCRIPTION="Sun's J2SE Development Kit, version 1.4.1_06" +HOMEPAGE="http://java.sun.com/j2se/1.4.1/download.html" +SRC_URI=${At} +RESTRICT="fetch" +SLOT="1.4" +LICENSE="sun-bcla-java-vm" +KEYWORDS="~x86 -ppc -sparc -alpha -mips -hppa -arm" + +DEPEND=">=dev-java/java-config-1.1.5 + doc? ( =dev-java/java-sdk-docs-1.4.1* )" + +RDEPEND="sys-libs/lib-compat" + +PROVIDE="virtual/jre-1.4 + virtual/jdk-1.4 + virtual/java-scheme-2" + +pkg_nofetch() { + einfo "Please download ${At} from:" + einfo ${HOMEPAGE} + einfo "(select the \"Linux self-extracting file\" package format of the SDK)" + einfo "and move it to ${DISTDIR}" +} + +src_unpack() { + if [ ! -r ${DISTDIR}/${At} ]; then + eerror "cannot read ${At}. Please check the permission and try again." + die + fi + + #Thanks to Douglas Pollock <douglas.pollock@magma.ca> for this + #comment found on the sun-jdk 1.2.2 ebuild that he sent. + ewarn "WARNING:" + ewarn "Sun's JDK 1.4.1 series has begun the Sun End of Life (EOL)" + ewarn "process. The EOL transition period is from July 15, 2003 " + ewarn "until January 15, 2004. Sun is advising users to move to" + ewarn "more recent JDK versions." + echo + sleep 8 + + #Search for the ELF Header + testExp=`echo -e "\177\105\114\106\001\001\001"` + startAt=`grep -aonm 1 ${testExp} ${DISTDIR}/${At} | cut -d: -f1` + tail -n +${startAt} ${DISTDIR}/${At} > install.sfx + chmod +x install.sfx + ./install.sfx || die + rm install.sfx +} + +src_install () { + local dirs="bin include jre lib" + dodir /opt/${P} + + for i in $dirs ; do + cp -a $i ${D}/opt/${P}/ + done + + dodoc COPYRIGHT README LICENSE + dohtml README.html + + doman man/man1/*.1 + + dodir /opt/${P}/share/ + cp -a demo src.zip ${D}/opt/${P}/share/ + + if [ "`use mozilla`" ] ; then + dodir /usr/lib/mozilla/plugins + dosym /opt/${P}/jre/plugin/i386/ns610/libjavaplugin_oji.so /usr/lib/mozilla/plugins/ + fi + + set_java_env ${FILESDIR}/${VMHANDLE} +} + +pkg_postinst () { + # Set as default VM if none exists + java_pkg_postinst + + inst_plugin /opt/${P}/jre/plugin/i386/ns610/libjavaplugin_oji.so + + #Thanks to Douglas Pollock <douglas.pollock@magma.ca> for this + #comment found on the sun-jdk 1.2.2 ebuild that he sent. + einfo "********************************************************" + eerror "Some parts of Sun's JDK require XFree86 to be installed." + eerror "Be careful which Java libraries you attempt to use." + einfo "********************************************************" + echo + + einfo "********************************************************" + einfo " After installing ${P} this" + einfo " was set as the default JVM to run." + einfo " When finished please run the following so your" + einfo " enviroment gets updated." + eerror " /usr/sbin/env-update && source /etc/profile" + einfo " Or use java-config program to set your preferred VM" + einfo "********************************************************" + + echo -ne "\a" ; sleep 0.1 &>/dev/null ; sleep 0,1 &>/dev/null + echo -ne "\a" ; sleep 1 + echo -ne "\a" ; sleep 0.1 &>/dev/null ; sleep 0,1 &>/dev/null + echo -ne "\a" ; sleep 1 + sleep 8 +} diff --git a/dev-java/sun-jdk/sun-jdk-1.4.2.02.ebuild b/dev-java/sun-jdk/sun-jdk-1.4.2.02.ebuild index ca8d0a11702b..b0bf5a21eab1 100644 --- a/dev-java/sun-jdk/sun-jdk-1.4.2.02.ebuild +++ b/dev-java/sun-jdk/sun-jdk-1.4.2.02.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.4.2.02.ebuild,v 1.3 2003/12/09 00:21:30 strider Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.4.2.02.ebuild,v 1.4 2003/12/09 04:22:22 strider Exp $ IUSE="doc gnome kde mozilla" @@ -8,8 +8,8 @@ inherit java nsplugins At="j2sdk-1_4_2_02-linux-i586.bin" S="${WORKDIR}/j2sdk1.4.2_02" -DESCRIPTION="Sun's J2SE Development Kit, version 1.4.2" -HOMEPAGE="http://java.sun.com/j2se/1.4.2/download.html" +DESCRIPTION="Sun's J2SE Development Kit, version 1.4.2_02" +HOMEPAGE="http://java.sun.com/products/archive/index.html" SRC_URI=${At} RESTRICT="fetch" SLOT="1.4" diff --git a/dev-java/sun-jdk/sun-jdk-1.4.2.03.ebuild b/dev-java/sun-jdk/sun-jdk-1.4.2.03.ebuild new file mode 100644 index 000000000000..4f714aa25362 --- /dev/null +++ b/dev-java/sun-jdk/sun-jdk-1.4.2.03.ebuild @@ -0,0 +1,162 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/sun-jdk-1.4.2.03.ebuild,v 1.1 2003/12/09 04:22:22 strider Exp $ + +IUSE="doc gnome kde mozilla" + +inherit java nsplugins + +At="j2sdk-1_4_2_03-linux-i586.bin" +S="${WORKDIR}/j2sdk1.4.2_03" +DESCRIPTION="Sun's J2SE Development Kit, version 1.4.2_03" +HOMEPAGE="http://java.sun.com/j2se/1.4.2/download.html" +SRC_URI=${At} +RESTRICT="fetch" +SLOT="1.4" +LICENSE="sun-bcla-java-vm" +KEYWORDS="~x86 -ppc -sparc -alpha -mips -hppa -arm" + +DEPEND=">=dev-java/java-config-1.1.5 + sys-apps/sed + doc? ( =dev-java/java-sdk-docs-1.4.2* )" + +RDEPEND="sys-libs/lib-compat" + +PROVIDE="virtual/jre-1.4.2 + virtual/jdk-1.4.2 + virtual/java-scheme-2" + +RESTRICT="fetch" + +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/javaws/javaws.jar" + +pkg_nofetch() { + einfo "Please download ${At} from:" + einfo ${HOMEPAGE} + einfo "(select the \"Linux self-extracting file\" package format of the SDK)" + einfo "and move it to ${DISTDIR}" +} + +src_unpack() { + if [ ! -r ${DISTDIR}/${At} ]; then + eerror "cannot read ${At}. Please check the permission and try again." + die + fi + #Search for the ELF Header + testExp=`echo -e "\177\105\114\106\001\001\001"` + startAt=`grep -aonm 1 ${testExp} ${DISTDIR}/${At} | cut -d: -f1` + tail -n +${startAt} ${DISTDIR}/${At} > install.sfx + chmod +x install.sfx + ./install.sfx || die + rm install.sfx + + if [ -f ${S}/lib/unpack ]; then + UNPACK_CMD=${S}/lib/unpack + chmod +x $UNPACK_CMD + for i in $PACKED_JARS; do + PACK_FILE=${S}/`dirname $i`/`basename $i .jar`.pack + if [ -f ${PACK_FILE} ]; then + echo " unpacking: $i" + $UNPACK_CMD ${PACK_FILE} ${S}/$i + rm -f ${PACK_FILE} + fi + done + fi +} + +src_install () { + local dirs="bin include jre lib man" + dodir /opt/${P} + + for i in $dirs ; do + cp -a $i ${D}/opt/${P}/ + done + + dodoc COPYRIGHT README LICENSE THIRDPARTYLICENSEREADME.txt + dohtml README.html + dodir /opt/${P}/share/ + cp -a demo src.zip ${D}/opt/${P}/share/ + + local plugin_dir="ns610" + if has_version '>=gcc-3.2*' ; then + plugin_dir="ns610-gcc32" + fi + if [ "`use mozilla`" ] ; then + install_mozilla_plugin /opt/${P}/jre/plugin/i386/$plugin_dir/libjavaplugin_oji.so + fi + inst_plugin /opt/${P}/jre/plugin/i386/$plugin_dir/libjavaplugin_oji.so + + # create dir for system preferences + dodir /opt/${P}/.systemPrefs + + # install control panel for Gnome/KDE + sed -e "s/INSTALL_DIR\/JRE_NAME_VERSION/\/opt\/${P}\/jre/" \ + -e "s/\(Name=Java\)/\1 Control Panel/" \ + ${D}/opt/${P}/jre/plugin/desktop/sun_java.desktop > \ + ${T}/sun_java.desktop + + if use gnome ; then + #TODO check this on Gnome + dodir /usr/share/gnome/apps/Internet + insinto /usr/share/gnome/apps/Internet + doins ${T}/sun_java.desktop + fi + if use kde ; then + dodir $KDEDIR/share/applnk/Internet + insinto $KDEDIR/share/applnk/Internet + doins ${T}/sun_java.desktop + fi + + set_java_env ${FILESDIR}/${VMHANDLE} + + # TODO prepman "fixes" symlink ja -> ja__JP.eucJP in 'man' directory, + # creating ja.gz -> ja_JP.eucJP.gz. This is broken as ja_JP.eucJP + # is a directory and will not be gzipped ;) +} + +pkg_postinst () { + # Create files used as storage for system preferences. + touch /opt/${P}/.systemPrefs/.system.lock + chmod 644 /opt/${P}/.systemPrefs/.system.lock + touch /opt/${P}/.systemPrefs/.systemRootModFile + chmod 644 /opt/${P}/.systemPrefs/.systemRootModFile + + # Set as default VM if none exists + java_pkg_postinst + + #Show info about netscape + if has_version '>=netscape-navigator-4.79-r1' || has_version '>=netscape-communicator-4.79-r1' ; then + einfo "********************************************************" + einfo "If you want to install the plugin for Netscape 4.x, type" + einfo + einfo " cd /usr/lib/nsbrowser/plugins/" + einfo " ln -sf /opt/${P}/jre/plugin/i386/ns4/libjavaplugin.so" + einfo "********************************************************" + echo + fi + + #Thanks to Douglas Pollock <douglas.pollock@magma.ca> for this + #comment found on the sun-jdk 1.2.2 ebuild that he sent. + einfo "*********************************************************" + eerror "Some parts of Sun's JDK require XFree86 to be installed." + eerror "Be careful which Java libraries you attempt to use." + einfo "*********************************************************" + echo + + einfo "******************************************************" + einfo " After installing ${P} this" + einfo " was set as the default JVM to run." + einfo " When finished please run the following so your" + einfo " enviroment gets updated." + eerror " /usr/sbin/env-update && source /etc/profile" + einfo " Or use java-config program to set your preferred VM" + einfo "******************************************************" + + echo -ne "\a" ; sleep 0.1 &>/dev/null ; sleep 0,1 &>/dev/null + echo -ne "\a" ; sleep 1 + echo -ne "\a" ; sleep 0.1 &>/dev/null ; sleep 0,1 &>/dev/null + echo -ne "\a" ; sleep 1 + sleep 8 + +} |