# -*- 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 7e74dfd242ca00c2a47f90ba26035b92a877a946
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name                appbundler
version             20221218
categories          java
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  6201c7f7644230eb3af154ff86cf7a9fb8e3bb46 \
                    sha256  fea9ba4012feb1dae581b12db9482803c22cdb4dfba3bf1f05b4df7fd412ec11 \
                    size    157590

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
}

