Files
ports/shells/carapace/Makefile
T
Adam Weinberger 0bdd2ad334 go: Bump go124-dependent ports
Earlier I bumped the default Go to 1.24. Ports that specify a lower
version will still build with those lower version (for now), so they
don't need a bumping. Instead I'm bumping anything that (now) has go124
as a dependency.
2025-05-21 15:58:15 -04:00

34 lines
728 B
Makefile

PORTNAME= carapace
DISTVERSIONPREFIX= v
DISTVERSION= 1.3.1
PORTREVISION= 1
CATEGORIES= shells
MAINTAINER= tagattie@FreeBSD.org
COMMENT= Multi-shell multi-command argument completer
WWW= https://carapace.sh/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go:modules,1.24
GO_MODULE= github.com/carapace-sh/carapace-bin
GO_TARGET= ./cmd/carapace
GO_BUILDFLAGS= -ldflags "-s -w -X main.version=${DISTVERSION}"
PLIST_FILES= bin/carapace
PORTDOCS= README.md
OPTIONS_DEFINE= DOCS
pre-build:
cd ${GO_WRKSRC} && \
${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} generate ./cmd/...
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>