summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraham Forest <vitaminmoo@gentoo.org>2003-03-23 20:11:03 +0000
committerGraham Forest <vitaminmoo@gentoo.org>2003-03-23 20:11:03 +0000
commitc2168d1202a505f12b70df66ea8d0421a3513c92 (patch)
tree9a67882883ca3c333208426dabadfc9fb567b315 /dev-java/blackdown-jdk/blackdown-jdk-1.3.1-r10.ebuild
parentFixed error in digest commit (diff)
downloadhistorical-c2168d1202a505f12b70df66ea8d0421a3513c92.tar.gz
historical-c2168d1202a505f12b70df66ea8d0421a3513c92.tar.bz2
historical-c2168d1202a505f12b70df66ea8d0421a3513c92.zip
Incredibly stupid naming error
Diffstat (limited to 'dev-java/blackdown-jdk/blackdown-jdk-1.3.1-r10.ebuild')
-rw-r--r--dev-java/blackdown-jdk/blackdown-jdk-1.3.1-r10.ebuild88
1 files changed, 88 insertions, 0 deletions
diff --git a/dev-java/blackdown-jdk/blackdown-jdk-1.3.1-r10.ebuild b/dev-java/blackdown-jdk/blackdown-jdk-1.3.1-r10.ebuild
new file mode 100644
index 000000000000..3a66ede4afc6
--- /dev/null
+++ b/dev-java/blackdown-jdk/blackdown-jdk-1.3.1-r10.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/blackdown-jdk/blackdown-jdk-1.3.1-r10.ebuild,v 1.1 2003/03/23 20:11:03 vladimir Exp $
+
+IUSE="doc"
+
+inherit java nsplugins
+
+S=${WORKDIR}/j2sdk1.3.1
+DESCRIPTION="Blackdown Java Development Kit 1.3.1"
+SRC_URI="ppc? http://distro.ibiblio.org/pub/Linux/distributions/yellowdog/software/openoffice/j2sdk-1.3.1-02c-FCS-linux-ppc.bin"
+
+HOMEPAGE="http://www.blackdown.org"
+DEPEND="virtual/glibc
+ >=dev-java/java-config-0.2.5
+ doc? ( =dev-java/java-sdk-docs-1.3.1* )"
+RDEPEND="$DEPEND"
+PROVIDE="virtual/jdk-1.3.1
+ virtual/jre-1.3.1
+ virtual/java-scheme-2"
+SLOT="1.3"
+LICENSE="sun-bcla"
+
+# other arches need to chase down their new updates when they become available
+KEYWORDS="ppc"
+
+src_unpack () {
+ if (use ppc) || (use sparc) ; then
+ # this is built on gcc 3.2 so only update if gcc 3.x is present
+ [ -z "${CC}" ] && CC=gcc
+ if [ "`${CC} -dumpversion | cut -d. -f1,2`" = "2.95" ] ; then
+ die "This is for gcc 3.x only"
+ fi
+ tail +400 ${DISTDIR}/${A} | tar xjf -
+ else
+ unpack ${A}
+ fi
+
+ if (use sparc) ; then
+ # Everything is owned by 1000.100, for some reason..
+ chown -R root.root .
+ fi
+}
+
+
+src_install () {
+
+ dodir /opt/${P}
+
+ cp -dpR ${S}/{bin,jre,lib,man,include,include-old} ${D}/opt/${P}
+
+ dodir /opt/${P}/share/java
+ cp -R ${S}/{demo,src.jar} ${D}/opt/${P}/share
+
+ dodoc COPYRIGHT LICENSE README INSTALL
+ dohtml README.html
+
+ # Install ns plugin
+ if [ "${ARCH}" == "x86" ] ; then
+ PLATFORM="i386"
+ elif [ "${ARCH}" == "ppc" ] ; then
+ PLATFORM="ppc"
+ elif [ "${ARCH}" == "sparc" ] ; then
+ PLATFORM="sparc"
+ fi
+
+ inst_plugin /opt/${P}/jre/plugin/${PLATFORM}/mozilla/javaplugin_oji.so
+
+ find ${D}/opt/${P} -type f -name "*.so" -exec chmod +x \{\} \;
+
+ mv ${D}/opt/${P}/jre/lib/font.properties ${D}/opt/${P}/jre/lib/font.properties.orig
+ sed "s/standard symbols l/symbol/g" \
+ < ${D}/opt/${P}/jre/lib/font.properties.orig \
+ > ${D}/opt/${P}/jre/lib/font.properties
+ rm ${D}/opt/${P}/jre/lib/font.properties.orig
+
+ dosym /opt/blackdown-jdk-1.3.1/include/linux/jni_md.h \
+ /opt/blackdown-jdk-1.3.1/include/jni_md.h
+
+ # install env into /etc/env.d
+ set_java_env ${FILESDIR}/${VMHANDLE} || die
+}
+
+pkg_postinst () {
+ # Set as default system VM if none exists
+ java_pkg_postinst
+}
+