diff options
-rw-r--r-- | dev-java/sun-j2sdk/ChangeLog | 8 | ||||
-rw-r--r-- | dev-java/sun-j2sdk/files/digest-sun-j2sdk-1.4.0-r1 | 1 | ||||
-rw-r--r-- | dev-java/sun-j2sdk/files/patches/j2sdk-1.4.0-disable-sanity-check.patch.bz2 | bin | 0 -> 450 bytes | |||
-rw-r--r-- | dev-java/sun-j2sdk/files/patches/j2sdk-1.4.0-fix-intl-files.patch.bz2 | bin | 0 -> 826 bytes | |||
-rw-r--r-- | dev-java/sun-j2sdk/files/patches/j2sdk-1.4.0-gcc3-syntax.patch.bz2 | bin | 0 -> 1582 bytes | |||
-rw-r--r-- | dev-java/sun-j2sdk/files/patches/j2sdk-1.4.0-glibc-2.3.1-fixes.patch.bz2 | bin | 0 -> 863 bytes | |||
-rw-r--r-- | dev-java/sun-j2sdk/files/patches/j2sdk-1.4.0-link-jpda-2-libjvm.patch.bz2 | bin | 0 -> 337 bytes | |||
-rw-r--r-- | dev-java/sun-j2sdk/files/patches/j2sdk-1.4.0-remove-fixed-paths.patch.bz2 | bin | 0 -> 1455 bytes | |||
-rw-r--r-- | dev-java/sun-j2sdk/files/sun-j2sdk-1.4.0 | 15 | ||||
-rw-r--r-- | dev-java/sun-j2sdk/sun-j2sdk-1.4.0-r1.ebuild | 162 |
10 files changed, 185 insertions, 1 deletions
diff --git a/dev-java/sun-j2sdk/ChangeLog b/dev-java/sun-j2sdk/ChangeLog index ddec0e66d5c8..5ff77ecf71b4 100644 --- a/dev-java/sun-j2sdk/ChangeLog +++ b/dev-java/sun-j2sdk/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-java/sun-jdk # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-j2sdk/ChangeLog,v 1.1 2002/08/29 09:52:11 prez Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-j2sdk/ChangeLog,v 1.2 2002/11/07 22:53:26 cretin Exp $ + +*sun-j2sdk-1.4.0-r1 (07 Nov 2002) + + 07 Nov 2002; Stefan A. Jones <cretin@gentoo.org> sun-j2sdk-1.4.0-r1.ebuild + + This *should* work, please test and fix, and report abuse to me! *sun-j2sdk-1.4.0 (29 Aug 2002) diff --git a/dev-java/sun-j2sdk/files/digest-sun-j2sdk-1.4.0-r1 b/dev-java/sun-j2sdk/files/digest-sun-j2sdk-1.4.0-r1 new file mode 100644 index 000000000000..ac97e5a21b50 --- /dev/null +++ b/dev-java/sun-j2sdk/files/digest-sun-j2sdk-1.4.0-r1 @@ -0,0 +1 @@ +MD5 ea16358be41384870acbdc372f9db152 zlib-1.1.4.tar.bz2 147014 diff --git a/dev-java/sun-j2sdk/files/patches/j2sdk-1.4.0-disable-sanity-check.patch.bz2 b/dev-java/sun-j2sdk/files/patches/j2sdk-1.4.0-disable-sanity-check.patch.bz2 Binary files differnew file mode 100644 index 000000000000..3217061f9374 --- /dev/null +++ b/dev-java/sun-j2sdk/files/patches/j2sdk-1.4.0-disable-sanity-check.patch.bz2 diff --git a/dev-java/sun-j2sdk/files/patches/j2sdk-1.4.0-fix-intl-files.patch.bz2 b/dev-java/sun-j2sdk/files/patches/j2sdk-1.4.0-fix-intl-files.patch.bz2 Binary files differnew file mode 100644 index 000000000000..e91511d8e50d --- /dev/null +++ b/dev-java/sun-j2sdk/files/patches/j2sdk-1.4.0-fix-intl-files.patch.bz2 diff --git a/dev-java/sun-j2sdk/files/patches/j2sdk-1.4.0-gcc3-syntax.patch.bz2 b/dev-java/sun-j2sdk/files/patches/j2sdk-1.4.0-gcc3-syntax.patch.bz2 Binary files differnew file mode 100644 index 000000000000..029f715dfa35 --- /dev/null +++ b/dev-java/sun-j2sdk/files/patches/j2sdk-1.4.0-gcc3-syntax.patch.bz2 diff --git a/dev-java/sun-j2sdk/files/patches/j2sdk-1.4.0-glibc-2.3.1-fixes.patch.bz2 b/dev-java/sun-j2sdk/files/patches/j2sdk-1.4.0-glibc-2.3.1-fixes.patch.bz2 Binary files differnew file mode 100644 index 000000000000..06b992c0b342 --- /dev/null +++ b/dev-java/sun-j2sdk/files/patches/j2sdk-1.4.0-glibc-2.3.1-fixes.patch.bz2 diff --git a/dev-java/sun-j2sdk/files/patches/j2sdk-1.4.0-link-jpda-2-libjvm.patch.bz2 b/dev-java/sun-j2sdk/files/patches/j2sdk-1.4.0-link-jpda-2-libjvm.patch.bz2 Binary files differnew file mode 100644 index 000000000000..103a84568c24 --- /dev/null +++ b/dev-java/sun-j2sdk/files/patches/j2sdk-1.4.0-link-jpda-2-libjvm.patch.bz2 diff --git a/dev-java/sun-j2sdk/files/patches/j2sdk-1.4.0-remove-fixed-paths.patch.bz2 b/dev-java/sun-j2sdk/files/patches/j2sdk-1.4.0-remove-fixed-paths.patch.bz2 Binary files differnew file mode 100644 index 000000000000..9be3b2b45e87 --- /dev/null +++ b/dev-java/sun-j2sdk/files/patches/j2sdk-1.4.0-remove-fixed-paths.patch.bz2 diff --git a/dev-java/sun-j2sdk/files/sun-j2sdk-1.4.0 b/dev-java/sun-j2sdk/files/sun-j2sdk-1.4.0 new file mode 100644 index 000000000000..14d1f0ec4adf --- /dev/null +++ b/dev-java/sun-j2sdk/files/sun-j2sdk-1.4.0 @@ -0,0 +1,15 @@ +# 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-j2sdk/files/sun-j2sdk-1.4.0,v 1.1 2002/11/07 22:53:26 cretin Exp $ + +VERSION="Sun JDK @PV@" +JAVA_HOME=/opt/@P@ +CLASSPATH=/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-j2sdk/sun-j2sdk-1.4.0-r1.ebuild b/dev-java/sun-j2sdk/sun-j2sdk-1.4.0-r1.ebuild new file mode 100644 index 000000000000..cf430562af12 --- /dev/null +++ b/dev-java/sun-j2sdk/sun-j2sdk-1.4.0-r1.ebuild @@ -0,0 +1,162 @@ +# Copyright 1999-2001 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# Maintainer: Stefan Jones <cretin@gentoo.org> +# Author: Stefan Jones <cretin@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-j2sdk/sun-j2sdk-1.4.0-r1.ebuild,v 1.1 2002/11/07 22:53:26 cretin Exp $ + +# Based on http://tushar.lfsforum.org/javafromscratch.txt (LFS) +# By Tushar Teredesai <Tush@Yahoo.Com> + +IUSE="" + +inherit java + +ZLIB_VERSION=1.1.4 + +JAVA_PATCHES="j2sdk-1.4.0-disable-sanity-check.patch.bz2 + j2sdk-1.4.0-fix-intl-files.patch.bz2 + j2sdk-1.4.0-gcc3-syntax.patch.bz2 + j2sdk-1.4.0-glibc-2.3.1-fixes.patch.bz2 + j2sdk-1.4.0-link-jpda-2-libjvm.patch.bz2 + j2sdk-1.4.0-remove-fixed-paths.patch.bz2" + +S=${WORKDIR}/j2sdk + +SRC_JAVA="j2sdk-1_4_0-src-scsl.zip" +SRC_MOZHEADERS="j2sdk-1_4_0-mozilla_headers-unix.zip" + +SRC_URI="http://www.gzip.org/zlib/zlib-${ZLIB_VERSION}.tar.bz2" + +DESCRIPTION="Sun's J2SE Development Kit, version 1.4.0" +HOMEPAGE="http://java.sun.com/j2se/1.4/download.html" + +SLOT="0" +KEYWORDS="x86 -ppc -alpha -sparc -sparc64" +LICENSE="sun-csl" + +RDEPEND="virtual/glibc + virtual/x11 + >=dev-java/java-config-0.1.3" +DEPEND="${RDEPEND} + app-arch/unzip + virtual/jdk + >=x11-libs/lesstif-0.93.36 + !x11-libs/openmotif" + +PROVIDE="virtual/jre-1.4.0 + virtual/jdk-1.4.0 + virtual/java-scheme-2" + +src_unpack() { + die_flag="" + if [ ! -f ${DISTDIR}/${SRC_MOZHEADERS} ] ; then + eerror "Please download ${SRC_MOZHEADERS} from ${HOMEPAGE}" + die_flag=1 + fi + + if [ ! -f ${DISTDIR}/${SRC_JAVA} ] ; then + eerror "Please download ${SRC_JAVA} from ${HOMEPAGE}" + die_flag=1 + fi + + [ ! -z ${die_flag} ] && die "Some source files were not found" + + mkdir ${S} + cd ${S} + unpack ${SRC_JAVA} + + mkdir mozilla + cd mozilla + unpack ${SRC_MOZHEADERS} + + cd ${S} + for patch in $JAVA_PATCHES ; do + bzip2 -dc ${FILESDIR}/patches/${patch} | patch -p1 || die "Failed to apply ${patch}" + done + + # Update zlib to avoid security problem with zlib-1.1.3 + cd ${S}/j2se/src/share/native/java/util/zip + rm -rf zlib-1.1.3 + unpack zlib-${ZLIB_VERSION}.tar.bz2 + cd zlib-${ZLIB_VERSION} + mv adler32.c zadler32.c + mv crc32.c zcrc32.c + cd ${S}/j2se/make/java/zip/ + cp Makefile Makefile.orig + chmod +w Makefile + sed -e "s:1.1.3:${ZLIB_VERSION}:" Makefile.orig > Makefile + +} + +src_compile () { + cd ${S} + unset CLASSPATH JAVA_HOME JAVAC + + # Otherwise the command: + # (cd /var/tmp/portage/sun-j2sdk-1.4.0-r1/work/j2sdk/control/build/linux-i386/j2re-image; tar cf - .) | \ + # (cd /var/tmp/portage/sun-j2sdk-1.4.0-r1/work/j2sdk/control/build/linux-i386/j2sdk-image/jre; tar xf -) + # Will fail, you have been warned!!!! There are NO sandbox violations anyway + LD_PRELOAD_SAVE=$LD_PRELOAD + unset LD_PRELOAD + + # Any CFLAGS will cause the build to fail! + # If you don't believe me ... + unset CFLAGS CXXFLAGS + + export ALT_MOZILLA_PATH="${S}/mozilla" + export ALT_BOOTDIR=`java-config --jdk-home` + export ALT_MOTIF_DIR="/usr" + export ALT_DEVTOOLS_PATH="/usr/bin" + export MILESTONE="gentoo" + export BUILD_NUMBER=`date +%s` + export INSANE=true + export MAKE_VERBOSE=true + export OTHER_LDFLAGS="-lpthread" + export DEV_ONLY=true + + cd ${S}/control/make + make || die + + export LD_PRELOAD=$LD_PRELOAD_SAVE +} + +src_install () { + dodir /opt/${P} + + cd ${S}/control/build/linux-*/j2sdk-image + 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_oji140.so /usr/lib/mozilla/plugins/ + fi + + set_java_env ${FILESDIR}/${VMHANDLE} + +} + +pkg_postinst () { + # Set as default VM if none exists + java_pkg_postinst + + if [ "`use mozilla`" ] ; then + einfo "The Mozilla browser plugin has been installed as /usr/lib/mozilla/plugins/libjavaplugin_oji140.so" + else + einfo "To install the Java plugin for Mozilla manually, do:" + einfo "ln -s /opt/${P}/jre/plugin/i386/ns610/libjavaplugin_oji140.so /usr/lib/mozilla/plugins/" + einfo "(Make certain the directory /usr/lib/mozilla/plugins exists first)" + fi +} |