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/servlet-api | |
| 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/servlet-api')
| -rw-r--r-- | recipes-core/servlet-api/jsp2.0_5.5.26.bb | 45 | ||||
| -rw-r--r-- | recipes-core/servlet-api/servlet2.3_4.1.37.bb | 48 | ||||
| -rw-r--r-- | recipes-core/servlet-api/servlet2.4_5.5.26.bb | 41 |
3 files changed, 134 insertions, 0 deletions
diff --git a/recipes-core/servlet-api/jsp2.0_5.5.26.bb b/recipes-core/servlet-api/jsp2.0_5.5.26.bb new file mode 100644 index 0000000..ca94f08 --- /dev/null +++ b/recipes-core/servlet-api/jsp2.0_5.5.26.bb | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | DESCRIPTION = "Java Server Page (JSP) API 2.0 (from Tomcat 5.5)" | ||
| 2 | LICENSE = "AL2.0" | ||
| 3 | AUTHOR = "Apache Software Foundation" | ||
| 4 | |||
| 5 | SRC_URI = "http://archive.apache.org/dist/tomcat/tomcat-5/v${PV}/src/apache-tomcat-${PV}-src.tar.gz" | ||
| 6 | |||
| 7 | S = "${WORKDIR}/apache-tomcat-${PV}-src/servletapi/jsr152" | ||
| 8 | |||
| 9 | inherit java-library | ||
| 10 | |||
| 11 | DEPENDS = "servlet2.4" | ||
| 12 | RDEPENDS_${PN} = "libservlet2.4-java" | ||
| 13 | |||
| 14 | # Value of implementation.revision in build.xml | ||
| 15 | IMPL_REVISION = "public_draft" | ||
| 16 | |||
| 17 | JARFILENAME = "jsp-api-2.0.${IMPL_REVISION}.jar" | ||
| 18 | ALTJARFILENAMES = "jsp-api-2.0.jar jsp-api.jar" | ||
| 19 | |||
| 20 | do_unpackpost() { | ||
| 21 | sed -i -e "s|@implementation.version@|${IMPL_REVISION}|" src/etc/manifest | ||
| 22 | } | ||
| 23 | |||
| 24 | addtask unpackpost after do_unpack before do_patch | ||
| 25 | |||
| 26 | do_compile() { | ||
| 27 | mkdir -p build | ||
| 28 | |||
| 29 | oe_makeclasspath cp -s servlet-api-2.4 | ||
| 30 | javac -sourcepath src/share -d build -cp $cp `find src/share/javax -name \*.java` | ||
| 31 | |||
| 32 | # Copy extraneous files according to build.xml's compile task | ||
| 33 | (cd src/share && find . -name "*.properties" -exec cp {} ../../build/{} \;) | ||
| 34 | |||
| 35 | mkdir -p build/javax/servlet/jsp/resources | ||
| 36 | cp src/share/dtd/jsp*.dtd build/javax/servlet/jsp/resources | ||
| 37 | cp src/share/dtd/jsp*.xsd build/javax/servlet/jsp/resources | ||
| 38 | cp src/share/dtd/web-jsp*.dtd build/javax/servlet/jsp/resources | ||
| 39 | cp src/share/dtd/web-jsp*.xsd build/javax/servlet/jsp/resources | ||
| 40 | |||
| 41 | fastjar -C build -c -m src/etc/manifest -f ${JARFILENAME} . | ||
| 42 | } | ||
| 43 | |||
| 44 | SRC_URI[md5sum] = "642b6526354cb18c5b5d77ebef8109ae" | ||
| 45 | SRC_URI[sha256sum] = "ddc677d7391c438e6102d0b3e9653eaca661344ef74b0260c1f488340d660395" | ||
diff --git a/recipes-core/servlet-api/servlet2.3_4.1.37.bb b/recipes-core/servlet-api/servlet2.3_4.1.37.bb new file mode 100644 index 0000000..ecdf95d --- /dev/null +++ b/recipes-core/servlet-api/servlet2.3_4.1.37.bb | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | DESCRIPTION = "Servlet API 2.3 (from Tomcat 4.1)" | ||
| 2 | AUTHOR = "Apache Software Foundation" | ||
| 3 | LICENSE = "AL2.0" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" | ||
| 5 | |||
| 6 | SRC_URI = "http://archive.apache.org/dist/tomcat/tomcat-4/v${PV}/src/apache-tomcat-${PV}-src.tar.gz" | ||
| 7 | |||
| 8 | inherit java-library | ||
| 9 | |||
| 10 | S = "${WORKDIR}/apache-tomcat-${PV}-src/servletapi" | ||
| 11 | |||
| 12 | DEPENDS = "fastjar-native" | ||
| 13 | |||
| 14 | # Value of implementation.revision in build.xml | ||
| 15 | IMPL_REVISION = "1" | ||
| 16 | |||
| 17 | JARFILENAME = "servlet-2.3.${IMPL_REVISION}.jar" | ||
| 18 | ALTJARFILENAMES = "servlet-2.3.jar servlet2.3.jar" | ||
| 19 | |||
| 20 | do_unpackpost() { | ||
| 21 | sed -i -e "s|@implementation.version@|${IMPL_REVISION}|" src/etc/manifest | ||
| 22 | } | ||
| 23 | |||
| 24 | addtask unpackpost after do_unpack before do_patch | ||
| 25 | |||
| 26 | do_compile() { | ||
| 27 | mkdir -p build | ||
| 28 | |||
| 29 | javac -sourcepath src/share -d build `find src/share/javax -name \*.java` | ||
| 30 | |||
| 31 | # Copy extraneous files according to build.xml's compile task | ||
| 32 | (cd src/share && find . -name "*.properties" -exec cp {} ../../build/{} \;) | ||
| 33 | |||
| 34 | mkdir -p build/javax/servlet/resources | ||
| 35 | cp src/share/dtd/web-app*.dtd build/javax/servlet/resources | ||
| 36 | |||
| 37 | mkdir -p build/javax/servlet/jsp/resources | ||
| 38 | cp src/share/dtd/web-jsptaglibrary*.dtd build/javax/servlet/jsp/resources | ||
| 39 | cp src/share/dtd/jspxml.* build/javax/servlet/jsp/resources | ||
| 40 | |||
| 41 | fastjar -C build -c -m src/etc/manifest -f ${JARFILENAME} . | ||
| 42 | } | ||
| 43 | |||
| 44 | SRC_URI[md5sum] = "fe50177a25a084ad1abf4a201d08c2a6" | ||
| 45 | SRC_URI[sha256sum] = "65e4cc9d3ea4a7f30044bfd6c660c772adb75ac152d775342deb6049a0d19d74" | ||
| 46 | |||
| 47 | NATIVE_INSTALL_WORKS = "1" | ||
| 48 | BBCLASSEXTEND = "native" | ||
diff --git a/recipes-core/servlet-api/servlet2.4_5.5.26.bb b/recipes-core/servlet-api/servlet2.4_5.5.26.bb new file mode 100644 index 0000000..ee80e5e --- /dev/null +++ b/recipes-core/servlet-api/servlet2.4_5.5.26.bb | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | DESCRIPTION = "Servlet API 2.4 (from Tomcat 5.5)" | ||
| 2 | LICENSE = "AL2.0" | ||
| 3 | AUTHOR = "Apache Software Foundation" | ||
| 4 | |||
| 5 | SRC_URI = "http://archive.apache.org/dist/tomcat/tomcat-5/v${PV}/src/apache-tomcat-${PV}-src.tar.gz" | ||
| 6 | |||
| 7 | S = "${WORKDIR}/apache-tomcat-${PV}-src/servletapi/jsr154" | ||
| 8 | |||
| 9 | inherit java-library | ||
| 10 | |||
| 11 | DEPENDS = "fastjar-native" | ||
| 12 | |||
| 13 | # Value of implementation.revision in build.xml | ||
| 14 | IMPL_REVISION = "1" | ||
| 15 | |||
| 16 | JARFILENAME = "servlet-api-2.4.${IMPL_REVISION}.jar" | ||
| 17 | ALTJARFILENAMES = "servlet-api-2.4.jar servlet-api.jar servlet2.4.jar" | ||
| 18 | |||
| 19 | do_unpackpost() { | ||
| 20 | sed -i -e "s|2.3.@implementation.version@|2.4.${IMPL_REVISION}|" src/etc/manifest | ||
| 21 | } | ||
| 22 | |||
| 23 | addtask unpackpost after do_unpack before do_patch | ||
| 24 | |||
| 25 | do_compile() { | ||
| 26 | mkdir -p build | ||
| 27 | |||
| 28 | javac -sourcepath src/share -d build `find src/share/javax -name \*.java` | ||
| 29 | |||
| 30 | # Copy extraneous files according to build.xml's compile task | ||
| 31 | (cd src/share && find . -name "*.properties" -exec cp {} ../../build/{} \;) | ||
| 32 | |||
| 33 | mkdir -p build/javax/servlet/resources | ||
| 34 | cp src/share/dtd/jsp*.dtd build/javax/servlet/resources | ||
| 35 | cp src/share/dtd/web-jsp*.dtd build/javax/servlet/resources | ||
| 36 | |||
| 37 | fastjar -C build -c -m src/etc/manifest -f ${JARFILENAME} . | ||
| 38 | } | ||
| 39 | |||
| 40 | SRC_URI[md5sum] = "642b6526354cb18c5b5d77ebef8109ae" | ||
| 41 | SRC_URI[sha256sum] = "ddc677d7391c438e6102d0b3e9653eaca661344ef74b0260c1f488340d660395" | ||
