# -*- 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 21.27.0 v
go.offline_build    no
github.tarball_from archive
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  c5ac4e001188ca8f81b752af7c9a00889bb2b996 \
                    sha256  e92d40608aae5f38307740e21102493fc8d6b68fa83c0cef838c9811575cb885 \
                    size    6665094

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="2024-07-17"\" -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
"
