blob: 7b33ec7d058a92bcd0196b1407708de9fd99812f (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/sun-java3d-bin/sun-java3d-bin-1.32.ebuild,v 1.1 2004/07/31 14:17:50 axxo Exp $
MY_P="java3d-1_3_2-build4-linux-i586"
DESCRIPTION="Sun Java3D"
HOMEPAGE="https://j3d-core.dev.java.net/"
SRC_URI="https://j3d-core.dev.java.net/files/documents/1674/5613/${MY_P}.tar.gz"
KEYWORDS="~x86"
SLOT="0"
LICENSE="sun-jrl sun-jdl"
IUSE=""
DEPEND=">=virtual/jdk-1.3
dev-java/java-config"
RDEPEND=">=virtual/jdk-1.3"
RESTRICT="nomirror"
S=${WORKDIR}/${MY_P}
pkg_nofetch() {
einfo "Please download ${SRC_URI} from ${HOMEPAGE} and place it in ${DISTDIR}"
}
src_unpack() {
unpack ${A}
cd ${S}
jar xvf j3d-132-build4-linux-x86.jar
}
src_install() {
start=${D}
jre=""
java_home="$(java-config --jdk-home)"
if [ ! -z "${java_home}" ]; then
jre="jre/"
else
java_home="$(java-config --jre-home)"
if [ -z ${java_home} ]; then
die "You must have a JVM selected in order to install Java3d"
fi
fi
einfo "Installing Java3D into current JAVA home: ${java_home}"
dodir ${java_home}/${jre}
cp -a lib ${D}/${java_home}/${jre}
dodoc COPYRIGHT.txt README.txt
}
|