summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHerbie Hopkins <herbs@gentoo.org>2005-12-08 17:19:36 +0000
committerHerbie Hopkins <herbs@gentoo.org>2005-12-08 17:19:36 +0000
commit7a6b25ed9e6a28d11a0bf32d8a25d86d2d81f7a1 (patch)
tree58d912346db67f874d80a0b88727476eff0b5971 /app-emulation
parentfix the deps (bug #114196) (diff)
downloadgentoo-2-7a6b25ed9e6a28d11a0bf32d8a25d86d2d81f7a1.tar.gz
gentoo-2-7a6b25ed9e6a28d11a0bf32d8a25d86d2d81f7a1.tar.bz2
gentoo-2-7a6b25ed9e6a28d11a0bf32d8a25d86d2d81f7a1.zip
Initial release.
(Portage version: 2.0.53)
Diffstat (limited to 'app-emulation')
-rw-r--r--app-emulation/emul-linux-x86-java/ChangeLog11
-rw-r--r--app-emulation/emul-linux-x86-java/Manifest5
-rw-r--r--app-emulation/emul-linux-x86-java/emul-linux-x86-java-1.4.2.02.ebuild114
-rw-r--r--app-emulation/emul-linux-x86-java/files/digest-emul-linux-x86-java-1.4.2.021
-rw-r--r--app-emulation/emul-linux-x86-java/files/javasettings_Linux_x86.xml16
-rw-r--r--app-emulation/emul-linux-x86-java/metadata.xml9
6 files changed, 156 insertions, 0 deletions
diff --git a/app-emulation/emul-linux-x86-java/ChangeLog b/app-emulation/emul-linux-x86-java/ChangeLog
new file mode 100644
index 000000000000..24414d7f1b99
--- /dev/null
+++ b/app-emulation/emul-linux-x86-java/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for app-emulation/emul-linux-x86-java
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-java/ChangeLog,v 1.1 2005/12/08 17:19:36 herbs Exp $
+
+*emul-linux-x86-java-1.4.2.02 (08 Dec 2005)
+
+ 08 Dec 2005; Herbie Hopkins <herbs@gentoo.org>
+ +files/javasettings_Linux_x86.xml, +metadata.xml,
+ +emul-linux-x86-java-1.4.2.02.ebuild:
+ Initial release, largely based on blackdown-jre ebuild.
+
diff --git a/app-emulation/emul-linux-x86-java/Manifest b/app-emulation/emul-linux-x86-java/Manifest
new file mode 100644
index 000000000000..ade60e06d218
--- /dev/null
+++ b/app-emulation/emul-linux-x86-java/Manifest
@@ -0,0 +1,5 @@
+MD5 e0e7216a90843e0a7ea4e1ba48344181 ChangeLog 379
+MD5 a3771c49ea2b95ec900e8f8c2d0a57de emul-linux-x86-java-1.4.2.02.ebuild 3028
+MD5 e2f091d8120733e38f13e98d7b2c9152 files/digest-emul-linux-x86-java-1.4.2.02 75
+MD5 40fcbcc585ad443b5bf473228c8ef18d files/javasettings_Linux_x86.xml 1601
+MD5 ef1a1d0bbdb241725417e87002ec4d16 metadata.xml 223
diff --git a/app-emulation/emul-linux-x86-java/emul-linux-x86-java-1.4.2.02.ebuild b/app-emulation/emul-linux-x86-java/emul-linux-x86-java-1.4.2.02.ebuild
new file mode 100644
index 000000000000..1be81646f971
--- /dev/null
+++ b/app-emulation/emul-linux-x86-java/emul-linux-x86-java-1.4.2.02.ebuild
@@ -0,0 +1,114 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-java/emul-linux-x86-java-1.4.2.02.ebuild,v 1.1 2005/12/08 17:19:36 herbs Exp $
+
+inherit multilib java versionator
+
+JREV="02"
+
+JV="${PV}"
+JV=$(get_version_component_range 1-3 ${JV})
+DESCRIPTION="32bit java emulation for amd64"
+J_URI="mirror://blackdown.org/JDK-${JV}"
+SRC_URI="${J_URI}/i386/${JREV}/j2re-${JV}-${JREV}-linux-i586.bin"
+
+HOMEPAGE="http://www.blackdown.org"
+
+SLOT="1.4.2"
+LICENSE="sun-bcla-java-vm"
+KEYWORDS="-* ~amd64"
+IUSE="nsplugin"
+DEPEND="virtual/libc
+ >=sys-apps/sed-4"
+PROVIDE="virtual/jre"
+
+S="${WORKDIR}/j2re${JV}"
+
+JAVAHOME="${D}/opt/java32"
+
+# 32bit binary package
+ABI="x86"
+
+# Extract the 'skip' value (offset of tarball) we should pass to tail
+get_offset() {
+ [ ! -f "$1" ] && return
+
+ local offset="`gawk '
+ /^[[:space:]]*skip[[:space:]]*=/ {
+
+ sub(/^[[:space:]]*skip[[:space:]]*=/, "")
+ SKIP = $0
+ }
+
+ END { print SKIP }
+ ' $1`"
+
+ eval echo $offset
+}
+
+src_unpack () {
+ local offset="`get_offset ${DISTDIR}/${A}`"
+
+ if [ -z "${offset}" ] ; then
+ eerror "Failed to get offset of tarball!"
+ die "Failed to get offset of tarball!"
+ fi
+
+ echo ">>> Unpacking ${A}..."
+ tail -n +${offset} ${DISTDIR}/${A} | tar --no-same-owner -jxpf -
+}
+
+unpack_jars() {
+ # New to 1.4.2
+ local PACKED_JARS="lib/tools.jar lib/rt.jar lib/jsse.jar lib/charsets.jar lib/ext/localedata.jar lib/plugin.jar javaws/javaws.jar"
+ local UNPACK_CMD=""
+ if [ -f "$JAVAHOME/lib/unpack" ]; then
+ UNPACK_CMD="$JAVAHOME/lib/unpack"
+ chmod +x "$UNPACK_CMD"
+ #packerror=""
+ sed -i 's#/tmp/unpack.log#/dev/null\x00\x00\x00\x00\x00\x00#g' $UNPACK_CMD
+ for i in $PACKED_JARS; do
+ if [ -f "$JAVAHOME/`dirname $i`/`basename $i .jar`.pack" ]; then
+ einfo "Creating ${JAVAHOME}/${i}\n"
+ "$UNPACK_CMD" "$JAVAHOME/`dirname $i`/`basename $i .jar`.pack" "$JAVAHOME/$i"
+ if [ ! -f "$JAVAHOME/$i" ]; then
+ die "Failed to unpack jar files ${i}." # Please refer\n"
+ #ewarn "to the Troubleshooting section of the Installation\n"
+ #ewarn "Instructions on the download page for more information.n"
+ #packerror="1"
+ fi
+ rm -f "$JAVAHOME/`dirname $i`/`basename $i .jar`.pack"
+ fi
+ done
+ fi
+ rm -f "$UNPACK_CMD"
+}
+
+src_install() {
+ typeset platform
+
+ dodir /opt/java32
+
+ cp -pPR ${S}/{bin,lib,man,plugin} ${JAVAHOME} || die "failed to copy"
+
+ dodoc COPYRIGHT README
+ dohtml README.html
+
+ # Install mozilla plugin
+ if use nsplugin ; then
+ install_mozilla_plugin /opt/java32/plugin/i386/mozilla/libjavaplugin_oji.so
+ fi
+
+ sed -i "s/standard symbols l/symbol/g" ${D}/opt/java32/lib/font.properties
+
+ find ${JAVAHOME} -type f -name "*.so" -exec chmod +x \{\} \;
+
+ unpack_jars
+
+ # Install java settings file for openoffice so that it will not try
+ # to use the native 64bit jre and cause 2 minute startup...
+ dodir /usr/$(get_libdir)/openoffice/share/config
+ insinto /usr/$(get_libdir)/openoffice/share/config
+ doins ${FILESDIR}/javasettings_Linux_x86.xml
+}
+
diff --git a/app-emulation/emul-linux-x86-java/files/digest-emul-linux-x86-java-1.4.2.02 b/app-emulation/emul-linux-x86-java/files/digest-emul-linux-x86-java-1.4.2.02
new file mode 100644
index 000000000000..c831d5bbd54e
--- /dev/null
+++ b/app-emulation/emul-linux-x86-java/files/digest-emul-linux-x86-java-1.4.2.02
@@ -0,0 +1 @@
+MD5 c209c959ce4ab0188e77d065ec57901a j2re-1.4.2-02-linux-i586.bin 13523250
diff --git a/app-emulation/emul-linux-x86-java/files/javasettings_Linux_x86.xml b/app-emulation/emul-linux-x86-java/files/javasettings_Linux_x86.xml
new file mode 100644
index 000000000000..046621d20f40
--- /dev/null
+++ b/app-emulation/emul-linux-x86-java/files/javasettings_Linux_x86.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--This is a generated file. Do not alter this file!-->
+<java xmlns="http://openoffice.org/2004/java/framework/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+<enabled xsi:nil="true"/>
+<userClassPath xsi:nil="true"/>
+<vmParameters xsi:nil="true"/>
+<jreLocations xsi:nil="true"/>
+<javaInfo xsi:nil="false" vendorUpdate="2004-01-30" autoSelect="true">
+<vendor>Blackdown Java-Linux Team</vendor>
+<location>file:///opt/java32</location>
+<version>1.4.2-02</version>
+<features>0</features>
+<requirements>1</requirements>
+<vendorData>660069006C0065003A002F002F002F006F00700074002F006A00610076006100330032002F006C00690062002F0069003300380036002F0063006C00690065006E0074002F006C00690062006A0076006D002E0073006F000A002F006F00700074002F006A00610076006100330032002F00620069006E003A002F006F00700074002F006A00610076006100330032002F006A00720065002F00620069006E003A002F006F00700074002F006A00610076006100330032002F00620069006E002F0063006C00610073007300690063003A002F006F00700074002F006A00610076006100330032002F006A00720065002F00620069006E002F0063006C00610073007300690063003A002F006F00700074002F006A00610076006100330032002F006C00690062002F0069003300380036002F0063006C00690065006E0074003A002F006F00700074002F006A00610076006100330032002F006C00690062002F0069003300380036002F0063006C00610073007300690063003A002F006F00700074002F006A00610076006100330032002F006C00690062002F0069003300380036002F006E00610074006900760065005F0074006800720065006100640073003A002F006F00700074002F006A00610076006100330032002F006C00690062002F0069003300380036000A00</vendorData>
+</javaInfo>
+</java>
diff --git a/app-emulation/emul-linux-x86-java/metadata.xml b/app-emulation/emul-linux-x86-java/metadata.xml
new file mode 100644
index 000000000000..51479f955314
--- /dev/null
+++ b/app-emulation/emul-linux-x86-java/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>amd64</herd>
+ <maintainer>
+ <email>herbs@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
+