blob: 856e9fcd009d9e2adb3552bacb4e1a30be8131fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
DESCRIPTION = "Java Server Page (JSP) API 2.0 (from Tomcat 5.5)"
LICENSE = "AL2.0"
AUTHOR = "Apache Software Foundation"
SRC_URI = "http://archive.apache.org/dist/tomcat/tomcat-5/v${PV}/src/apache-tomcat-${PV}-src.tar.gz"
S = "${WORKDIR}/apache-tomcat-${PV}-src/servletapi/jsr152"
inherit java-library
DEPENDS = "fastjar-native servlet2.4"
RDEPENDS_${PN} = "libservlet2.4-java"
PR = "r1"
# Value of implementation.revision in build.xml
IMPL_REVISION = "public_draft"
JARFILENAME = "jsp-api-2.0.${IMPL_REVISION}.jar"
ALTJARFILENAMES = "jsp-api-2.0.jar jsp-api.jar"
do_unpackpost() {
sed -i -e "s|@implementation.version@|${IMPL_REVISION}|" src/etc/manifest
}
addtask unpackpost after do_unpack before do_patch
do_compile() {
mkdir -p build
oe_makeclasspath cp -s servlet-api-2.4
javac -sourcepath src/share -d build -cp $cp `find src/share/javax -name \*.java`
# Copy extraneous files according to build.xml's compile task
(cd src/share && find . -name "*.properties" -exec cp {} ../../build/{} \;)
mkdir -p build/javax/servlet/jsp/resources
cp src/share/dtd/jsp*.dtd build/javax/servlet/jsp/resources
cp src/share/dtd/jsp*.xsd build/javax/servlet/jsp/resources
cp src/share/dtd/web-jsp*.dtd build/javax/servlet/jsp/resources
cp src/share/dtd/web-jsp*.xsd build/javax/servlet/jsp/resources
fastjar -C build -c -m src/etc/manifest -f ${JARFILENAME} .
}
SRC_URI[md5sum] = "642b6526354cb18c5b5d77ebef8109ae"
SRC_URI[sha256sum] = "ddc677d7391c438e6102d0b3e9653eaca661344ef74b0260c1f488340d660395"
|