# $Id: Portfile 70623 2010-08-15 13:37:20Z ryandesign@macports.org $

PortSystem              1.0

name                    xmlenc
version                 0.51
categories              java textproc
platforms               darwin
maintainers             nomaintainer
supported_archs         noarch

description             fast stream-based XML output library for Java
long_description        The xmlenc library is a fast stream-based XML output \
                        library for Java. Main design goals are performance, \
                        simplicitity and pureness.

homepage                http://xmlenc.sourceforge.net/
master_sites            ${homepage}

checksums               md5     6477eae0270f9da4319ca2cfb79304ed \
                        sha1    900acd30b3d76202c6193e677055734562660bd4 \
                        rmd160  c336caa053d916a9f5074b68273bbdd635379bc1

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

use_configure           no

build.cmd               ant
build.target            jar javadoc-public

destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/java/ \
        ${destroot}${prefix}/share/doc/
    xinstall -m 644 ${worksrcpath}/build/xmlenc.jar \
        ${destroot}${prefix}/share/java/
    file copy ${worksrcpath}/build/javadoc \
        ${destroot}${prefix}/share/doc/${name}
}
