diff options
| author | Henning Heinold <heinold@inf.fu-berlin.de> | 2011-11-12 20:58:34 +0100 |
|---|---|---|
| committer | Henning Heinold <heinold@inf.fu-berlin.de> | 2011-11-26 23:41:44 +0100 |
| commit | 57e069cde6617f00ca8834a82c6f360af43d5067 (patch) | |
| tree | 48cbe15e96d217c45acfa64b0c13aad8c6424980 /recipes-core/ecj/ecj-bootstrap-native.bb | |
| download | meta-java-57e069cde6617f00ca8834a82c6f360af43d5067.tar.gz | |
meta-java: initial commit
* taken over mostly stuff from oe classic
* cleaned up recipes
* added license checksums
* bump icedtea6-native to 1.8.11
* use jamvm from git as native
Diffstat (limited to 'recipes-core/ecj/ecj-bootstrap-native.bb')
| -rw-r--r-- | recipes-core/ecj/ecj-bootstrap-native.bb | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/recipes-core/ecj/ecj-bootstrap-native.bb b/recipes-core/ecj/ecj-bootstrap-native.bb new file mode 100644 index 0000000..df05be5 --- /dev/null +++ b/recipes-core/ecj/ecj-bootstrap-native.bb | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | # ECJ as a bootstrap compiler is a drop-in replacement for Sun's javac. It offers no more | ||
| 2 | # and no less features. | ||
| 3 | # | ||
| 4 | # This recipe uses the jar created by libecj-bootstrap. | ||
| 5 | |||
| 6 | DESCRIPTION = "JDT Core Batch Compiler - Bootstrap variant" | ||
| 7 | HOMEPAGE = "http://www.eclipse.org/" | ||
| 8 | SECTION = "devel" | ||
| 9 | LICENSE = "MIT" | ||
| 10 | LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \ | ||
| 11 | file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420 \ | ||
| 12 | " | ||
| 13 | |||
| 14 | DEPENDS = "libecj-bootstrap virtual/java-native" | ||
| 15 | |||
| 16 | PROVIDES = "virtual/javac-native" | ||
| 17 | |||
| 18 | SRC_URI = "file://ecj.in" | ||
| 19 | |||
| 20 | S = "${WORKDIR}" | ||
| 21 | |||
| 22 | JAR = "ecj-bootstrap.jar" | ||
| 23 | |||
| 24 | inherit native | ||
| 25 | |||
| 26 | do_compile() { | ||
| 27 | # Create the start script | ||
| 28 | echo "#!/bin/sh" > ecj-bootstrap | ||
| 29 | echo "ECJ_JAR=${STAGING_DATADIR}/java/${JAR}" >> ecj-bootstrap | ||
| 30 | echo "RUNTIME=java" >> ecj-bootstrap | ||
| 31 | cat ecj.in >> ecj-bootstrap | ||
| 32 | } | ||
| 33 | |||
| 34 | do_install() { | ||
| 35 | install -d ${D}${bindir} | ||
| 36 | install -m 755 ${S}/ecj-bootstrap ${D}${bindir} | ||
| 37 | install -m 755 ${S}/ecj-bootstrap ${D}${bindir}/javac | ||
| 38 | } | ||
