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:   bsiegert
Date:           Wed Mar 15 19:48:40 UTC 2017

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

Log Message:
Add more ".if !target" guards around targets defined by go-package.mk,
to allow overriding.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 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.8 pkgsrc/lang/go/go-package.mk:1.9
--- pkgsrc/lang/go/go-package.mk:1.8    Sat Jan 23 12:42:57 2016
+++ pkgsrc/lang/go/go-package.mk        Wed Mar 15 19:48:40 2017
@@ -1,4 +1,4 @@
-# $NetBSD: go-package.mk,v 1.8 2016/01/23 12:42:57 rillig Exp $
+# $NetBSD: go-package.mk,v 1.9 2017/03/15 19:48:40 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
@@ -55,19 +55,25 @@ PRINT_PLIST_AWK+=   { gsub(/${GO_PLATFORM}
                        "$${GO_PLATFORM}"); \
                        print; next; }
 
+.if !target(post-extract)
 post-extract:
        ${RUN} ${MKDIR} ${WRKSRC}
        ${RUN} ${RM} -fr ${WRKDIR}/`basename ${GO_DIST_BASE}`/.hg
        ${RUN} ${MV} ${WRKDIR}/`basename ${GO_DIST_BASE}`/* ${WRKSRC}
+.endif
 
+.if !target(do-build)
 do-build:
        ${RUN} env GOPATH=${WRKDIR}:${BUILDLINK_DIR}/gopkg go install -v ${GO_BUILD_PATTERN}
+.endif
 
 .if !target(do-test)
 do-test:
        ${RUN} env GOPATH=${WRKDIR}:${BUILDLINK_DIR}/gopkg go test -v ${GO_BUILD_PATTERN}
 .endif
 
+.if !target(do-install)
 do-install:
        ${RUN} cd ${WRKDIR}; [ ! -d bin ] || ${PAX} -rw bin ${DESTDIR}${PREFIX}
        ${RUN} cd ${WRKDIR}; [ ! -d pkg ] || ${PAX} -rw src pkg ${DESTDIR}${PREFIX}/gopkg
+.endif



Home | Main Index | Thread Index | Old Index