From owner-dev-commits-ports-main@freebsd.org Thu May 27 15:25:27 2021 Return-Path: Delivered-To: dev-commits-ports-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 78C9163F6C2; Thu, 27 May 2021 15:25:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FrWpv2mnLz3t8j; Thu, 27 May 2021 15:25:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 47F2326A04; Thu, 27 May 2021 15:25:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 14RFPRXA059636; Thu, 27 May 2021 15:25:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 14RFPRTE059635; Thu, 27 May 2021 15:25:27 GMT (envelope-from git) Date: Thu, 27 May 2021 15:25:27 GMT Message-Id: <202105271525.14RFPRTE059635@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Lewis Cook Subject: git: 7364bc76868d - main - textproc/ov: Display version/revision in (-v) flag MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lcook X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7364bc76868d0a3592b5a3bc0d9d81c714f0ff05 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the main branch of the FreeBSD ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 May 2021 15:25:27 -0000 The branch main has been updated by lcook: URL: https://cgit.FreeBSD.org/ports/commit/?id=7364bc76868d0a3592b5a3bc0d9d81c714f0ff05 commit 7364bc76868d0a3592b5a3bc0d9d81c714f0ff05 Author: Lewis Cook AuthorDate: 2021-05-27 15:22:36 +0000 Commit: Lewis Cook CommitDate: 2021-05-27 15:24:50 +0000 textproc/ov: Display version/revision in (-v) flag --- textproc/ov/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/textproc/ov/Makefile b/textproc/ov/Makefile index 5e40d2f99d46..6421e61a3806 100644 --- a/textproc/ov/Makefile +++ b/textproc/ov/Makefile @@ -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