blob: 492c6f96788dd869bc470ae6954e5d1a854d1a47 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Copyright 1999-2005 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.3.1-r9.ebuild,v 1.23 2005/10/18 19:22:41 agriffis Exp $
inherit java toolchain-funcs
S=${WORKDIR}/j2re1.3.1
DESCRIPTION="Blackdown Java Runtime Environment 1.3.1"
HOMEPAGE="http://www.blackdown.org"
SRC_URI="ppc? ( http://distro.ibiblio.org/pub/Linux/distributions/yellowdog/software/openoffice/j2re-1.3.1-02c-FCS-linux-ppc.bin )"
LICENSE="sun-bcla-java-vm"
SLOT="0"
KEYWORDS="ppc -*"
IUSE="nsplugin mozilla"
DEPEND="virtual/libc
>=dev-java/java-config-0.2.5
>=sys-apps/sed-4
>=sys-devel/gcc-3.2"
PROVIDE="virtual/jre"
src_unpack() {
for a in ${A}; do
if [[ ${a} == *.bin ]]; then
echo ">>> Unpacking ${a}..."
tail -n +422 ${DISTDIR}/${a} | tar xjf - || die
else
# Handle files (none right now) that don't have a gcc
# version dependency
unpack ${a}
fi
done
# On sparc the files are owned by 1000:100 for some reason
if use sparc; then
# The files are owned by 1000.100, for some reason.
chown -R root:root
fi
}
src_install() {
typeset platform
dodir /opt/${P}
cp -dpR ${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
if use nsplugin || use mozilla; 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 ${FILESDIR}/${VMHANDLE}
if ! use nsplugin && use mozilla; then
ewarn
ewarn "The 'mozilla' useflag to enable the java browser plugin for applets"
ewarn "has been renamed to 'nsplugin' please update your USE"
fi
}
|