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/ant | |
| 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/ant')
| -rw-r--r-- | recipes-core/ant/ant-native_1.8.1.bb | 66 | ||||
| -rwxr-xr-x | recipes-core/ant/files/ant | 10 |
2 files changed, 76 insertions, 0 deletions
diff --git a/recipes-core/ant/ant-native_1.8.1.bb b/recipes-core/ant/ant-native_1.8.1.bb new file mode 100644 index 0000000..5ea8c16 --- /dev/null +++ b/recipes-core/ant/ant-native_1.8.1.bb | |||
| @@ -0,0 +1,66 @@ | |||
| 1 | DESCRIPTION = "Another Neat Tool - build system for Java" | ||
| 2 | AUTHOR = "Apache Software Foundation" | ||
| 3 | HOMEPAGE = "http://ant.apache.org" | ||
| 4 | LICENSE = "AL2.0" | ||
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=503bb72c4dd62dd216d6820d5b869442" | ||
| 6 | |||
| 7 | SRC_URI = "http://ftp.riken.jp/net/apache/ant/source/apache-ant-${PV}-src.tar.gz \ | ||
| 8 | file://ant \ | ||
| 9 | " | ||
| 10 | |||
| 11 | S = "${WORKDIR}/apache-ant-${PV}" | ||
| 12 | |||
| 13 | inherit java-library java-native | ||
| 14 | |||
| 15 | DEPENDS = " \ | ||
| 16 | jsch-native bsf-native xalan-j-native xerces-j-native \ | ||
| 17 | xml-commons-resolver1.1-native gnumail-native gnujaf-native \ | ||
| 18 | bcel-native regexp-native log4j1.2-native antlr-native oro-native \ | ||
| 19 | junit-native jdepend-native commons-net-native commons-logging-native \ | ||
| 20 | " | ||
| 21 | |||
| 22 | do_removecruft() { | ||
| 23 | # Removes thing that need proprietary Jar files or are otherwise problematic | ||
| 24 | rm -rf ${S}/src/main/org/apache/tools/ant/taskdefs/optional/image | ||
| 25 | rm -rf ${S}/src/main/org/apache/tools/ant/types/optional/image | ||
| 26 | rm -rf ${S}/src/main/org/apache/tools/ant/taskdefs/optional/ejb | ||
| 27 | rm -rf ${S}/src/main/org/apache/tools/ant/taskdefs/optional/scm | ||
| 28 | rm -rf ${S}/src/main/org/apache/tools/ant/taskdefs/optional/starteam | ||
| 29 | rm -rf ${S}/src/main/org/apache/tools/ant/taskdefs/optional/NetRexxC.java | ||
| 30 | } | ||
| 31 | |||
| 32 | addtask removecruft before do_patch after do_unpack | ||
| 33 | |||
| 34 | do_compile() { | ||
| 35 | mkdir -p build | ||
| 36 | |||
| 37 | oe_makeclasspath cp -s jsch bsf xalan2 xercesImpl resolver gnumail gnujaf bcel regexp log4j1.2 antlr oro junit jdepend commons-net commons-logging | ||
| 38 | cp=build:$cp | ||
| 39 | |||
| 40 | find src/main -name "*.java" > java_files | ||
| 41 | |||
| 42 | javac -sourcepath src/main -cp $cp -d build @java_files | ||
| 43 | |||
| 44 | mkdir -p build/org/apache/tools/ant/types/conditions | ||
| 45 | |||
| 46 | cp -r src/resources/org build/ | ||
| 47 | (cd src/main && find . \( -name "*.properties" -or -name "*.xml" -or -name "*.mf" \) -exec cp {} ../../build/{} \;) | ||
| 48 | |||
| 49 | echo "VERSION=${PV}" > build/org/apache/tools/ant/version.txt | ||
| 50 | echo "DATE=`date -R`" >> build/org/apache/tools/ant/version.txt | ||
| 51 | |||
| 52 | fastjar -C build -c -f ${JARFILENAME} . | ||
| 53 | |||
| 54 | oe_makeclasspath cp -s ecj-bootstrap jsch bsf xalan2 xercesImpl resolver gnumail gnujaf bcel regexp log4j1.2 antlr oro junit jdepend commons-net commons-logging | ||
| 55 | cp=${STAGING_DATADIR_JAVA_NATIVE}/ant.jar:${STAGING_DATADIR}/classpath/tools.zip:$cp | ||
| 56 | sed -i -e"s|@JAR_FILE@|$cp|" ${WORKDIR}/ant | ||
| 57 | } | ||
| 58 | |||
| 59 | do_install_append() { | ||
| 60 | install -d ${D}${bindir} | ||
| 61 | install -m 0755 ${WORKDIR}/ant ${D}${bindir} | ||
| 62 | } | ||
| 63 | |||
| 64 | SRC_URI[md5sum] = "9e5960bd586d9425c46199cdd20a6fbc" | ||
| 65 | SRC_URI[sha256sum] = "4f39057af228663c3cfb6dcfbee603a071a7e3cf48c95c30869ed81c5fcf21c8" | ||
| 66 | |||
diff --git a/recipes-core/ant/files/ant b/recipes-core/ant/files/ant new file mode 100755 index 0000000..bb282a9 --- /dev/null +++ b/recipes-core/ant/files/ant | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | export CLASSPATH | ||
| 4 | CLASSPATH=$CLASSPATH:@JAR_FILE@ | ||
| 5 | |||
| 6 | if [ ! $JAVA ];then | ||
| 7 | JAVA=java | ||
| 8 | fi | ||
| 9 | |||
| 10 | $JAVA org.apache.tools.ant.launch.Launcher $* | ||
