mirror of
https://git.freebsd.org/ports.git
synced 2025-05-24 23:16:33 -04:00
textproc/ov: Display version/revision in (-v) flag
This commit is contained in:
parent
ec82c98536
commit
7364bc7686
1 changed files with 7 additions and 0 deletions
|
@ -11,7 +11,14 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
|
|||
|
||||
USES= go:modules
|
||||
|
||||
_BUILD_VERSION= ${DISTVERSIONFULL}
|
||||
_BUILD_REVISION= 5ea83bc
|
||||
|
||||
GO_MODULE= github.com/noborus/${PORTNAME}
|
||||
GO_BUILDFLAGS= -ldflags "\
|
||||
-s -w \
|
||||
-X main.Version=${_BUILD_VERSION} \
|
||||
-X main.Revision=${_BUILD_REVISION}"
|
||||
|
||||
PLIST_FILES= bin/${PORTNAME}
|
||||
PORTDOCS= README.md
|
||||
|
|
Loading…
Add table
Reference in a new issue