pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/go



Module Name:    pkgsrc
Committed By:   minskim
Date:           Sat Sep 15 00:31:11 UTC 2018

Modified Files:
        pkgsrc/lang/go: go-package.mk

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 pkgsrc/lang/go/go-package.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/go/go-package.mk
diff -u pkgsrc/lang/go/go-package.mk:1.15 pkgsrc/lang/go/go-package.mk:1.16
--- pkgsrc/lang/go/go-package.mk:1.15   Wed Aug 29 10:11:57 2018
+++ pkgsrc/lang/go/go-package.mk        Sat Sep 15 00:31:11 2018
@@ -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 @@ GOTOOLDIR=            ${PREFIX}/go/pkg/tool/${GO_P
 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