blob: 2b5c4f4dad06bec668ddd89abedcce4d3b25c551 (
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/dev-java/blackdown-jdk/blackdown-jdk-1.3.1-r7.ebuild,v 1.2 2002/07/11 06:30:19 drobbins Exp $
. /usr/portage/eclass/inherit.eclass
inherit java
case `system_arch` in
ppc)
PLATFORM="ppc"
FCS="FCS-02b"
MY_P="j2sdk-1.3.1-02b-FCS-linux-ppc.bin"
;;
i386)
PLATFORM="i386"
FCS="FCS"
MY_P="j2sdk-1.3.1-FCS-linux-i386.tar.bz2"
;;
sparc)
;;
sparc64)
;;
esac
S=${WORKDIR}/j2sdk1.3.1
DESCRIPTION="Blackdown Java Development Kit 1.3.1"
SRC_URI="ftp://metalab.unc.edu/pub/linux/devel/lang/java/blackdown.org/JDK-1.3.1/${PLATFORM}/${FCS}/${MY_P}"
HOMEPAGE="http://www.blackdown.org"
DEPEND="virtual/glibc
>=dev-java/java-config-0.2.0"
RDEPEND="$DEPEND"
PROVIDE="virtual/jdk-1.3
virtual/jre-1.3
virtual/java-scheme-2"
SLOT="0"
LICENSE=""
src_unpack () {
if [ $PLATFORM = "ppc" ]; then
tail +400 ${DISTDIR}/${MY_P} > j2sdk-1.3.1-ppc.tar.bz2
tar -xjf j2sdk-1.3.1-ppc.tar.bz2
else
unpack ${MY_P}
fi
}
src_install () {
dodir /opt/${P}
cp -dpR ${S}/{bin,jre,lib,man,include,include-old} ${D}/opt/${P}
dodir /opt/${P}/share/java
cp -R ${S}/{demo,src.jar} ${D}/opt/${P}/share
dodoc COPYRIGHT LICENSE README INSTALL
dohtml README.html
# Install mozilla plugin
install_mozilla_plugin /opt/${P}/jre/plugin/${PLATFORM}/mozilla/javaplugin_oji.so
find ${D}/opt/${P} -type f -name "*.so" -exec chmod +x \{\} \;
mv ${D}/opt/${P}/jre/lib/font.properties ${D}/opt/${P}/jre/lib/font.properties.orig
sed "s/standard symbols l/symbol/g" \
< ${D}/opt/${P}/jre/lib/font.properties.orig \
> ${D}/opt/${P}/jre/lib/font.properties
rm ${D}/opt/${P}/jre/lib/font.properties.orig
# install env into /etc/env.d
set_java_env ${FILESDIR}/${VMHANDLE} || die
}
pkg_postinst () {
# Set as default system VM if none exists
java_pkg_postinst
if [ -z "`use mozilla`" ] ; then
einfo "For instructions on installing the ${P} browser plugin for"
einfo "Netscape and Mozilla, see /usr/share/doc/${P}/INSTALL."
fi
}
|