summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVlastimil Babka <caster@gentoo.org>2011-10-22 23:52:37 +0000
committerVlastimil Babka <caster@gentoo.org>2011-10-22 23:52:37 +0000
commit144d2c51ea9fe071d674464bc9963d6ab8aa7c1b (patch)
tree0eeefa38b0f7b808d569803b13963962ace5851d /dev-java
parentSimplify unpacking. (diff)
downloadgentoo-2-144d2c51ea9fe071d674464bc9963d6ab8aa7c1b.tar.gz
gentoo-2-144d2c51ea9fe071d674464bc9963d6ab8aa7c1b.tar.bz2
gentoo-2-144d2c51ea9fe071d674464bc9963d6ab8aa7c1b.zip
Simplify unpacking.
(Portage version: 2.2.0_alpha68/cvs/Linux x86_64)
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/sun-jre-bin/ChangeLog5
-rw-r--r--dev-java/sun-jre-bin/sun-jre-bin-1.6.0.29.ebuild43
2 files changed, 6 insertions, 42 deletions
diff --git a/dev-java/sun-jre-bin/ChangeLog b/dev-java/sun-jre-bin/ChangeLog
index 985dd73e3ab3..be2273049e3e 100644
--- a/dev-java/sun-jre-bin/ChangeLog
+++ b/dev-java/sun-jre-bin/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-java/sun-jre-bin
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jre-bin/ChangeLog,v 1.197 2011/10/22 23:26:08 caster Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jre-bin/ChangeLog,v 1.198 2011/10/22 23:52:37 caster Exp $
+
+ 22 Oct 2011; Vlastimil Babka <caster@gentoo.org> sun-jre-bin-1.6.0.29.ebuild:
+ Simplify unpacking.
*sun-jre-bin-1.6.0.29 (22 Oct 2011)
diff --git a/dev-java/sun-jre-bin/sun-jre-bin-1.6.0.29.ebuild b/dev-java/sun-jre-bin/sun-jre-bin-1.6.0.29.ebuild
index 0e118fe19b1b..004ad754ed29 100644
--- a/dev-java/sun-jre-bin/sun-jre-bin-1.6.0.29.ebuild
+++ b/dev-java/sun-jre-bin/sun-jre-bin-1.6.0.29.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jre-bin/sun-jre-bin-1.6.0.29.ebuild,v 1.1 2011/10/22 23:26:08 caster Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-jre-bin/sun-jre-bin-1.6.0.29.ebuild,v 1.2 2011/10/22 23:52:37 caster Exp $
EAPI="4"
@@ -61,41 +61,7 @@ pkg_nofetch() {
}
src_unpack() {
- # Do a little voodoo to extract the distfile
- # Find the ELF in the script
- testExp=$(echo -e '\0105\0114\0106')
- startAt=$(grep -aonm 1 ${testExp} ${DISTDIR}/${A} | cut -d: -f1)
- # Extract and run it
- tail -n +${startAt} "${DISTDIR}"/${A} > install.sfx
- chmod +x install.sfx
- ./install.sfx >/dev/null || die
- rm install.sfx
-
- local packed_jars=(
- lib/deploy.jar
- lib/charsets.jar
- lib/javaws.jar
- lib/jsse.jar
- lib/ext/localedata.jar
- lib/plugin.jar
- lib/rt.jar)
-
- if [ -f "${S}"/bin/unpack200 ]; then
- UNPACK_CMD="${S}"/bin/unpack200
- chmod +x $UNPACK_CMD
- sed -i 's#/tmp/unpack.log#/dev/null\x00\x00\x00\x00\x00\x00#g' $UNPACK_CMD
- for i in "${packed_jars[@]}"; do
- PACK_FILE=${S}/$(dirname $i)/$(basename $i .jar).pack
- if [ -f ${PACK_FILE} ]; then
- echo " unpacking: $i"
- $UNPACK_CMD ${PACK_FILE} "${S}"/$i || die "unpack failed"
- rm -f ${PACK_FILE} || die "rm ${PACK_FILE} failed"
- fi
- done
- rm -f ${UNPACK_CMD} || die "rm ${UNPACK_CMD} failed"
- else
- die "unpack not found"
- fi
+ sh "${DISTDIR}"/${A} -noregister || die "Failed to unpack"
}
src_compile() {
@@ -109,11 +75,6 @@ src_compile() {
"${S}"/bin/java -client -Xshare:dump || die
fi
"${S}"/bin/java -server -Xshare:dump || die
-
- # Create files used as storage for system preferences.
- mkdir .systemPrefs || die
- touch .systemPrefs/.system.lock || die
- touch .systemPrefs/.systemRootModFile || die
}
src_install() {