summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Matthijs <axxo@gentoo.org>2004-07-16 12:13:59 +0000
committerThomas Matthijs <axxo@gentoo.org>2004-07-16 12:13:59 +0000
commit1b90db8edf1178365d0aef23be8bcaba78cfd01c (patch)
tree4d6bc176048b1da4de265c96a9626ccb1cd5a93f /dev-java
parentadding sun-bcla-java-vm-1.2 for sun-jdk-1.2* (diff)
downloadhistorical-1b90db8edf1178365d0aef23be8bcaba78cfd01c.tar.gz
historical-1b90db8edf1178365d0aef23be8bcaba78cfd01c.tar.bz2
historical-1b90db8edf1178365d0aef23be8bcaba78cfd01c.zip
Adding ebuild for 1.2 closes 20117
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/sun-jdk/ChangeLog10
-rw-r--r--dev-java/sun-jdk/Manifest5
-rw-r--r--dev-java/sun-jdk/files/digest-sun-jdk-1.2.2.0171
-rw-r--r--dev-java/sun-jdk/files/sun-jdk-1.2.2.01710
-rw-r--r--dev-java/sun-jdk/sun-jdk-1.2.2.017.ebuild100
5 files changed, 124 insertions, 2 deletions
diff --git a/dev-java/sun-jdk/ChangeLog b/dev-java/sun-jdk/ChangeLog
index b672b070d468..2691945a69b5 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-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/ChangeLog,v 1.80 2004/07/15 16:38:06 axxo Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jdk/ChangeLog,v 1.81 2004/07/16 12:13:59 axxo Exp $
+
+*sun-jdk-1.2.2.017 (16 Jul 2004)
+
+ 16 Jul 2004; Thomas Matthijs <axxo@gentoo.org> +files/sun-jdk-1.2.2.017,
+ +sun-jdk-1.2.2.017.ebuild:
+ Adding ebuild for 1.2 closes 20117
+ Thanks too larry schuler <larryas2@fastmail.us>
+ and Douglas Pollock <douglas.pollock@magma.ca>
15 Jul 2004; Thomas Matthijs <axxo@gentoo.org> files/sun-jdk-1.3.1.12,
sun-jdk-1.3.1.12.ebuild:
diff --git a/dev-java/sun-jdk/Manifest b/dev-java/sun-jdk/Manifest
index 388dff3a187d..ec3a4c10b5d8 100644
--- a/dev-java/sun-jdk/Manifest
+++ b/dev-java/sun-jdk/Manifest
@@ -3,13 +3,14 @@ MD5 e05d67e73e52b42ef8e2884a08abd741 sun-jdk-1.3.1.09.ebuild 4468
MD5 26dabe5196081e3ef46ef80d1b7e9ca5 sun-jdk-1.4.2.04.ebuild 5980
MD5 e7c53343a73adba1109200374e655213 sun-jdk-1.5.0_beta2-r1.ebuild 8103
MD5 1906442891ab5eab96c1e7e04ec1964f sun-jdk-1.3.1.10.ebuild 4675
+MD5 0df0dcf76f9b4775b7b03f20afa3fce2 sun-jdk-1.2.2.017.ebuild 3154
MD5 1a713b65cd35161e5c54bd3a4f877283 sun-jdk-1.5.0_beta1-r1.ebuild 6676
MD5 f2c0b7497d23edd173ca34f5214318b7 sun-jdk-1.3.1.12.ebuild 4727
MD5 04dd51ce8dfe00cd681076b0e0e9000c sun-jdk-1.4.2.03.ebuild 5992
MD5 65c2bc21da2262ddeb940d657dcc9ff0 sun-jdk-1.4.1.06.ebuild 3316
MD5 234d28ba53964b7c9d717ee01d6f1a7b sun-jdk-1.4.2.04-r2.ebuild 7487
MD5 bd34082377e7296929904c1f9490df14 sun-jdk-1.4.2.05.ebuild 7485
-MD5 65b026753a6f184190ea3fd1b9f5bc81 ChangeLog 17233
+MD5 3a6c448654fe240135ddbadb99f4e3ae ChangeLog 17510
MD5 10a5a03b93dabf7b6229ce803b27a0ba sun-jdk-1.5.0_beta2.ebuild 8100
MD5 16c9e337522b7e477aece60ff98dde54 metadata.xml 239
MD5 48704791b468465f9c30c67e4cfd0df3 files/sun-jdk-1.5.0_beta1 502
@@ -21,6 +22,8 @@ MD5 8e003f54a8c41088ba3c804cbaf96656 files/sun-jdk-1.4.1.06 445
MD5 825c69f533004f12b0011651509317e7 files/sun-jdk-1.4.2.03 499
MD5 4602194a472b06ce3d9762a95aa1bc64 files/sun-jdk-1.4.2.04 499
MD5 23b60f3127f8ba04b0945493a0c3eba4 files/sun-jdk-1.4.2.05 503
+MD5 8a86d872624397dc0644912c790f6f42 files/sun-jdk-1.2.2.017 336
+MD5 92fc551c12c9a260dd9ced69d15cf0f3 files/digest-sun-jdk-1.2.2.017 78
MD5 e089ba4610fef6873f7babe744e4e2d6 files/digest-sun-jdk-1.5.0_beta1-r1 157
MD5 3fa9afb39fe6c07d974d1e22061000df files/digest-sun-jdk-1.5.0_beta2-r1 224
MD5 094dd610ffa5d7f03b8174b76a5db6ae files/digest-sun-jdk-1.5.0_beta2 155
diff --git a/dev-java/sun-jdk/files/digest-sun-jdk-1.2.2.017 b/dev-java/sun-jdk/files/digest-sun-jdk-1.2.2.017
new file mode 100644
index 000000000000..0e9c938b079d
--- /dev/null
+++ b/dev-java/sun-jdk/files/digest-sun-jdk-1.2.2.017
@@ -0,0 +1 @@
+MD5 31b43e0da46d0d7f2b04d2d78f21a8cc jdk-1_2_2_017-linux-i586.tar.gz 21192620
diff --git a/dev-java/sun-jdk/files/sun-jdk-1.2.2.017 b/dev-java/sun-jdk/files/sun-jdk-1.2.2.017
new file mode 100644
index 000000000000..e19db2bbdd37
--- /dev/null
+++ b/dev-java/sun-jdk/files/sun-jdk-1.2.2.017
@@ -0,0 +1,10 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+
+VERSION="Sun JDK @PV@"
+JAVA_HOME=/opt/@P@
+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 JDK_HOME JAVAC ADDPATH ADDLDPATH"
diff --git a/dev-java/sun-jdk/sun-jdk-1.2.2.017.ebuild b/dev-java/sun-jdk/sun-jdk-1.2.2.017.ebuild
new file mode 100644
index 000000000000..196aaefeb96b
--- /dev/null
+++ b/dev-java/sun-jdk/sun-jdk-1.2.2.017.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2004 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.2.2.017.ebuild,v 1.1 2004/07/16 12:13:59 axxo Exp $
+
+IUSE="doc mozilla X"
+
+inherit java
+
+At="jdk-1_2_2_017-linux-i586.tar.gz"
+S="${WORKDIR}/jdk1.2.2"
+SRC_URI="${At}"
+DESCRIPTION="Sun Java Development"
+HOMEPAGE="http://java.sun.com/products/archive/"
+PROVIDE="virtual/jre-1.2.2
+ virtual/jdk-1.2.2
+ virtual/java-scheme-2"
+LICENSE="sun-bcla-java-vm-1.2"
+SLOT="1.2"
+KEYWORDS="~x86 -ppc -sparc -alpha -mips -hppa -arm"
+RESTRICT="fetch"
+
+# NOTE: Sun's JDK also requires the XFree86 be installed to use the graphical
+# libraries. Even some non-graphical libraries (such as JavaMail) have bizarre
+# dependencies on windowing toolkits.
+DEPEND="virtual/glibc
+ >=dev-java/java-config-0.2.7
+ doc? ( =dev-java/java-sdk-docs-1.2.2* )"
+RDEPEND="sys-libs/lib-compat"
+
+DOWNLOAD_URL="http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22&PartDetailId=7740-j2sdk-1.2.2_017-oth-JPR&SiteId=JSC&TransactionId=noreg"
+
+pkg_nofetch() {
+ einfo "Please download ${At} from:"
+ einfo ${DOWNLOAD_URL}
+ einfo "(Java(TM) 2 SDK, Standard Edition 1.2.2_017, Linux Platform)"
+ einfo "and move it to ${DISTDIR}"
+}
+
+pkg_setup() {
+ # Issue a warning that this product has been marked as End-of-Life.
+ ewarn "BEWARE"
+ ewarn "Sun's JDK 1.2.2 has completed the Sun End of Life (EOL) process."
+ ewarn "This version is no longer supported by Sun"
+ ewarn "Sun is advising users to move to more recent JDK versions."
+ echo
+ ewarn "Currently this works fine with the x86 glibc version, but break"
+ ewarn "with the ~x86 versions, there is bug open on the compatibility"
+ ewarn "issue, so i'm hoping it will still work on upcoming versions of"
+ ewarn "x86 glibc, so be warned if it doesn't work"
+ echo
+}
+
+src_install () {
+ # Make the root directory for the installation.
+ dodir /opt/${P}
+
+ # Copy each of the directories over.
+ local dirs="bin include include-old jre lib"
+ for i in $dirs ; do
+ cp -dPR $i ${D}/opt/${P}/
+ done
+
+ # Copy the documentation to Gentoo's documentation directory.
+ dodoc CHANGES COPYRIGHT README LICENSE
+ dohtml README.html
+
+ # Copy the demo and the source jar to a share directory
+ dodir /opt/${P}/share/
+ cp -dPR demo src.jar ${D}/opt/${P}/share/
+
+ # Symlink to maintain the directory structure
+ dosym /opt/${P}/share/demo /opt/${P}
+ dosym /opt/${P}/share/src.jar /opt/${P}
+
+ # From Mozilla's release notes for 1.x:
+ # "Java J2SE releases previous to 1.3.0_01 will not work with Mozilla"
+ # In Mozilla 1.2.x and higher, they go on to strongly recommend JDK 1.4.x
+ # only.
+
+ set_java_env ${FILESDIR}/${VMHANDLE} || die
+}
+
+pkg_postinst () {
+ # Set as default VM if none exists
+ java_pkg_postinst
+
+ # Again, this will not work as a Mozilla plugin.
+ if use mozilla ; then
+ einfo "JDK 1.2.2 does not work with Mozilla. A more recent JDK is"
+ einfo "required."
+ echo
+ fi
+
+ # Warn the user if they don't appear to have XFree86 installed.
+ if ! use X ; then
+ ewarn "Some parts of Sun's JDK require XFree86 to be installed."
+ ewarn "Be careful which Java libraries you attempt to use."
+ echo
+ fi
+}