blob: 732472e5e6ffd6f42025ce8d14e33e874ebd4ff7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
PORTNAME= shfmt
DISTVERSIONPREFIX= v
DISTVERSION= 3.7.0
PORTREVISION= 4
CATEGORIES= devel
MAINTAINER= adamw@FreeBSD.org
COMMENT= Shell script formatter
WWW= https://github.com/mvdan/sh
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= scdoc:textproc/scdoc
USES= go:modules
GO_MODULE= mvdan.cc/sh/v3
GO_TARGET= ./cmd/shfmt
GO_BUILDFLAGS= -ldflags="-s -w -X main.version=${DISTVERSIONFULL}"
PLIST_FILES= bin/shfmt \
share/man/man1/shfmt.1.gz
post-install:
scdoc < ${WRKSRC}/cmd/shfmt/shfmt.1.scd \
> ${STAGEDIR}${PREFIX}/share/man/man1/shfmt.1
.include <bsd.port.mk>
|