blob: 6865a427a56028912bb868fbe13454b952faebfa (
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
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# 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-r8.ebuild,v 1.2 2002/12/09 04:20:57 manson Exp $
IUSE=""
. /usr/portage/eclass/inherit.eclass
inherit java nsplugins
S=${WORKDIR}/j2re1.3.1
DESCRIPTION="Blackdown Java Runtime Environment 1.3.1"
SRC_URI="x86? ftp://metalab.unc.edu/pub/linux/devel/lang/java/blackdown.org/JDK-1.3.1/i386/FCS/j2re-1.3.1-FCS-linux-i386.tar.bz2
ppc? ftp://metalab.unc.edu/pub/linux/devel/lang/java/blackdown.org/JDK-1.3.1/ppc/FCS-02b/j2re-1.3.1-02b-FCS-linux-ppc.bin
sparc? ftp://metalab.unc.edu/pub/linux/devel/lang/java/blackdown.org/JDK-1.3.1/sparc/FCS-02b/j2re-1.3.1-02b-FCS-linux-sparc.bin
sparc64? ftp://metalab.unc.edu/pub/linux/devel/lang/java/blackdown.org/JDK-1.3.1/sparc/FCS-02b/j2re-1.3.1-02b-FCS-linux-sparc.bin"
HOMEPAGE="http://www.blackdown.org"
DEPEND="virtual/glibc
>=dev-java/java-config-0.2.5"
RDEPEND="$DEPEND"
PROVIDE="virtual/jre-1.3.1
virtual/java-scheme-2"
SLOT="0"
LICENSE="sun-bcla"
KEYWORDS="~x86 ~ppc ~sparc "
src_unpack () {
if (use ppc) || (use sparc) || (use sparc64) ; then
tail +422 ${DISTDIR}/${A} | tar xjf -
else
unpack ${A}
fi
if (use sparc) || (use sparc64) ; then
# The files are owned by 1000.100, for some reason.
chown -R root.root
fi
}
src_install () {
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
# Install mozilla plugin
if [ "${ARCH}" == "x86" ] ; then
PLATFORM="i386"
elif [ "${ARCH}" == "ppc" ] ; then
PLATFORM="ppc"
elif [ "${ARCH}" == "sparc" ] || [ "${ARCH}" == "sparc64" ] ; then
PLATFORM="sparc"
fi
inst_plugin /opt/${P}/plugin/${PLATFORM}/mozilla/javaplugin_oji.so
mv ${D}/opt/${P}/lib/font.properties ${D}/opt/${P}/lib/font.properties.orig
sed "s/standard symbols l/symbol/g" \
< ${D}/opt/${P}/lib/font.properties.orig \
> ${D}/opt/${P}/lib/font.properties
rm ${D}/opt/${P}/lib/font.properties.orig
set_java_env ${FILESDIR}/${VMHANDLE}
}
pkg_postinst () {
java_pkg_postinst
}
|