# -*- 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 86713 2011-11-01 20:39:59Z ryandesign@macports.org $

PortSystem          1.0

name                jarbundler
version             2.2.0
maintainers         mnick

categories          java devel
supported_archs     noarch

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             GPL-2

platforms           darwin

homepage            http://informagen.com/JarBundler
master_sites        sourceforge:jarbundler 

use_zip             yes 

checksums           md5     c3055d180a62810aff626f1fae0ede7c \
                    sha1    6883f6a85f832fc5e1d9b9dadcd63654af267a3b \
                    rmd160  66b44f8f48396aed4e04ec701d65b135e74c9c94

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.type      regex
livecheck.regex     <h1>Version (.*)</h1>
