# -*- 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
# Generated with JReleaser 1.20.0-SNAPSHOT at 2025-08-31T16:31:37.345453357Z

PortSystem       1.0
PortGroup        github 1.0
PortGroup        java 1.0

github.setup     jreleaser jreleaser 1.20.0 v
revision         0

categories       devel java
license          Apache-2
maintainers      @aalmiray
platforms        any
supported_archs  noarch

description      Release projects quickly and easily with JReleaser
long_description JReleaser is a release automation tool. Its goal is to simplify creating releases and \
                 publishing artifacts to multiple package managers while providing customizable options. \
                  \
                 JReleaser takes inputs from popular builds tools (Ant, Maven, Gradle) such as JAR files, \
                 binary distributions (.zip, .tar), JLink images, or any other file that you’d like to \
                 publish as a Git release on popular Git services such as GitHub, GitLab, or Gitea. \
                 Distribution files may additionally be published to be consumed by popular package managers \
                 such as Homebrew, Chocolatey, Snapcraft, or get ready to be launched via JBang. Releases \
                 may be announced in a variety of channels such as Twitter, Zulip, SDKMAN!, and more.

homepage         https://jreleaser.org
github.tarball_from releases
use_zip          yes

checksums        rmd160 da7835e16d21f774975fb464a40dc3b4520a87a8 \
                 sha256 e64ca1ab30ddf0f66ba3380f8af3fc6aa8b335181eaf23530a08fe8370e2cd15 \
                 size   43030875

java.version     1.8+

use_configure    no

build {}

destroot {
    set target ${destroot}${prefix}/share/${name}

    # Create the target directory
    xinstall -m 755 -d ${target}

    # Copy over the needed elements of our directory tree
    copy {*}[glob -dir ${worksrcpath} *] ${target}

    # Remove extraneous files
    delete {*}[glob -directory ${target}/bin *.bat]

    ln -s ../share/${name}/bin/jreleaser ${destroot}${prefix}/bin/jreleaser
}
