summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-java/sun-jdk/ChangeLog5
-rw-r--r--dev-java/sun-jdk/Manifest13
-rw-r--r--dev-java/sun-jdk/files/digest-sun-jdk-1.4.2.011
-rw-r--r--dev-java/sun-jdk/files/sun-jdk-1.4.2.0113
-rw-r--r--dev-java/sun-jdk/sun-jdk-1.4.2.01.ebuild133
5 files changed, 159 insertions, 6 deletions
diff --git a/dev-java/sun-jdk/ChangeLog b/dev-java/sun-jdk/ChangeLog
index a038ab4e8ba6..965f75357ae0 100644
--- a/dev-java/sun-jdk/ChangeLog
+++ b/dev-java/sun-jdk/ChangeLog
@@ -1,6 +1,9 @@
# 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.52 2003/08/24 02:23:53 strider Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/ChangeLog,v 1.53 2003/08/30 18:52:50 prez Exp $
+
+ 30 Aug 2003; Preston A. Elder <prez@gentoo.org> sun-jdk-1.4.2.01.ebuild:
+ Version bump. Made stable since the download page downloads this version.
23 Aug 2003; Adrian Almenar <strider@gentoo.org> sun-jdk-1.4.1.04.ebuild,
sun-jdk-1.4.2.ebuild:
diff --git a/dev-java/sun-jdk/Manifest b/dev-java/sun-jdk/Manifest
index ec3921bc9c3b..a2b6649e3a3d 100644
--- a/dev-java/sun-jdk/Manifest
+++ b/dev-java/sun-jdk/Manifest
@@ -1,11 +1,14 @@
+MD5 de78baca2b0a67839608437954d46b44 ChangeLog 12094
MD5 b4810fbd963d544b113a822a570baec5 sun-jdk-1.3.1.09.ebuild 2474
+MD5 3624458aaf058b4b4b2cf00e096c5c84 metadata.xml 382
+MD5 1f94419e6c50688c87e7b65c8d7af527 sun-jdk-1.4.2.01.ebuild 3714
MD5 3af3156ce8d88baf5c15cdf7b65ba848 sun-jdk-1.4.1.04.ebuild 1918
MD5 c256b2973117dd7882070c0000bfc325 sun-jdk-1.4.2.ebuild 3708
-MD5 de78baca2b0a67839608437954d46b44 ChangeLog 12094
-MD5 3624458aaf058b4b4b2cf00e096c5c84 metadata.xml 382
-MD5 69eeb4e77dcdbda3b7efe07f9b3cab15 files/digest-sun-jdk-1.4.2 73
+MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-sun-jdk-1.3.1.09 0
+MD5 ee8509b4c5246e7ef5e2ac67b206c15c files/digest-sun-jdk-1.4.1.04 76
MD5 20129e994188aa6a6f1b4690cbb91ca9 files/sun-jdk-1.3.1.09 648
+MD5 ccd9bd0dbf7649c2e5681e9cda01f99c files/sun-jdk-1.4.2.01 519
+MD5 389f348934b4a924a337f7cf3dad6479 files/digest-sun-jdk-1.4.2.01 76
+MD5 69eeb4e77dcdbda3b7efe07f9b3cab15 files/digest-sun-jdk-1.4.2 73
MD5 1bae7c0f1e414754754e6b5fb3c9e84b files/sun-jdk-1.4.1.04 581
MD5 ccd9bd0dbf7649c2e5681e9cda01f99c files/sun-jdk-1.4.2 519
-MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-sun-jdk-1.3.1.09 0
-MD5 ee8509b4c5246e7ef5e2ac67b206c15c files/digest-sun-jdk-1.4.1.04 76
diff --git a/dev-java/sun-jdk/files/digest-sun-jdk-1.4.2.01 b/dev-java/sun-jdk/files/digest-sun-jdk-1.4.2.01
new file mode 100644
index 000000000000..f9f2eaebf3c9
--- /dev/null
+++ b/dev-java/sun-jdk/files/digest-sun-jdk-1.4.2.01
@@ -0,0 +1 @@
+MD5 07dbf14a3098b4e38cac57ad520ff474 j2sdk-1_4_2_01-linux-i586.bin 35796720
diff --git a/dev-java/sun-jdk/files/sun-jdk-1.4.2.01 b/dev-java/sun-jdk/files/sun-jdk-1.4.2.01
new file mode 100644
index 000000000000..ea03125e02f4
--- /dev/null
+++ b/dev-java/sun-jdk/files/sun-jdk-1.4.2.01
@@ -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.2.01.ebuild b/dev-java/sun-jdk/sun-jdk-1.4.2.01.ebuild
new file mode 100644
index 000000000000..aa5088891e94
--- /dev/null
+++ b/dev-java/sun-jdk/sun-jdk-1.4.2.01.ebuild
@@ -0,0 +1,133 @@
+# 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.01.ebuild,v 1.1 2003/08/30 18:52:50 prez Exp $
+
+# Since This Ebuild Has FETCH restrictions:
+# You need to download this file from
+# http://java.sun.com/j2se/1.4.2/download.html
+# and copy it on your distfiles directory and emerge it again
+
+IUSE="doc gnome kde mozilla"
+
+inherit java nsplugins
+
+At="j2sdk-1_4_2_01-linux-i586.bin"
+S="${WORKDIR}/j2sdk1.4.2_01"
+DESCRIPTION="Sun's J2SE Development Kit, version 1.4.2"
+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-0.2.7
+ 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() {
+ startAt=`grep -aonm 1 ELF ${DISTDIR}/${At} | cut -d: -f1`
+ tail +${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
+
+ 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
+}
+