wok-6.x rev 3797
Add: ecj (3.5)
author | Matthew Sheets <rcx@zoominternet.net> |
---|---|
date | Mon Aug 03 11:49:03 2009 +0000 (2009-08-03) |
parents | 8ad0e2602649 |
children | 4199f54b17c0 |
files | ecj/receipt ecj/stuff/ecj.sh.part |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/ecj/receipt Mon Aug 03 11:49:03 2009 +0000 1.3 @@ -0,0 +1,41 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="ecj" 1.7 +VERSION="3.5" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="The Eclipse standalone batch Java compiler and Ant compiler adapter." 1.10 +MAINTAINER="rcx@zoominternet.net" 1.11 +DEPENDS="jre" 1.12 +BUILD_DEPENDS="" 1.13 +TARBALL="$PACKAGE-$VERSION.jar" 1.14 +WEB_SITE="http://www.eclipse.org/jdt/core/" 1.15 +# 3.4.2: WGET_URL="http://download.eclipse.org/eclipse/downloads/drops/R-$VERSION-200902111700/$TARBALL" 1.16 +# 3.5: 1.17 +WGET_URL="http://download.eclipse.org/eclipse/downloads/drops/R-$VERSION-200906111540/$TARBALL" 1.18 +PROVIDE="jdk" 1.19 + 1.20 +# Rules to configure and make the package. 1.21 +compile_rules() 1.22 +{ 1.23 + # Please see the link below for a feature request addressing jar untar errors 1.24 + # http://labs.slitaz.org/issues/show/133 1.25 + echo " ** IGNORING ANY UNTAR ERRORS - UNTAR NOT NEEDED **" 1.26 + 1.27 + # Build the ecj shell script to use the current version 1.28 + mkdir -p $src/_pkg/usr/bin && 1.29 + echo "#!/bin/sh" > $src/_pkg/usr/bin/ecj && 1.30 + echo "ECJ_VERSION=$VERSION" >> $src/_pkg/usr/bin/ecj && 1.31 + cat stuff/ecj.sh.part >> $src/_pkg/usr/bin/ecj && 1.32 + chmod +x $src/_pkg/usr/bin/ecj && 1.33 + 1.34 + mkdir -p $src/_pkg/usr/share/java && 1.35 + cp -a $SOURCES_REPOSITORY/$TARBALL $src/_pkg/usr/share/java && 1.36 + echo " ** BUILD SUCCEEDED **" 1.37 +} 1.38 + 1.39 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.40 +genpkg_rules() 1.41 +{ 1.42 + mkdir -p $fs 1.43 + cp -a $_pkg/usr $fs 1.44 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/ecj/stuff/ecj.sh.part Mon Aug 03 11:49:03 2009 +0000 2.3 @@ -0,0 +1,23 @@ 2.4 + 2.5 +if [ -n "$ECJ_VERSION" ] ; then 2.6 + ECJ_JAR="ecj-$ECJ_VERSION.jar" 2.7 +else 2.8 + ECJ_JAR="ecj.jar" 2.9 +fi 2.10 + 2.11 +if [ -z "$JAVA" ] ; then 2.12 + if [ -n "$(which java)" ] ; then 2.13 + JAVA=java 2.14 + elif [ -n "$(which jamvm)" ] ; then 2.15 + JAVA=jamvm 2.16 + elif [ -n "$(which gij)" ] ; then 2.17 + JAVA=gij 2.18 + elif [ -n "$(which kaffe)" ] ; then 2.19 + JAVA=kaffe 2.20 + else 2.21 + echo "Java interpreter not found" 2.22 + exit 1 2.23 + fi 2.24 +fi 2.25 + 2.26 +$JAVA -cp /usr/share/java/$ECJ_JAR org.eclipse.jdt.internal.compiler.batch.Main "$@"