summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Nichols <nichoj@gentoo.org>2006-06-25 17:21:37 +0000
committerJoshua Nichols <nichoj@gentoo.org>2006-06-25 17:21:37 +0000
commita17a8d99ebc47b0a164e89e45e28d1ef169957fc (patch)
tree74fe0a9abb58ec4e67db0054b6274373f55c9a44 /dev-java/blackdown-jre/blackdown-jre-1.4.1-r12.ebuild
parentFix compiling with 2.6.17, bug 137336 (diff)
downloadgentoo-2-a17a8d99ebc47b0a164e89e45e28d1ef169957fc.tar.gz
gentoo-2-a17a8d99ebc47b0a164e89e45e28d1ef169957fc.tar.bz2
gentoo-2-a17a8d99ebc47b0a164e89e45e28d1ef169957fc.zip
Revision bumps to add support for new Java system.
(Portage version: 2.1.1_pre1)
Diffstat (limited to 'dev-java/blackdown-jre/blackdown-jre-1.4.1-r12.ebuild')
-rw-r--r--dev-java/blackdown-jre/blackdown-jre-1.4.1-r12.ebuild101
1 files changed, 101 insertions, 0 deletions
diff --git a/dev-java/blackdown-jre/blackdown-jre-1.4.1-r12.ebuild b/dev-java/blackdown-jre/blackdown-jre-1.4.1-r12.ebuild
new file mode 100644
index 000000000000..a1902cf14417
--- /dev/null
+++ b/dev-java/blackdown-jre/blackdown-jre-1.4.1-r12.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/blackdown-jre/blackdown-jre-1.4.1-r12.ebuild,v 1.1 2006/06/25 17:21:37 nichoj Exp $
+
+inherit java-vm-2 toolchain-funcs
+
+S=${WORKDIR}/j2re1.4.1
+DESCRIPTION="Blackdown Java Runtime Environment 1.4.1"
+
+SRC_URI="
+ x86? (
+ ftp://ftp.uk.linux.org/pub/linux/java//JDK-1.4.1/i386/01/j2re-1.4.1-01-linux-i586-gcc3.2.bin
+ ftp://ftp.uk.linux.org/pub/linux/java/JDK-1.4.1/i386/01/j2re-1.4.1-01-linux-i586-gcc2.95.bin
+ )
+ amd64? (
+ ftp://ftp.uk.linux.org/pub/linux/java/JDK-1.4.1/i386/01/j2re-1.4.1-01-linux-i586-gcc3.2.bin
+ )
+ sparc? (
+ ftp://ftp.uk.linux.org/pub/linux/java/JDK-1.4.1/sparc/01/j2re-1.4.1-01-linux-sparc-gcc3.2.bin
+ )"
+HOMEPAGE="http://www.blackdown.org"
+DEPEND="virtual/libc
+ emul-linux-x86? ( >=app-emulation/emul-linux-x86-baselibs-1 )
+ >=dev-java/java-config-0.2.5
+ >=sys-apps/sed-4"
+RDEPEND="${DEPEND}
+ sparc? ( >=sys-devel/gcc-3.2 )
+ amd64? ( >=sys-devel/gcc-3.2 )"
+PROVIDE="virtual/jre"
+JAVA_PROVIDE="jdbc-stdext"
+SLOT="1.4.1"
+LICENSE="sun-bcla-java-vm"
+KEYWORDS="~x86 ~sparc ~amd64 -*"
+IUSE="emul-linux-x86 nsplugin"
+
+src_unpack () {
+ typeset a want_gcc_ver
+
+ if [[ $(gcc-major-version) -eq 3 && $(gcc-minor-version) -ge 2 ]]; then
+ want_gcc_ver=3.2
+ else
+ want_gcc_ver=2.95
+ fi
+
+ for a in ${A}; do
+ if [[ ${a} == *gcc*.bin ]]; then
+ if [[ ${a} == *-gcc${want_gcc_ver}.bin ]]; then
+ echo ">>> Unpacking ${a}..."
+ tail -n +461 ${DISTDIR}/${a} | tar xjf - || die
+ fi
+ else
+ # Handle files (none right now) that don't have a gcc
+ # version dependency
+ unpack ${a}
+ fi
+ done
+}
+
+src_install() {
+ typeset platform
+
+ dodir /opt/${P}
+
+ cp -a ${S}/{bin,lib,man,plugin} ${D}/opt/${P}/
+ find ${D}/opt/${P} -type f -name "*.so" -exec chmod +x \{\} \;
+
+ dodoc COPYRIGHT LICENSE README INSTALL
+ dohtml README.html
+
+ # Install mozilla plugin
+ # do not install plugins, security vulnerability #72221
+ rm -rf ${D}/opt/${P}/plugin/
+ #if use nsplugin; then
+ # case ${ARCH} in
+ # amd64|x86) platform="i386" ;;
+ # ppc) platform="ppc" ;;
+ # sparc*) platform="sparc" ;;
+ # esac
+ # install_mozilla_plugin /opt/${P}/plugin/${platform}/mozilla/javaplugin_oji.so
+ #fi
+
+ sed -i "s/standard symbols l/symbol/g" ${D}/opt/${P}/lib/font.properties
+
+ set_java_env
+
+ # Fix for bug #26629.
+ if [[ "${PROFILE_ARCH}" == "sparc64" ]]; then
+ sed -i -e 's/\/\//\/sparc\//g' \
+ ${D}/etc/env.d/java/20blackdown-jre-1.4.1
+ fi
+}
+
+pkg_postinst() {
+ java-vm-2_pkg_postinst
+
+ if use nsplugin; then
+ echo
+ einfo "mozilla plugin NOT installed"
+ einfo "http://www.blackdown.org/java-linux/java2-status/security/Blackdown-SA-2004-01.txt"
+ fi
+}