# -*- 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.300 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  5d5b7f9f0adc4040b78ac2fa2b5cc482806386e7 \
                    sha256  2e9e9dbadb48fa97613cff4d912655f6777c397243ca1d086dc488beac73e733 \
                    size    185297074

# 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
}
