# -*- coding: utf-8; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 58339 2009-09-26 22:12:31Z mnick@macports.org $

PortSystem          1.0

name                jarbundler
version             2.1.0
maintainers         mnick

categories          java devel
description         JarBundler is a ant task that creates a Mac OS X app bundle from jar files and a main class
long_description    ${description}
license             GPLv2

platforms           darwin

homepage            http://informagen.com/JarBundler/index.html
master_sites        http://informagen.com/JarBundler/dist
distname            ${name}
worksrcdir          ${name}-${version}

checksums           md5     69a2b3a4ae31106e84bc00234231223c \
                    sha1    57f0ea76c32c441237bdecb1ff1b22897ce902b7 \
                    rmd160  e031bf43962138deb6445e660bd30c1c3847ce3d

use_configure       no

build.cmd           ant
build.target        compile javadocs

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

livecheck.url       ${homepage}
livecheck.regex     <h1>Version (.*)</h1>
