# -*- 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 30.6.2 v
go.offline_build    no
go.toolchain_min    1.26.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  cd3dcfc89d4683aa1a442a9da0397627f23993e5 \
                    sha256  8e804c20b6c0a22842704c7078174ca32a5741c8092276534e1ea529239a2e96 \
                    size    7612175

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-01-09"\" -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
"
