summaryrefslogtreecommitdiff
path: root/packages/ecj
diff options
context:
space:
mode:
Diffstat (limited to 'packages/ecj')
-rw-r--r--packages/ecj/ecj-bootstrap-native.bb (renamed from packages/ecj/ecj-bootstrap-native_3.3.2.bb)8
-rw-r--r--packages/ecj/ecj-bootstrap-native_3.3.bb38
-rw-r--r--packages/ecj/ecj-bootstrap-native_3.4.bb38
-rw-r--r--packages/ecj/ecj-initial.bb31
-rw-r--r--packages/ecj/ecj-initial_3.3.2.bb84
-rw-r--r--packages/ecj/ecj-initial_3.4.bb84
-rw-r--r--packages/ecj/libecj-bootstrap.inc (renamed from packages/ecj/ecj-initial_3.3.bb)29
-rw-r--r--packages/ecj/libecj-bootstrap_3.3.2.bb6
-rw-r--r--packages/ecj/libecj-bootstrap_3.3.bb6
-rw-r--r--packages/ecj/libecj-bootstrap_3.4.bb6
10 files changed, 58 insertions, 272 deletions
diff --git a/packages/ecj/ecj-bootstrap-native_3.3.2.bb b/packages/ecj/ecj-bootstrap-native.bb
index bd4347457c..04f8ba4062 100644
--- a/packages/ecj/ecj-bootstrap-native_3.3.2.bb
+++ b/packages/ecj/ecj-bootstrap-native.bb
@@ -1,9 +1,7 @@
# ECJ as a bootstrap compiler is a drop-in replacement for Sun's javac. It offers no more
# and no less features.
#
-# Since the VM running the compiler has no effect on the produced bytecode this recipe
-# uses the jar created by ecj-initial and creates a start script that runs it with a different
-# VM.
+# This recipe uses the jar created by libecj-bootstrap.
DESCRIPTION = "JDT Core Batch Compiler - Bootstrap variant"
HOMEPAGE = "http://www.eclipse.org/"
@@ -11,7 +9,7 @@ SECTION = "devel"
PRIORITY = "optional"
LICENSE = "EPL"
-DEPENDS = "ecj-initial virtual/java-native"
+DEPENDS = "libecj-bootstrap"
PROVIDES = "virtual/javac-native"
@@ -19,7 +17,7 @@ SRC_URI = "file://ecj.in"
S = "${WORKDIR}"
-JAR = "ecj-bootstrap-${PV}.jar"
+JAR = "ecj-bootstrap.jar"
inherit native
diff --git a/packages/ecj/ecj-bootstrap-native_3.3.bb b/packages/ecj/ecj-bootstrap-native_3.3.bb
deleted file mode 100644
index bd4347457c..0000000000
--- a/packages/ecj/ecj-bootstrap-native_3.3.bb
+++ /dev/null
@@ -1,38 +0,0 @@
-# ECJ as a bootstrap compiler is a drop-in replacement for Sun's javac. It offers no more
-# and no less features.
-#
-# Since the VM running the compiler has no effect on the produced bytecode this recipe
-# uses the jar created by ecj-initial and creates a start script that runs it with a different
-# VM.
-
-DESCRIPTION = "JDT Core Batch Compiler - Bootstrap variant"
-HOMEPAGE = "http://www.eclipse.org/"
-SECTION = "devel"
-PRIORITY = "optional"
-LICENSE = "EPL"
-
-DEPENDS = "ecj-initial virtual/java-native"
-
-PROVIDES = "virtual/javac-native"
-
-SRC_URI = "file://ecj.in"
-
-S = "${WORKDIR}"
-
-JAR = "ecj-bootstrap-${PV}.jar"
-
-inherit native
-
-do_compile() {
- # Create the start script
- echo "#!/bin/sh" > ecj-bootstrap
- echo "ECJ_JAR=${STAGING_DATADIR}/java/${JAR}" >> ecj-bootstrap
- echo "RUNTIME=java" >> ecj-bootstrap
- cat ecj.in >> ecj-bootstrap
-}
-
-do_stage() {
- install -d ${STAGING_BINDIR}
- install -m 755 ${S}/ecj-bootstrap ${STAGING_BINDIR}
- install -m 755 ${S}/ecj-bootstrap ${STAGING_BINDIR}/javac
-}
diff --git a/packages/ecj/ecj-bootstrap-native_3.4.bb b/packages/ecj/ecj-bootstrap-native_3.4.bb
deleted file mode 100644
index bd4347457c..0000000000
--- a/packages/ecj/ecj-bootstrap-native_3.4.bb
+++ /dev/null
@@ -1,38 +0,0 @@
-# ECJ as a bootstrap compiler is a drop-in replacement for Sun's javac. It offers no more
-# and no less features.
-#
-# Since the VM running the compiler has no effect on the produced bytecode this recipe
-# uses the jar created by ecj-initial and creates a start script that runs it with a different
-# VM.
-
-DESCRIPTION = "JDT Core Batch Compiler - Bootstrap variant"
-HOMEPAGE = "http://www.eclipse.org/"
-SECTION = "devel"
-PRIORITY = "optional"
-LICENSE = "EPL"
-
-DEPENDS = "ecj-initial virtual/java-native"
-
-PROVIDES = "virtual/javac-native"
-
-SRC_URI = "file://ecj.in"
-
-S = "${WORKDIR}"
-
-JAR = "ecj-bootstrap-${PV}.jar"
-
-inherit native
-
-do_compile() {
- # Create the start script
- echo "#!/bin/sh" > ecj-bootstrap
- echo "ECJ_JAR=${STAGING_DATADIR}/java/${JAR}" >> ecj-bootstrap
- echo "RUNTIME=java" >> ecj-bootstrap
- cat ecj.in >> ecj-bootstrap
-}
-
-do_stage() {
- install -d ${STAGING_BINDIR}
- install -m 755 ${S}/ecj-bootstrap ${STAGING_BINDIR}
- install -m 755 ${S}/ecj-bootstrap ${STAGING_BINDIR}/javac
-}
diff --git a/packages/ecj/ecj-initial.bb b/packages/ecj/ecj-initial.bb
new file mode 100644
index 0000000000..106453691b
--- /dev/null
+++ b/packages/ecj/ecj-initial.bb
@@ -0,0 +1,31 @@
+# ECJ as a bootstrap compiler is a drop-in replacement for Sun's javac. It offers no more
+# and no less features.
+
+# This variant runs on the initial (not Java5-compatible runtime).
+
+DESCRIPTION = "JDT Core Batch Compiler - Bootstrap variant"
+HOMEPAGE = "http://www.eclipse.org/"
+LICENSE = "EPL"
+
+DEPENDS = "libecj-bootstrap"
+
+SRC_URI = "file://ecj.in"
+
+S = "${WORKDIR}"
+
+inherit native
+
+JAR = "ecj-bootstrap.jar"
+
+do_compile() {
+ # Create the start script
+ echo "#!/bin/sh" > ecj-initial
+ echo "ECJ_JAR=${STAGING_DATADIR}/java/${JAR}" >> ecj-initial
+ echo "RUNTIME=java-initial" >> ecj-initial
+ cat ecj.in >> ecj-initial
+}
+
+do_stage() {
+ install -d ${STAGING_BINDIR}
+ install -m 755 ${S}/ecj-initial ${STAGING_BINDIR}
+}
diff --git a/packages/ecj/ecj-initial_3.3.2.bb b/packages/ecj/ecj-initial_3.3.2.bb
deleted file mode 100644
index 60bbc5546c..0000000000
--- a/packages/ecj/ecj-initial_3.3.2.bb
+++ /dev/null
@@ -1,84 +0,0 @@
-# ECJ as a bootstrap compiler is a drop-in replacement for Sun's javac. It offers no more
-# and no less features.
-
-# This variant runs on the initial (not Java5-compatible runtime).
-
-DESCRIPTION = "JDT Core Batch Compiler - Bootstrap variant"
-HOMEPAGE = "http://www.eclipse.org/"
-LICENSE = "EPL"
-
-DEPENDS = "fastjar-native unzip-native jikes-initial virtual/java-initial"
-
-SRC_URI = "\
- http://mirrors.ibiblio.org/pub/mirrors/eclipse/eclipse/downloads/drops/R-3.3.2-200802211800/ecjsrc.zip \
- file://ecj.in \
- "
-
-S = "${WORKDIR}"
-
-inherit native
-
-JAR = "ecj-bootstrap-${PV}.jar"
-
-do_unpackpost() {
- if [ ! -d source ]; then
- mkdir source
- fi
-
- if [ ! -d build ]; then
- mkdir build
- fi
-
- # Remove crap.
- rm about.html build.xml
- rm -rf META-INF
-
- # Move source into separate subdir.
- mv org source/
-
- # Remove stuff unneeded for the bootstrap compiler.
- rm -rf source/org/eclipse/jdt/internal/compiler/apt
- rm -rf source/org/eclipse/jdt/internal/compiler/tool
- rm -rf source/org/eclipse/jdt/internal/antadapter
- rm source/org/eclipse/jdt/core/JDTCompilerAdapter.java
-
- # Make a copy of the remaining source to get the embedded
- # resources.
- cp -r source/org build/
-
- # Remove source code and other stuff.
- find build -name '*.java' -exec rm -f {} \;
- find build -name '*.html' -exec rm -f {} \;
-}
-
-addtask unpackpost after do_unpack before do_patch
-
-do_compile() {
- find source -name '*.java' > sourcefiles
- split -l 25 sourcefiles ecj-sources.
-
- # Compiling in place is done because the sources contain
- # property files which need to be available at runtime.
- for list in `find . -name 'ecj-sources.*'`; do
- echo "building files in $list ...";
- echo jikes-initial -d build -source 1.4 -sourcepath source `cat $list`;
- jikes-initial \
- -d build -source 1.4 -sourcepath source `cat $list`;
- done
-
- fastjar -c -C build . -f ${JAR}
-
- # Create the start script
- echo "#!/bin/sh" > ecj-initial
- echo "ECJ_JAR=${STAGING_DATADIR}/java/${JAR}" >> ecj-initial
- echo "RUNTIME=java-initial" >> ecj-initial
- cat ecj.in >> ecj-initial
-}
-
-do_stage() {
- install -d ${STAGING_DATADIR}/java
- install -m 755 ${S}/${JAR} ${STAGING_DATADIR}/java
-
- install -d ${STAGING_BINDIR}
- install -m 755 ${S}/ecj-initial ${STAGING_BINDIR}
-}
diff --git a/packages/ecj/ecj-initial_3.4.bb b/packages/ecj/ecj-initial_3.4.bb
deleted file mode 100644
index dcc08139c1..0000000000
--- a/packages/ecj/ecj-initial_3.4.bb
+++ /dev/null
@@ -1,84 +0,0 @@
-# ECJ as a bootstrap compiler is a drop-in replacement for Sun's javac. It offers no more
-# and no less features.
-
-# This variant runs on the initial (not Java5-compatible runtime).
-
-DESCRIPTION = "JDT Core Batch Compiler - Bootstrap variant"
-HOMEPAGE = "http://www.eclipse.org/"
-LICENSE = "EPL"
-
-DEPENDS = "fastjar-native unzip-native jikes-initial virtual/java-initial"
-
-SRC_URI = "\
- http://mirrors.ibiblio.org/pub/mirrors/eclipse/eclipse/downloads/drops/R-3.4-200806172000/ecjsrc.zip \
- file://ecj.in \
- "
-
-S = "${WORKDIR}"
-
-inherit native
-
-JAR = "ecj-bootstrap-${PV}.jar"
-
-do_unpackpost() {
- if [ ! -d source ]; then
- mkdir source
- fi
-
- if [ ! -d build ]; then
- mkdir build
- fi
-
- # Remove crap.
- rm about.html build.xml
- rm -rf META-INF
-
- # Move source into separate subdir.
- mv org source/
-
- # Remove stuff unneeded for the bootstrap compiler.
- rm -rf source/org/eclipse/jdt/internal/compiler/apt
- rm -rf source/org/eclipse/jdt/internal/compiler/tool
- rm -rf source/org/eclipse/jdt/internal/antadapter
- rm source/org/eclipse/jdt/core/JDTCompilerAdapter.java
-
- # Make a copy of the remaining source to get the embedded
- # resources.
- cp -r source/org build/
-
- # Remove source code and other stuff.
- find build -name '*.java' -exec rm -f {} \;
- find build -name '*.html' -exec rm -f {} \;
-}
-
-addtask unpackpost after do_unpack before do_patch
-
-do_compile() {
- find source -name '*.java' > sourcefiles
- split -l 25 sourcefiles ecj-sources.
-
- # Compiling in place is done because the sources contain
- # property files which need to be available at runtime.
- for list in `find . -name 'ecj-sources.*'`; do
- echo "building files in $list ...";
- echo jikes-initial -d build -source 1.4 -sourcepath source `cat $list`;
- jikes-initial \
- -d build -source 1.4 -sourcepath source `cat $list`;
- done
-
- fastjar -c -C build . -f ${JAR}
-
- # Create the start script
- echo "#!/bin/sh" > ecj-initial
- echo "ECJ_JAR=${STAGING_DATADIR}/java/${JAR}" >> ecj-initial
- echo "RUNTIME=java-initial" >> ecj-initial
- cat ecj.in >> ecj-initial
-}
-
-do_stage() {
- install -d ${STAGING_DATADIR}/java
- install -m 755 ${S}/${JAR} ${STAGING_DATADIR}/java
-
- install -d ${STAGING_BINDIR}
- install -m 755 ${S}/ecj-initial ${STAGING_BINDIR}
-}
diff --git a/packages/ecj/ecj-initial_3.3.bb b/packages/ecj/libecj-bootstrap.inc
index 884d98f30b..c24c1af5ca 100644
--- a/packages/ecj/ecj-initial_3.3.bb
+++ b/packages/ecj/libecj-bootstrap.inc
@@ -1,23 +1,15 @@
-# ECJ as a bootstrap compiler is a drop-in replacement for Sun's javac. It offers no more
-# and no less features.
+# This package compiles and stages only the Jar.
-# This variant runs on the initial (not Java5-compatible runtime).
-
-DESCRIPTION = "JDT Core Batch Compiler - Bootstrap variant"
+DESCRIPTION = "JDT Core Batch Compiler - Jar only"
HOMEPAGE = "http://www.eclipse.org/"
LICENSE = "EPL"
-DEPENDS = "fastjar-native unzip-native jikes-initial virtual/java-initial"
+DEPENDS = "fastjar-native jikes-initial virtual/java-initial"
-SRC_URI = "\
- http://mirrors.ibiblio.org/pub/mirrors/eclipse/eclipse/downloads/drops/R-3.3-200706251500/ecjsrc.zip \
- file://ecj.in \
- "
+inherit native java
S = "${WORKDIR}"
-inherit native
-
JAR = "ecj-bootstrap-${PV}.jar"
do_unpackpost() {
@@ -67,18 +59,9 @@ do_compile() {
done
fastjar -c -C build . -f ${JAR}
-
- # Create the start script
- echo "#!/bin/sh" > ecj-initial
- echo "ECJ_JAR=${STAGING_DATADIR}/java/${JAR}" >> ecj-initial
- echo "RUNTIME=java-initial" >> ecj-initial
- cat ecj.in >> ecj-initial
}
do_stage() {
- install -d ${STAGING_DATADIR}/java
- install -m 755 ${S}/${JAR} ${STAGING_DATADIR}/java
-
- install -d ${STAGING_BINDIR}
- install -m 755 ${S}/ecj-initial ${STAGING_BINDIR}
+ oe_jarinstall -s ${JAR} ecj-bootstrap.jar
}
+
diff --git a/packages/ecj/libecj-bootstrap_3.3.2.bb b/packages/ecj/libecj-bootstrap_3.3.2.bb
new file mode 100644
index 0000000000..dab6ed724c
--- /dev/null
+++ b/packages/ecj/libecj-bootstrap_3.3.2.bb
@@ -0,0 +1,6 @@
+require libecj-bootstrap.inc
+
+SRC_URI = "\
+ http://mirrors.ibiblio.org/pub/mirrors/eclipse/eclipse/downloads/drops/R-3.3.2-200802211800/ecjsrc.zip \
+ "
+
diff --git a/packages/ecj/libecj-bootstrap_3.3.bb b/packages/ecj/libecj-bootstrap_3.3.bb
new file mode 100644
index 0000000000..b65e99cb54
--- /dev/null
+++ b/packages/ecj/libecj-bootstrap_3.3.bb
@@ -0,0 +1,6 @@
+require libecj-bootstrap.inc
+
+SRC_URI = "\
+ http://mirrors.ibiblio.org/pub/mirrors/eclipse/eclipse/downloads/drops/R-3.3-200706251500/ecjsrc.zip \
+ "
+
diff --git a/packages/ecj/libecj-bootstrap_3.4.bb b/packages/ecj/libecj-bootstrap_3.4.bb
new file mode 100644
index 0000000000..c321a8f2c1
--- /dev/null
+++ b/packages/ecj/libecj-bootstrap_3.4.bb
@@ -0,0 +1,6 @@
+require libecj-bootstrap.inc
+
+SRC_URI = "\
+ http://mirrors.ibiblio.org/pub/mirrors/eclipse/eclipse/downloads/drops/R-3.4-200806172000/ecjsrc.zip \
+ "
+