Ticket #31143: Portfile.2

File Portfile.2, 1.5 KB (added by pope (K. Adam Christensen), 13 years ago)
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $ID:$
3
4PortSystem       1.0
5
6name             plovr
7fetch.type       hg
8hg.url           https://code.google.com/p/plovr/
9hg.tag           e43c0023572a
10version          0.0-20110915073637
11license          Apache 2.0
12categories       devel lang
13maintainers      shifteleven.com:pope openmaintainer
14description      Tools for Closure Tools
15long_description \
16    Closure Tools are extremely powerful, but it is hard to figure out \
17    how to start using them together to improve development. The goal \
18    of the plovr project is to build additional tools to bring Closure \
19    Tools together, making them even more powerful.
20
21platforms        darwin
22supported_archs  noarch
23
24depends_build    port:apache-ant
25depends_lib      bin:java:kaffe
26
27use_configure    no
28build.cmd        ant
29build.target     build \
30                 javadoc \
31                 generate-options-documentation \
32                 generate-closure-library-jsdoc
33
34destroot {
35    set javadir ${destroot}${prefix}/share/java/${name}
36    set docdir ${destroot}${prefix}/share/doc/${name}
37    set binpath ${destroot}${prefix}/bin/${name}
38
39    xinstall -m 755 -d ${javadir} ${docdir}
40    xinstall -m 644 -W ${worksrcpath}/build plovr.jar ${javadir}
41
42    xinstall -m 755 ${filespath}/${name} ${binpath}
43    reinplace "s|__PREFIX__|${prefix}|" ${binpath}
44
45    eval copy [glob ${worksrcpath}/build/www/*] ${docdir}
46}
47
48livecheck.type   none