# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem          1.0

name                worktree
version             0.5.3
revision            0
categories          devel
platforms           darwin
supported_archs     x86_64 arm64
license             FSL-1.1-MIT
maintainers         {gitlab.osss.net:cg} openmaintainer
description         Per-branch git worktree manager for multi-repo workspaces
long_description    Per-branch git worktree manager for multi-repo workspaces. This port installs the prebuilt macOS universal2 \
                    binary from the osss release server.
homepage            https://tools.osss.net/wt/

master_sites        https://gitlab.osss.net/api/v4/projects/3/packages/generic/worktree/${version}/
# The port is named for the project (worktree) to avoid short-name collisions in
# the shared package namespace, but the release asset and the installed executable
# both keep the short command name wt — so those stay literal below.
distfiles           wt-macos-universal2${extract.suffix}
dist_subdir         ${name}/${version}
extract.mkdir       yes

checksums           sha256  f8a4eea8f673501e0223211c223a31f36c0903c9ac1f38374a7d9aa3a26c80ee \
                    size    1598168

use_configure       no
build {}

destroot {
    xinstall -m 0755 ${worksrcpath}/wt ${destroot}${prefix}/bin/wt
}

livecheck.type      none
