git: bf40d3dbc973 - main - devel/shfmt: Build manpage unconditionally; scdoc is small

Adam Weinberger adamw at FreeBSD.org
Sat May 15 12:39:07 UTC 2021


The branch main has been updated by adamw:

URL: https://cgit.FreeBSD.org/ports/commit/?id=bf40d3dbc9732d8884f2f91555c2adf1a7bd0394

commit bf40d3dbc9732d8884f2f91555c2adf1a7bd0394
Author:     Adam Weinberger <adamw at FreeBSD.org>
AuthorDate: 2021-05-15 12:38:57 +0000
Commit:     Adam Weinberger <adamw at FreeBSD.org>
CommitDate: 2021-05-15 12:38:57 +0000

    devel/shfmt: Build manpage unconditionally; scdoc is small
---
 devel/shfmt/Makefile | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/devel/shfmt/Makefile b/devel/shfmt/Makefile
index a8ac49fb9265..984e6d9d4ce1 100644
--- a/devel/shfmt/Makefile
+++ b/devel/shfmt/Makefile
@@ -9,19 +9,17 @@ COMMENT=	Shell script formatter
 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
-
-OPTIONS_DEFINE=	MANPAGES
-OPTIONS_DEFAULT=MANPAGES
-MANPAGES_BUILD_DEPENDS=	scdoc:textproc/scdoc
-MANPAGES_PLIST_FILES=	man/man1/shfmt.1.gz
+PLIST_FILES=	bin/shfmt \
+		man/man1/shfmt.1.gz
 
-do-install-MANPAGES-on:
+post-install:
 	scdoc < ${WRKSRC}/cmd/shfmt/shfmt.1.scd \
 		> ${STAGEDIR}${MAN1PREFIX}/man/man1/shfmt.1
 


More information about the dev-commits-ports-all mailing list