diff options
Diffstat (limited to 'sysutils/mods')
| -rw-r--r-- | sysutils/mods/Makefile | 58 | ||||
| -rw-r--r-- | sysutils/mods/distinfo | 5 | ||||
| -rw-r--r-- | sysutils/mods/pkg-descr | 3 |
3 files changed, 66 insertions, 0 deletions
diff --git a/sysutils/mods/Makefile b/sysutils/mods/Makefile new file mode 100644 index 000000000000..14e7affda445 --- /dev/null +++ b/sysutils/mods/Makefile @@ -0,0 +1,58 @@ +PORTNAME= mods +DISTVERSIONPREFIX= v +DISTVERSION= 1.8.1 +CATEGORIES= sysutils + +MAINTAINER= mopp7@proton.me +COMMENT= AI for the command line, built for pipelines +WWW= https://github.com/charmbracelet/mods + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= go:modules + +_BUILD_VERSION= ${DISTVERSION} +_BUILD_SHA= 9b36cf8 + +GO_MODULE= github.com/charmbracelet/${PORTNAME} +GO_BUILDFLAGS= -ldflags "\ + -s -w \ + -X main.Version=${_BUILD_VERSION} \ + -X main.CommitSHA=${_BUILD_SHA}" + +PLIST_FILES= bin/${PORTNAME} +DOCS= config_template.yml README.md +PORTDOCS= ${DOCS:T} + +OPTIONS_DEFINE= COMPLETIONS DOCS + +COMPLETIONS_DESC= Build and/or install shell completions + +COMPLETIONS_PLIST_FILES= etc/bash_completion.d/${PORTNAME} \ + share/fish/completions/${PORTNAME}.fish \ + share/zsh/site-functions/_${PORTNAME} + +do-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR} + +post-build-COMPLETIONS-on: + @${MKDIR} ${GO_WRKSRC}/completions +.for sh in bash fish zsh + ${GO_WRKDIR_BIN}/${PORTNAME} completion ${sh} > \ + ${GO_WRKSRC}/completions/${PORTNAME}.${sh} +.endfor + +post-install-COMPLETIONS-on: + @${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d \ + ${STAGEDIR}${PREFIX}/share/fish/completions \ + ${STAGEDIR}${PREFIX}/share/zsh/site-functions + ${INSTALL_DATA} ${GO_WRKSRC}/completions/${PORTNAME}.bash \ + ${STAGEDIR}${PREFIX}/etc/bash_completion.d/${PORTNAME} + ${INSTALL_DATA} ${GO_WRKSRC}/completions/${PORTNAME}.fish \ + ${STAGEDIR}${PREFIX}/share/fish/completions/${PORTNAME}.fish + ${INSTALL_DATA} ${GO_WRKSRC}/completions/${PORTNAME}.zsh \ + ${STAGEDIR}${PREFIX}/share/zsh/site-functions/_${PORTNAME} + +.include <bsd.port.mk> diff --git a/sysutils/mods/distinfo b/sysutils/mods/distinfo new file mode 100644 index 000000000000..09408594c073 --- /dev/null +++ b/sysutils/mods/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1763837772 +SHA256 (go/sysutils_mods/mods-v1.8.1/v1.8.1.mod) = 9085e336472125fa263e6f6fe8e5978f37f4c8f28a9e844d4b06652d8aa52120 +SIZE (go/sysutils_mods/mods-v1.8.1/v1.8.1.mod) = 4109 +SHA256 (go/sysutils_mods/mods-v1.8.1/v1.8.1.zip) = ada31c32dd1e231c82de2caa405fce137668bd6c7bae918185e7b192a3195f0f +SIZE (go/sysutils_mods/mods-v1.8.1/v1.8.1.zip) = 90484 diff --git a/sysutils/mods/pkg-descr b/sysutils/mods/pkg-descr new file mode 100644 index 000000000000..00842b894d00 --- /dev/null +++ b/sysutils/mods/pkg-descr @@ -0,0 +1,3 @@ +Mods is a tool to add a sprinkle of AI in +your command line and make your pipelines +artificially intelligent. |
