# -*- 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           golang 1.0

go.setup            github.com/JanDeDobbeleer/oh-my-posh 31.2.1 v
go.offline_build    no
go.toolchain_min    1.27.0
revision            0

homepage            https://ohmyposh.dev

description         A prompt theme engine for any shell.
long_description    {*}${description}

categories          sysutils shells
installs_libs       no
license             GPL-3
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    {duck.com:ihj3s1wy @PinoTucana} \
                    openmaintainer

checksums           rmd160  3fc5fbaaa17c56e7f71a6f0de6dd1b95ed807e6b \
                    sha256  19d8d17995d01291c3bc922074cea973659b0899b5e4d6bf1e3dabe6691bcf4e \
                    size    7709262

build.dir           ${worksrcpath}/src

build.pre_args-append \
    -ldflags \"-X github.com/jandedobbeleer/oh-my-posh/src/build.Version=${version} \
    -X github.com/jandedobbeleer/oh-my-posh/src/build.Date="2026-08-12"\" -o ${name}

set omp_share_path  ${prefix}/share/${name}

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

    xinstall -d ${destroot}${omp_share_path}
    file copy ${worksrcpath}/themes ${destroot}${omp_share_path}/
}

notes "
  Themes for ${name} can be found in:

    ${omp_share_path}/themes
"
