# -*- 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.25.0-SNAPSHOT at 2026-06-29T07:57:31.988946286Z

PortSystem       1.0
PortGroup        github 1.0
PortGroup        java 1.0

github.setup     jreleaser jreleaser 1.25.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 45bd1e2e6f433e0ac0e0a533752fb5999deecef5 \
                 sha256 7c086a384e509ae30ad12ce2f10946601c0798e746d06a5538afc267e398644b \
                 size   45741537

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
}
