# -*- 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.221 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  1d67ca369a89ac5d09da2623269244d22d4c9aaa \
                    sha256  39e414ab069fb69f935e3653ba292df22b3a4df5ca7759dd7635fb63c7551182 \
                    size    183062760

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

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
}
