pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/go118



Module Name:    pkgsrc
Committed By:   bsiegert
Date:           Tue Jun 14 18:41:44 UTC 2022

Modified Files:
        pkgsrc/lang/go118: Makefile

Log Message:
go118: make print-PLIST work without manual fixups

Add some PRINT_PLIST_AWK statements to do the standard transformations
that I used to do by hand. With this change, "make print-PLIST" outputs
the correct PLIST without a need for manually fixing some lines.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/lang/go118/Makefile

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

Modified files:

Index: pkgsrc/lang/go118/Makefile
diff -u pkgsrc/lang/go118/Makefile:1.1 pkgsrc/lang/go118/Makefile:1.2
--- pkgsrc/lang/go118/Makefile:1.1      Tue Mar 15 20:13:45 2022
+++ pkgsrc/lang/go118/Makefile  Tue Jun 14 18:41:44 2022
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2022/03/15 20:13:45 bsiegert Exp $
+# $NetBSD: Makefile,v 1.2 2022/06/14 18:41:44 bsiegert Exp $
 
 .include "../../lang/go/version.mk"
 .include "../../lang/go/bootstrap.mk"
@@ -92,6 +92,11 @@ PLIST.pty=   yes
 PLIST.route=   yes
 .endif
 
+PRINT_PLIST_AWK+=      /^bin\/go${GOVERSSUFFIX}/ { print "bin/go$${GOVERSSUFFIX}"; next; }
+PRINT_PLIST_AWK+=      /^bin\/gofmt${GOVERSSUFFIX}/ { print "bin/gofmt$${GOVERSSUFFIX}"; next; }
+PRINT_PLIST_AWK+=      /internal\/pty\.a/ { printf "%s", "$${PLIST.pty}"; }
+PRINT_PLIST_AWK+=      /x\/net\/route\.a/ { printf "%s", "$${PLIST.route}"; }
+
 post-extract:
        ${RM} -r -f ${WRKSRC}/test/fixedbugs/issue27836*
 



Home | Main Index | Thread Index | Old Index