PortSystem 1.0

name            BrowserLauncher2
version         1.3
set und_version [string map {. _} ${version}]
revision        0
categories      java
platforms       any
maintainers     nomaintainer
license         LGPL-2+
supported_archs noarch

description     Java library for opening a URL in a browser
long_description \
    BrowserLauncher2, a continuation of the BrowserLauncher project, is a \
    library that facilitates opening a browser from a Java application and \
    directing the browser to a supplied url. In most cases the browser opened \
    will be the user's default browser.

homepage        http://browserlaunch2.sourceforge.net/
fetch.type      cvs
cvs.root        :pserver:anonymous@browserlaunch2.cvs.sourceforge.net:/cvsroot/browserlaunch2 
cvs.module      ${name}
worksrcdir      ${name}
patchfiles      browserlaunchertestapp.patch \
                patch-source-at-jta-Regor.java.diff

checksums           rmd160  4395f601debab5ffc4bd61a4224b26cf3f070b27 \
                    sha256  ccbcd9ce1f6b73e18004857dbf1cd2267a198231693ee37507953723869e95d5

depends_build   bin:ant:apache-ant

configure {
    reinplace "s|1_4|${und_version}|" ${worksrcpath}/build.xml
}
build.cmd       ant
build.target    deploy

destroot {
    xinstall -d ${destroot}${prefix}/share/java
    xinstall -m 644 -W ${worksrcpath}/deployment \
        ${name}-${und_version}.jar \
        ${name}-all-${und_version}.jar \
        ${destroot}${prefix}/share/java/
}
