pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/go lang/go: Improve PRINT_PLIST_AWK for Go packages



details:   https://anonhg.NetBSD.org/pkgsrc/rev/356a32d07b97
branches:  trunk
changeset: 385189:356a32d07b97
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Sat Sep 15 00:31:11 2018 +0000

description:
lang/go: Improve PRINT_PLIST_AWK for Go packages

Go packages create ${PREFIX}/bin and ${PREFIX}/gopkg even when they
don't install anything in them. This change sets PRINT_PLIST_AWK to
ignore such empty directories.

diffstat:

 lang/go/go-package.mk |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 0d771ffbe4fb -r 356a32d07b97 lang/go/go-package.mk
--- a/lang/go/go-package.mk     Sat Sep 15 00:12:16 2018 +0000
+++ b/lang/go/go-package.mk     Sat Sep 15 00:31:11 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: go-package.mk,v 1.15 2018/08/29 10:11:57 leot Exp $
+# $NetBSD: go-package.mk,v 1.16 2018/09/15 00:31:11 minskim Exp $
 #
 # This file implements common logic for compiling Go programs in pkgsrc.
 #
@@ -69,6 +69,8 @@
 PRINT_PLIST_AWK+=      /${GO_PLATFORM}/ { gsub(/${GO_PLATFORM}/, \
                        "$${GO_PLATFORM}"); \
                        print; next; }
+PRINT_PLIST_AWK+=      /^@pkgdir bin$$/ { next; }
+PRINT_PLIST_AWK+=      /^@pkgdir gopkg$$/ { next; }
 
 MAKE_ENV+=     GOPATH=${WRKDIR}:${BUILDLINK_DIR}/gopkg 
 MAKE_ENV+=     GOCACHE=${WRKDIR}/.cache/go-build



Home | Main Index | Thread Index | Old Index