1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name objectweb-asm |
---|
6 | version 2.1 |
---|
7 | categories java devel |
---|
8 | platforms darwin |
---|
9 | maintainers dave@glowacki.org |
---|
10 | description Java bytecode manipulation framework. |
---|
11 | long_description ASM is a Java bytecode manipulation framework. It \ |
---|
12 | offers similar functionalities as BCEL or SERP, but \ |
---|
13 | is much smaller and faster than these tools. |
---|
14 | |
---|
15 | set project asm |
---|
16 | set realname ${project} |
---|
17 | |
---|
18 | homepage http://asm.objectweb.org/ |
---|
19 | master_sites http://download.us.forge.objectweb.org/${project} \ |
---|
20 | http://download.forge.objectweb.org/${project} \ |
---|
21 | http://download.fr2.forge.objectweb.org/${project} |
---|
22 | distname ${realname}-${version} |
---|
23 | checksums md5 dfd62160a88f13e236f9da7d2485c9ec |
---|
24 | |
---|
25 | depends_build port:objectweb-anttasks \ |
---|
26 | bin:ant:apache-ant |
---|
27 | |
---|
28 | worksrcdir ${realname}-${version} |
---|
29 | |
---|
30 | use_configure no |
---|
31 | |
---|
32 | pre-build { |
---|
33 | cd ${worksrcpath} |
---|
34 | reinplace s|^.*objectweb.ant.tasks.path.*ow_util_ant_tasks.jar|objectweb.ant.tasks.path\ ${prefix}/share/java/objectweb-anttasks.jar| build.properties |
---|
35 | } |
---|
36 | |
---|
37 | build.cmd ant |
---|
38 | build.target jar jdoc |
---|
39 | build.dir ${worksrcpath} |
---|
40 | build.env CLASSPATH=${prefix}/share/java/objectweb-anttasks.jar |
---|
41 | |
---|
42 | variant debug { |
---|
43 | build.args-append -debug |
---|
44 | } |
---|
45 | |
---|
46 | destroot { |
---|
47 | xinstall -m 755 -d ${destroot}${prefix}/share/java \ |
---|
48 | ${destroot}${prefix}/share/doc |
---|
49 | xinstall -m 644 ${worksrcpath}/output/dist/lib/asm-${version}.jar \ |
---|
50 | ${destroot}${prefix}/share/java/${name}.jar |
---|
51 | file copy ${worksrcpath}/output/dist/doc/javadoc/user \ |
---|
52 | ${destroot}${prefix}/share/doc/${name} |
---|
53 | } |
---|