blob: f47c62cc4951a26dd105d7e85eb773a69801294b (
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
|
require openjdk-8-release-102b14.inc
require openjdk-8-cross.inc
do_install() {
rm -rf ${D}${JRE_HOME}
mkdir -p ${D}${JRE_HOME}
cp -rp ${B}/images/j2re-image/* ${D}${JRE_HOME}
chown -R root:root ${D}${JRE_HOME}
install -m644 ${WORKDIR}/jvm.cfg ${D}${JRE_HOME}/lib/${JDK_ARCH}/
find ${D}${JRE_HOME} -name "*.debuginfo" -print0 | xargs -0 rm
}
FILES_${PN}_append = "\
${JRE_HOME}/bin/[a-z]* \
${JRE_HOME}/lib/[a-z]* \
${JRE_HOME}/LICENSE \
${JRE_HOME}/release \
"
FILES_${PN}-dbg_append = "\
${JRE_HOME}/bin/.debug/ \
${JRE_HOME}/lib/.debug/ \
${JRE_HOME}/lib/${JDK_ARCH}/.debug/ \
${JRE_HOME}/lib/${JDK_ARCH}/jli/.debug/ \
${JRE_HOME}/lib/${JDK_ARCH}/server/.debug/ \
"
FILES_${PN}-doc_append = "\
${JRE_HOME}/man \
${JRE_HOME}/ASSEMBLY_EXCEPTION \
${JRE_HOME}/THIRD_PARTY_README \
"
RPROVIDES_${PN} = "java2-vm"
PROVIDES_${PN} = "java2-vm"
RPROVIDES_${PN} = "java2-runtime"
PROVIDES_${PN} = "java2-runtime"
inherit update-alternatives
ALTERNATIVE_${PN} = "java"
ALTERNATIVE_LINK_NAME[java] = "${bindir}/java"
ALTERNATIVE_TARGET[java] = "${JRE_HOME}/bin/java"
ALTERNATIVE_PRIORITY[java] = "100"
|