Ticket #4603: Portfile.2

File Portfile.2, 1.5 KB (added by dave@…, 19 years ago)

Fixed Portfile with appropriate dependencies

Line 
1# $Id$
2
3PortSystem 1.0
4
5name                    objectweb-asm
6version                 2.1
7categories              java devel
8platforms               darwin
9maintainers             dave@glowacki.org
10description             Java bytecode manipulation framework.
11long_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
15set project             asm
16set realname            ${project}
17
18homepage                http://asm.objectweb.org/
19master_sites            http://download.us.forge.objectweb.org/${project} \
20                        http://download.forge.objectweb.org/${project} \
21                        http://download.fr2.forge.objectweb.org/${project}
22distname                ${realname}-${version}
23checksums               md5 dfd62160a88f13e236f9da7d2485c9ec
24
25depends_build           port:objectweb-anttasks \
26                        bin:ant:apache-ant
27
28worksrcdir              ${realname}-${version}
29
30use_configure           no
31
32pre-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
37build.cmd               ant
38build.target            jar jdoc
39build.dir               ${worksrcpath}
40build.env               CLASSPATH=${prefix}/share/java/objectweb-anttasks.jar
41
42variant debug {
43        build.args-append               -debug
44}
45
46destroot        {
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}