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:   tnn
Date:           Thu Jan 20 21:37:11 UTC 2022

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

Log Message:
go-module.mk: allow packages that use this to have post-extract & pre-clean


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 pkgsrc/lang/go/go-module.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-module.mk
diff -u pkgsrc/lang/go/go-module.mk:1.7 pkgsrc/lang/go/go-module.mk:1.8
--- pkgsrc/lang/go/go-module.mk:1.7     Wed Oct  6 10:30:22 2021
+++ pkgsrc/lang/go/go-module.mk Thu Jan 20 21:37:11 2022
@@ -1,4 +1,4 @@
-# $NetBSD: go-module.mk,v 1.7 2021/10/06 10:30:22 jperkin Exp $
+# $NetBSD: go-module.mk,v 1.8 2022/01/20 21:37:11 tnn Exp $
 #
 # This file implements common logic for compiling Go programs in pkgsrc.
 #
@@ -74,13 +74,17 @@ DISTFILES+= ${i:C/[\/!]/_/g}
 SITES.${i:C/[\/!]/_/g}= -https://proxy.golang.org/${i}
 .endfor
 
-post-extract:
+.PHONY: post-extract-go
+post-extract: post-extract-go
+post-extract-go:
 .for i in ${GO_MODULE_FILES}
        ${MKDIR} ${WRKDIR}/.goproxy/${i:H}
        cp ${DISTDIR}/${DIST_SUBDIR}/${i:C/[\/!]/_/g} ${WRKDIR}/.goproxy/${i}
 .endfor
 
-pre-clean:
+.PHONY: pre-clean-go
+pre-clean: pre-clean-go
+pre-clean-go:
        ${RUN} [ -d ${WRKDIR}/.gopath ] && chmod -R +w ${WRKDIR}/.gopath || true
 
 _VARGROUPS+=           go



Home | Main Index | Thread Index | Old Index