Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Jul 2022 16:32:05 GMT
From:      Nuno Teixeira <eduardo@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 619f4db4dd99 - main - sysutils/kopia: Add man page/Fix --version
Message-ID:  <202207291632.26TGW5T0042517@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by eduardo:

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

commit 619f4db4dd99990f0768436acffbe9b34ae18ee0
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2022-07-29 16:26:09 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2022-07-29 16:31:52 +0000

    sysutils/kopia: Add man page/Fix --version
    
     - post-build: generate man page so it can be installed
     - remove repo.BuildGitHubRepo version variable, not applicable
     - bump PORTREVISION
---
 sysutils/kopia/Makefile | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/sysutils/kopia/Makefile b/sysutils/kopia/Makefile
index b4332f59c9a0..fdaf8ff1a810 100644
--- a/sysutils/kopia/Makefile
+++ b/sysutils/kopia/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	kopia
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.11.3
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	sysutils
 
 MAINTAINER=	eduardo@FreeBSD.org
@@ -13,9 +13,15 @@ USES=		go:modules
 GO_MODULE=	github.com/kopia/kopia
 GO_BUILDFLAGS=	-ldflags "\
 		-X github.com/kopia/kopia/repo.BuildVersion=${DISTVERSION} \
-		-X github.com/kopia/kopia/repo.BuildInfo="`date +%Y%m%d`" \
-		-X github.com/kopia/kopia/repo.BuildGitHubRepo="FreeBSD/ports""
+		-X github.com/kopia/kopia/repo.BuildInfo="`date +%Y%m%d`""
 
-PLIST_FILES=	bin/${PORTNAME}
+PLIST_FILES=	bin/${PORTNAME} \
+		share/man/man1/${PORTNAME}.1.gz
+
+post-build:
+	${GO_WRKDIR_BIN}/${PORTNAME} --log-dir="" --help-man > ${WRKSRC}/${PORTNAME}.1
+
+post-install:
+	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/share/man/man1
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202207291632.26TGW5T0042517>