diff options
author | bsiegert <bsiegert@pkgsrc.org> | 2015-05-03 15:35:54 +0000 |
---|---|---|
committer | bsiegert <bsiegert@pkgsrc.org> | 2015-05-03 15:35:54 +0000 |
commit | 7144a98071de302a394f52756e9b830ff33c5225 (patch) | |
tree | 8f04baa5ed1602930b53312893e65c5267646dc5 /lang/go | |
parent | 89728adfea3c16c5a227a62a3ed75fa64ffee250 (diff) | |
download | pkgsrc-7144a98071de302a394f52756e9b830ff33c5225.tar.gz |
go-package.mk: add an awk fragment for print-PLIST to replace GO_PLATFORM.
After a similar patch by hiramatsu@ for ocaml.mk.
Diffstat (limited to 'lang/go')
-rw-r--r-- | lang/go/go-package.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lang/go/go-package.mk b/lang/go/go-package.mk index afcac72704b..281af346310 100644 --- a/lang/go/go-package.mk +++ b/lang/go/go-package.mk @@ -1,4 +1,4 @@ -# $NetBSD: go-package.mk,v 1.3 2015/03/10 21:52:10 bsiegert Exp $ +# $NetBSD: go-package.mk,v 1.4 2015/05/03 15:35:54 bsiegert Exp $ # # This file implements common logic for compiling Go programs in pkgsrc. # The compiled Go code is tied to a specific compiler version, and the @@ -33,6 +33,10 @@ USE_TOOLS+= pax GOTOOLDIR= ${PREFIX}/go/pkg/tool/${LOWER_OPSYS}_${GOARCH} +PRINT_PLIST_AWK+= { gsub(/${GO_PLATFORM}/, \ + "$${GO_PLATFORM}"); \ + print; next; } + post-extract: ${MKDIR} ${WRKSRC} ${RM} -fr ${WRKDIR}/`basename ${GO_DIST_BASE}`/.hg |