summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAdrian Almenar <strider@gentoo.org>2003-11-04 03:47:09 +0000
committerAdrian Almenar <strider@gentoo.org>2003-11-04 03:47:09 +0000
commitd6f2cf20b8616380b424b735dde2d1a3f6321337 (patch)
tree78bffffc67a664a73c5b55dd76241f0650d02130 /eclass
parentThis should fix bug #26629 (diff)
downloadgentoo-2-d6f2cf20b8616380b424b735dde2d1a3f6321337.tar.gz
gentoo-2-d6f2cf20b8616380b424b735dde2d1a3f6321337.tar.bz2
gentoo-2-d6f2cf20b8616380b424b735dde2d1a3f6321337.zip
Should Fix bug #26629
Diffstat (limited to 'eclass')
-rw-r--r--eclass/java.eclass9
1 files changed, 6 insertions, 3 deletions
diff --git a/eclass/java.eclass b/eclass/java.eclass
index 51182bb1f80e..c9feb9b8af0a 100644
--- a/eclass/java.eclass
+++ b/eclass/java.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/java.eclass,v 1.12 2003/05/20 01:29:57 tberman Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/java.eclass,v 1.13 2003/11/04 03:47:09 strider Exp $
#
# Author: Karl Trygve Kalleberg <karltk@gentoo.org>
@@ -54,20 +54,23 @@ pkg_postinst() {
system_arch() {
local sarch
- sarch=`echo $ARCH | sed -e s/[i]*.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/`
+ sarch=`echo $ARCH | sed -e s/[i]*.86/i386/ -e s/x86_64/i386/ -e s/sun4u/sparc/ -e s/sparc64/sparc/ -e s/arm.*/arm/ -e s/sa110/arm/`
if [ -z "$sarch" ] ; then
- sarch=`uname -m | sed -e s/[i]*.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/`
+ sarch=`uname -m | sed -e s/[i]*.86/i386/ -e s/x86_64/i386/ -e s/sun4u/sparc/ -e s/sparc64/sparc/ -e s/arm.*/arm/ -e s/sa110/arm/`
fi
echo $sarch
}
set_java_env() {
dodir /etc/env.d/java
+ platform=`system_arch`
+
sed \
-e "s/@P@/${P}/g" \
-e "s/@PN@/${PN}/g" \
-e "s/@PV@/${PV}/g" \
-e "s/@PF@/${PF}/g" \
+ -e "s/@PLATFORM@/${platform}/g" \
-e "/^ADDLDPATH=.*lib\\/\\\"/s|\"\\(.*\\)\"|\"\\1${platform}/:\\1${platform}/server/\"|" \
< $1 \
> ${D}/etc/env.d/java/20`basename $1` || die