# -*- 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
PortGroup           java 1.0
PortGroup           github 1.0

github.setup        TheInfiniteKind appbundler ad6782ea07446e58a78c5e6a364599b2bbd2ebd3
name                appbundler
version             20201017
categories          java
platforms           darwin
license             GPL-2+
maintainers         {nicos @NicosPavlov} openmaintainer

description         Packages a Java application as a Mac app bundle.
long_description    ${description} Oracle's Java Application Bundler is compatible \
                    with Java 7 or 8.

homepage            https://github.com/TheInfiniteKind/appbundler/

checksums           rmd160  3f681d0dec8f383ff36d1749a62f991dcdd6410c \
                    sha256  c760423928082df45da4cc522214058fcac4ed2f2ed2ce5551f9264677ad126e \
                    size    157205

depends_build       port:apache-ant

use_configure       no

build.cmd           ant
build.target        compile package
destroot.target     

destroot {
    xinstall -d ${destroot}${prefix}/share/java
    file copy ${worksrcpath}/appbundler/bin/appbundler-1.0ea.jar \
        ${destroot}${prefix}/share/java/appbundler-1.0ea.jar
}

