svn commit: r515605 - head/shells/elvish

Dmitri Goutnik dmgk at FreeBSD.org
Fri Oct 25 12:07:32 UTC 2019


Author: dmgk
Date: Fri Oct 25 12:07:31 2019
New Revision: 515605
URL: https://svnweb.freebsd.org/changeset/ports/515605

Log:
  shells/elvish: Set version information, omit debug info
  
  PR:		241446
  Approved by:	Adam Jimerson <vendion at gmail.com> (maintainer), araujo (mentor)
  Differential Revision:	https://reviews.freebsd.org/D22149

Modified:
  head/shells/elvish/Makefile

Modified: head/shells/elvish/Makefile
==============================================================================
--- head/shells/elvish/Makefile	Fri Oct 25 11:29:52 2019	(r515604)
+++ head/shells/elvish/Makefile	Fri Oct 25 12:07:31 2019	(r515605)
@@ -3,6 +3,7 @@
 PORTNAME=	elvish
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.12
+PORTREVISION=	1
 CATEGORIES=	shells
 
 MAINTAINER=	vendion at gmail.com
@@ -16,6 +17,9 @@ USE_GITHUB=	yes
 GH_ACCOUNT=	elves
 
 GO_PKGNAME=	github.com/${GH_ACCOUNT}/${PORTNAME}
+GO_BUILDFLAGS=	-ldflags="-s -w -X github.com/elves/elvish/buildinfo.Version=${DISTVERSIONPREFIX}${DISTVERSION}" \
+		-gcflags="all=-trimpath=${GO_WRKSRC}" \
+		-asmflags="all=-trimpath=${GO_WRKSRC}"
 
 PLIST_FILES=	bin/elvish
 


More information about the svn-ports-head mailing list