# -*- 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/danielmiessler/Fabric 1.4.323 v
revision            0
name                [string tolower ${github.project}]
categories          llm
maintainers         {i0ntempest @i0ntempest} openmaintainer
license             MIT

description         open-source framework for augmenting humans using AI
long_description    ${name} is an ${description}. It provides a modular system for solving specific problems\
                    using a crowdsourced set of AI prompts that can be used anywhere.

homepage            https://danielmiessler.com/p/fabric-origin-story

checksums           rmd160  dcdf2aec635640c9ffcde3c04876f2c1285149f6 \
                    sha256  989f4c0c3c75e2da333f7bf1070d09950f5d065e597c7ebb996e497d3aa6eb79 \
                    size    185503978

# go2port fails on too many packages to be manually fixable
go.offline_build    no
build.args          -o ./${name} -ldflags '-s -w' ./cmd/${name}

destroot {
    xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
    xinstall -d ${destroot}${prefix}/share/bash-completion/completions \
                ${destroot}${prefix}/share/zsh/site-functions \
                ${destroot}${prefix}/share/fish/vendor_completions.d
    xinstall -m 0644 ${worksrcpath}/completions/${name}.bash ${destroot}${prefix}/share/bash-completion/completions
    xinstall -m 0644 ${worksrcpath}/completions/_${name} ${destroot}${prefix}/share/zsh/site-functions
    xinstall -m 0644 ${worksrcpath}/completions/${name}.fish ${destroot}${prefix}/share/fish/vendor_completions.d
}
