# -*- 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

PortSystem       1.0

name             plovr
fetch.type       hg
hg.url           https://code.google.com/p/plovr/
hg.tag           7b4e1ba4d8ad
version          0.0-20120503103549
license          Apache-2
categories       devel lang
maintainers      nomaintainer
homepage         http://plovr.com/
description      Tools for Closure Tools
long_description \
    Closure Tools are extremely powerful, but it is hard to figure out \
    how to start using them together to improve development. The goal \
    of the plovr project is to build additional tools to bring Closure \
    Tools together, making them even more powerful.

platforms        any
supported_archs  noarch

depends_build    port:apache-ant
depends_lib      bin:java:kaffe

use_configure    no
build.cmd        ant
build.target     build \
                 javadoc \
                 generate-options-documentation \
                 generate-closure-library-jsdoc

destroot {
    set javadir ${destroot}${prefix}/share/java/${name}
    set docdir ${destroot}${prefix}/share/doc/${name}
    set binpath ${destroot}${prefix}/bin/${name}

    xinstall -m 755 -d ${javadir} ${docdir}
    xinstall -m 644 -W ${worksrcpath}/build plovr.jar ${javadir}

    xinstall -m 755 ${filespath}/${name} ${binpath}
    reinplace "s|__PREFIX__|${prefix}|" ${binpath}

    copy {*}[glob ${worksrcpath}/build/www/*] ${docdir}
}

livecheck.type   none
