Date: Mon, 24 Nov 2025 12:28:48 +0000 From: Koichiro Iwao <meta@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Cc: Mark Phillips <mark@freebsdfoundation.org> Subject: git: 408be98c6f6b - main - sysutils/mods: New port: AI for the command line, built for pipelines Message-ID: <69244f80.fd8b.65157c9@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by meta: URL: https://cgit.FreeBSD.org/ports/commit/?id=408be98c6f6b80f6fa10f18c10abc4fd958fea05 commit 408be98c6f6b80f6fa10f18c10abc4fd958fea05 Author: Mark Phillips <mark@freebsdfoundation.org> AuthorDate: 2025-11-22 19:35:05 +0000 Commit: Koichiro Iwao <meta@FreeBSD.org> CommitDate: 2025-11-24 12:19:10 +0000 sysutils/mods: New port: AI for the command line, built for pipelines PR: 291155 --- sysutils/mods/Makefile | 58 +++++++++++++++++++++++++++++++++++++++++++++++++ sysutils/mods/distinfo | 5 +++++ sysutils/mods/pkg-descr | 3 +++ 3 files changed, 66 insertions(+) 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.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69244f80.fd8b.65157c9>
