pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/go go-package.mk: add an awk fragment for print-P...
details: https://anonhg.NetBSD.org/pkgsrc/rev/7627a80f35eb
branches: trunk
changeset: 651180:7627a80f35eb
user: bsiegert <bsiegert%pkgsrc.org@localhost>
date: Sun May 03 15:35:54 2015 +0000
description:
go-package.mk: add an awk fragment for print-PLIST to replace GO_PLATFORM.
After a similar patch by hiramatsu@ for ocaml.mk.
diffstat:
lang/go/go-package.mk | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r 24328c9c3404 -r 7627a80f35eb lang/go/go-package.mk
--- a/lang/go/go-package.mk Sun May 03 15:32:02 2015 +0000
+++ b/lang/go/go-package.mk Sun May 03 15:35:54 2015 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index