summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap')
-rw-r--r--bootstrap/ecj-3.2/APKBUILD19
1 files changed, 13 insertions, 6 deletions
diff --git a/bootstrap/ecj-3.2/APKBUILD b/bootstrap/ecj-3.2/APKBUILD
index 0d477f0a2..5d92c2187 100644
--- a/bootstrap/ecj-3.2/APKBUILD
+++ b/bootstrap/ecj-3.2/APKBUILD
@@ -4,12 +4,12 @@ pkgver=3.2.2
pkgrel=0
pkgdesc="A Java compiler implemented in Java, for the Eclipse IDE"
url="https://www.eclipse.org/"
-arch="all"
+arch="noarch"
options="!check" #No test suite provided.
license="GPL-2.0+"
depends="jamvm=1.5.1-r0"
makedepends="ant=1.8.4-r0 zip"
-subpackages="$pkgname-dev"
+subpackages=""
source="https://archive.eclipse.org/eclipse/downloads/drops/R-$pkgver-200702121330/eclipse-sourceBuild-srcIncluded-$pkgver.zip
build-niceties.patch"
@@ -17,21 +17,28 @@ unpack() {
default_unpack
mv jdtcoresrc ecj-3.2.2
cd ecj-3.2.2
- unzip -d src -q src/ecj.jar
+ unzip -d src -q src/ecj.zip
}
build() {
export JAVAC="/usr/bin/jikes"
+ export JAVACMD="/usr/bin/java"
+ export CLASSPATH=".:/usr/jamvm/lib/rt.jar:/usr/share/ant/lib"
+ export ANT_HOME=/usr/share/ant
+ unset JAVA_HOME
ant "-Dbuild.compiler=jikes" -f compilejdtcorewithjavac.xml
ant "-Dnoget=true -Dmaven.mode.offline=true -Dbuild.sysclasspath=ignore" -lib ecj.jar -f compilejdtcore.xml compile
}
package() {
+ mkdir -p "$pkgdir"/usr/libexec "$pkgdir"/usr/bin
cp -v dist/ecj.jar "$pkgdir"/usr/libexec/ecj-3.2.jar
- echo "#!/bin/sh" > "$pkgdir"/usr/bin/ecj-3.2
+ cat >"$pkgdir"/usr/bin/ecj-3.2 <<ECJ
+#!/bin/sh
+# Wrapper for ECJ 3.2
+exec jamvm -cp /usr/share/classpath -jar /usr/libexec/ecj-3.2.jar "\${@}"
+ECJ
chmod a+x "$pkgdir"/usr/bin/ecj-3.2
- echo "# Wrapper for ECJ 3.2" >> "$pkgdir"/usr/bin/ecj-3.2
- echo "exec jamvm -cp /usr/share/classpath -jar /usr/libexec/ecj-3.2.jar \"\${@}\"" >> "$pkgdir"/usr/bin/ecj-3.2
}
sha512sums="74a7e66f4411e1856d35c396ffb12124ac5ad622e5cb401558b24aa675d158efbc1522534e962786adf6ae8ff328d394f25f8f28d6b6a9e5531bc4abf241c8f3 eclipse-sourceBuild-srcIncluded-3.2.2.zip