summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Trygve Kalleberg <karltk@gentoo.org>2002-01-29 20:01:27 +0000
committerKarl Trygve Kalleberg <karltk@gentoo.org>2002-01-29 20:01:27 +0000
commita92add62acd5fa98e6d49e385264329b59867362 (patch)
treedd69fb11c99e3277c3ed5ccef429caa936cc6a25 /dev-java
parentfix locale dir; installed incorrectly to /usr/share/local (diff)
downloadhistorical-a92add62acd5fa98e6d49e385264329b59867362.tar.gz
historical-a92add62acd5fa98e6d49e385264329b59867362.tar.bz2
historical-a92add62acd5fa98e6d49e385264329b59867362.zip
Whoops
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/ibm-jre/ibm-jre-1.3.0.ebuild62
1 files changed, 62 insertions, 0 deletions
diff --git a/dev-java/ibm-jre/ibm-jre-1.3.0.ebuild b/dev-java/ibm-jre/ibm-jre-1.3.0.ebuild
new file mode 100644
index 000000000000..2d2d6d2f588d
--- /dev/null
+++ b/dev-java/ibm-jre/ibm-jre-1.3.0.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2001 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# Maintainer: Tools Team <tools@gentoo.org>
+# Author: Karl Trygve Kalleberg <karltk@gentoo.org>
+# $Header: /var/cvsroot/gentoo-x86/dev-java/ibm-jre/ibm-jre-1.3.0.ebuild,v 1.1 2002/01/29 20:01:27 karltk Exp $
+
+At=IBMJava2-JRE-13.tgz
+S=${WORKDIR}/IBMJava2-13
+DESCRIPTION="IBM JRE 1.3.1"
+SRC_URI=""
+HOMEPAGE="http://"
+
+DEPEND="virtual/glibc
+ >=dev-java/java-config-0.1.3"
+RDEPEND="$DEPEND"
+
+PROVIDE="virtual/jre-1.3"
+
+src_unpack() {
+ if [ ! -f ${DISTDIR}/${At} ] ; then
+ die "Please download ${At} from ${HOMEPAGE}"
+ fi
+ unpack ${At} || die
+}
+
+
+src_install () {
+
+ dodir /opt/${P}
+ cp -dpR jre/* ${D}/opt/${P}/
+
+ dohtml -a html,htm,HTML -r docs
+ dodoc docs/COPYRIGHT
+
+ if [ "`use mozilla`" ] ; then
+ dodir /usr/lib/mozilla/plugins
+ dosym /opt/${P}/bin/libjavaplugin_oji.so /usr/lib/mozilla/plugins/
+ fi
+
+ dodir /etc/env.d
+ echo "PATH=/opt/${P}/bin" > /etc/env.d/20jre
+ echo "JRE_HOME=/opt/${P}" >> /etc/env.d/20jre
+ echo "JAVA_HOME=/opt/${P}" >> /etc/env.d/20jre
+ echo "ROOTPATH=/opt/${P}/bin" >> /etc/env.d/20jre
+ echo "CLASSPATH=/opt/${P}/lib/rt.jar" >> /etc/env.d/20jre
+ echo "LDPATH=/opt/${P}/bin" >> /etc/env.d/20jre
+}
+
+src_postinst() {
+ if [ -e /opt/netscape/plugins ] ; then
+ ln -sf /opt/${P}/bin/javaplugin.so /opt/netscape/plugins/
+ einfo "Netscape 4.x Java plugin installed"
+ fi
+
+ if [ "`use mozilla`" ] ; then
+ einfo "The Mozilla browser plugin has been installed as /usr/lib/mozilla/plugins/javaplugin_oji.so"
+ else
+ einfo "To install the browser plugin manually, do:"
+ einfo "ln -sf /opt/${P}/bin/libjavaplugin_oji.so /usr/lib/mozilla/plugins/"
+ fi
+
+}