1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name jakarta-bcel |
---|
6 | version 5.1 |
---|
7 | |
---|
8 | categories java |
---|
9 | maintainers james@jberry.us |
---|
10 | platforms darwin |
---|
11 | |
---|
12 | description Jakarta BCEL -- Java Byte Code Engineering Library |
---|
13 | long_description The Byte Code Engineering Library is intended to give users a \ |
---|
14 | convenient possibility to analyze, create, and manipulate (binary) \ |
---|
15 | Java class files (those ending with .class). Classes are represented \ |
---|
16 | by objects which contain all the symbolic information of the given \ |
---|
17 | class: methods, fields and byte code instructions, in particular. |
---|
18 | homepage http://jakarta.apache.org/bcel/ |
---|
19 | |
---|
20 | master_sites apache:jakarta/bcel/source/ |
---|
21 | checksums md5 31ebbd7738325c775bd3ad5ce90dc263 |
---|
22 | |
---|
23 | distname bcel-${version}-src |
---|
24 | depends_build bin:ant:apache-ant |
---|
25 | depends_lib bin:java:kaffe \ |
---|
26 | lib:XXX:jakarta-regexp |
---|
27 | |
---|
28 | worksrcdir bcel-${version} |
---|
29 | |
---|
30 | post-extract { |
---|
31 | # Cleanup becl's sloppy distribution |
---|
32 | system "cd ${workpath} && unzip bcel-${version}.zip && unzip -o ${distname}.zip" |
---|
33 | file delete ${worksrcpath}/bcel-${version}.jar |
---|
34 | file mkdir ${worksrcpath}/examples |
---|
35 | |
---|
36 | # There is no manifest in the source distribution |
---|
37 | reinplace /manifest/d ${worksrcpath}/build.xml |
---|
38 | } |
---|
39 | |
---|
40 | use_configure no |
---|
41 | |
---|
42 | build.cmd ant |
---|
43 | build.target jar |
---|
44 | build.args -Dname=${name} \ |
---|
45 | -Dclass.path=${prefix}/share/java/jakarta-regexp.jar |
---|
46 | |
---|
47 | destroot { |
---|
48 | xinstall -m 755 -d ${destroot}${prefix}/share/java \ |
---|
49 | ${destroot}${prefix}/share/doc |
---|
50 | xinstall -m 644 \ |
---|
51 | ${worksrcpath}/bin/jakarta-bcel.jar \ |
---|
52 | ${destroot}${prefix}/share/java/ |
---|
53 | file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name} |
---|
54 | } |
---|