Merge branch 'org.openembedded.dev' of git://git.openembedded.net/openembedded into...
[vuplus_openembedded] / packages / classpath / classpath-native_0.97.2.bb
1 require classpath-native.inc
2
3 PR = "r4"
4
5 # The code affected by the javanet-local patch
6 # is usually not compiled. However if someone changes
7 # to --enable-local-sockets it will.
8 SRC_URI += "\
9   file://netif_16.patch;patch=1;pnum=0 \
10   file://SimpleName.diff;patch=1;pnum=0 \
11   file://javanet-local.patch;patch=1;pnum=0 \
12   file://sun-security-getproperty_0.96.1.patch;patch=1;pnum=0 \
13   file://ecj_java_dir.patch;patch=1 \
14   file://autotools.patch;patch=1 \
15   file://decimalformat.patch;patch=1 \
16   file://cp-byte-loophelper.patch;patch=1;pnum=0 \
17   file://miscompilation.patch;patch=1 \
18   "
19
20 do_unpackpost() {
21   # Kind of patch: Moves package "org.w3c.dom.html2" to "org.w3c.dom.html"
22         mv external/w3c_dom/org/w3c/dom/html2 \
23                         external/w3c_dom/org/w3c/dom/html
24
25         find examples/gnu/classpath/examples/html gnu/xml/dom/html2 external/w3c_dom/org/w3c/dom/html -name "*.java" \
26                 -exec sed -i -e"s|org.w3c.dom.html2|org.w3c.dom.html|" {} \;
27
28         sed -i -e"s|org/w3c/dom/html2|org/w3c/dom/html|" external/w3c_dom/Makefile.am
29 }
30
31 addtask unpackpost after do_unpack before do_patch
32