pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/go Add more ".if !target" guards around targets d...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0728c03b0f39
branches:  trunk
changeset: 359664:0728c03b0f39
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Wed Mar 15 19:48:40 2017 +0000

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

diffstat:

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

diffs (35 lines):

diff -r cae57eeed075 -r 0728c03b0f39 lang/go/go-package.mk
--- a/lang/go/go-package.mk     Wed Mar 15 19:39:57 2017 +0000
+++ b/lang/go/go-package.mk     Wed Mar 15 19:48:40 2017 +0000
@@ -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 @@
                        "$${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