# -*- 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 26.25.0 v
go.offline_build    no
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  972b6efb5d37d4e3e7ea8ac2d85f4d4b8a468721 \
                    sha256  73811b8e442abcb4444142fa31a999ca4342ba2dc91b498a3f34d1138a6d010c \
                    size    6774202

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="2025-09-24"\" -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
"
