summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJochen Maes <sejo@gentoo.org>2004-04-28 19:51:43 +0000
committerJochen Maes <sejo@gentoo.org>2004-04-28 19:51:43 +0000
commit3a83c6f7cd7861585354dafe575cbaf211d04ad5 (patch)
tree69d1bae200003e8cb540bc60414a61abbfa7a149 /dev-java/ibm-jdk-bin
parent(Manifest recommit) (diff)
downloadgentoo-2-3a83c6f7cd7861585354dafe575cbaf211d04ad5.tar.gz
gentoo-2-3a83c6f7cd7861585354dafe575cbaf211d04ad5.tar.bz2
gentoo-2-3a83c6f7cd7861585354dafe575cbaf211d04ad5.zip
new ibm-jdk ebuild 1.4
Diffstat (limited to 'dev-java/ibm-jdk-bin')
-rw-r--r--dev-java/ibm-jdk-bin/Manifest2
-rw-r--r--dev-java/ibm-jdk-bin/ibm-jdk-bin-1.4.1.ebuild100
2 files changed, 102 insertions, 0 deletions
diff --git a/dev-java/ibm-jdk-bin/Manifest b/dev-java/ibm-jdk-bin/Manifest
new file mode 100644
index 000000000000..a26e21dfda09
--- /dev/null
+++ b/dev-java/ibm-jdk-bin/Manifest
@@ -0,0 +1,2 @@
+MD5 14eb7b4e4274a6da1f4771e5bb393736 ibm-jdk-bin-1.4.1.ebuild 3243
+MD5 de9e44ca05e6dc855700ef2c5844b60e files/digest-ibm-jdk-bin-1.4.1 138
diff --git a/dev-java/ibm-jdk-bin/ibm-jdk-bin-1.4.1.ebuild b/dev-java/ibm-jdk-bin/ibm-jdk-bin-1.4.1.ebuild
new file mode 100644
index 000000000000..dffda71bef19
--- /dev/null
+++ b/dev-java/ibm-jdk-bin/ibm-jdk-bin-1.4.1.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/ibm-jdk-bin/ibm-jdk-bin-1.4.1.ebuild,v 1.1 2004/04/28 19:51:43 sejo Exp $
+
+IUSE="doc"
+
+inherit java nsplugins
+
+S="${WORKDIR}/j2sdk${PV}"
+DESCRIPTION="IBM Java Development Kit ${PV}"
+SRC_URI="ppc?(mirror://IBMJava2-SDK-141.ppc.tgz)
+ x86?(mirror://IBMJava2-SDK-141.tgz)"
+PROVIDE="virtual/jdk-1.4.1
+ virtual/jre-1.4.1
+ virtual/java-scheme-2"
+SLOT="1.4"
+LICENSE="IBM-J1.4"
+KEYWORDS="~ppc ppc"
+
+
+DEPEND="virtual/glibc
+ >=dev-java/java-config-0.2.5
+ doc? (=dev-java/java-sdk-docs-1.4.1*)
+ X? (virtual/x11)"
+RDEPEND="sys-libs/lib-compat"
+
+
+if [ `use ppc` ]; then
+ S=${WORKDIR}/IBMjava2-ppc-141
+else
+ S=${WORKDIR}/IBMJava2-141
+fi;
+
+# No compilation needed!
+src_compile() { :; }
+
+src_install() {
+ # Copy all the files to the designated directory
+ dodir ${D}opt
+ dodir ${D}opt/${P}
+ cp -dpR ${S}/{bin,jre,lib,include} ${D}opt/${P}/
+
+ dodir ${D}/opt/${P}/share
+ cp -a ${S}/{demo,src.jar} ${D}opt/${P}/share/
+
+ # setting the ppc stuff
+ if [ `use ppc` ]; then
+ dosed s:/proc/cpuinfo:/etc//cpuinfo:g ${D}opt/${P}/jre/bin/libjitc.so
+ dosed s:/proc/cpuinfo:/etc//cpuinfo:g ${D}opt/${P}/jre/bin/libjitc_g.so
+ insinto ${D}/etc
+ doins ${FILESDIR}/cpuinfo
+ fi
+
+ dohtml -a html,htm,HTML -r docs
+ dodoc ${S}/docs/COPYRIGHT
+
+ inst_plugin /opt/${P}/jre/bin/libjavaplugin_oji.so
+
+ set_java_env ${FILESDIR}/${VMHANDLE}
+
+}
+
+pkg_postinst() {
+
+ #Thanks to Douglas Pollock <douglas.pollock@magma.ca> for this
+ #comment found on the sun-jdk 1.2.2 ebuild that he sent.
+ if [ !`use X` ] ; then
+ einfo "********************************************************"
+ eerror "You're not using X so its possible that you dont have"
+ eerror "a X server installed, please read the following warning: "
+ eerror "Some parts of IBM JDK require XFree86 to be installed."
+ eerror "Be careful which Java libraries you attempt to use."
+ einfo "********************************************************"
+ echo
+ fi
+ 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
+ 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
+}
+