pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Remove wip/go/go-module.mk.
Module Name: pkgsrc-wip
Committed By: Benny Siegert <bsiegert%gmail.com@localhost>
Pushed By: bsiegert
Date: Sat Jul 25 20:41:40 2020 +0000
Changeset: 037a026c0007fb397820a9d75f482f0fd7ca2bfb
Modified Files:
mattermost-server/Makefile
Removed Files:
go/go-module.mk
Log Message:
Remove wip/go/go-module.mk.
This file is now in lang/go.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=037a026c0007fb397820a9d75f482f0fd7ca2bfb
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
go/go-module.mk | 94 ----------------------------------------------
mattermost-server/Makefile | 2 +-
2 files changed, 1 insertion(+), 95 deletions(-)
diffs:
diff --git a/go/go-module.mk b/go/go-module.mk
deleted file mode 100644
index 2d061ace07..0000000000
--- a/go/go-module.mk
+++ /dev/null
@@ -1,94 +0,0 @@
-# $NetBSD: go-package.mk,v 1.21 2018/11/30 18:38:19 rillig Exp $
-#
-# This file implements common logic for compiling Go programs in pkgsrc.
-#
-# === Package-settable variables ===
-#
-# GO_BUILD_PATTERN (optional)
-# Argument used for 'go install'.
-# In most cases, the default is fine.
-#
-# Default:
-# "...", which means all files below the top-level directory.
-#
-# GO_MODULE_FILES (optional)
-# List of dependency files to be downloaded from the Go module proxy.
-# Can be filled out from the output of "make show-go-modules".
-#
-# Keywords: go golang
-#
-
-# Implementation notes
-#
-# The compiled Go code is tied to a specific compiler version, and the
-# compilation is fast. So the plan is:
-#
-# 1. Compile everything.
-# 2. Install binaries into bin/.
-# 3. Install source code and packages into a separate gopkg tree.
-#
-# We implement buildlink by creating a separate tree during the build and
-# linking only the packages explicitly mentioned in dependencies there.
-#
-# All packages build-depend on the default Go release. Go packages should be
-# revbumped when that package is updated.
-#
-
-.include "../../lang/go/version.mk"
-
-GO_BUILD_PATTERN?= ...
-
-MAKE_JOBS_SAFE= no
-INSTALLATION_DIRS+= bin
-USE_TOOLS+= pax
-
-BUILD_DEPENDS+= ${GO_PACKAGE_DEP}
-PRINT_PLIST_AWK+= /^@pkgdir bin$$/ { next; }
-
-MAKE_ENV+= GO111MODULE=on GOPATH=${WRKDIR}/.gopath GOPROXY=file://${WRKDIR}/.goproxy
-MAKE_ENV+= GOCACHE=${WRKDIR}/.cache/go-build
-
-.if !target(do-build)
-do-build:
- ${RUN} cd ${WRKSRC} && ${_ULIMIT_CMD} ${PKGSRC_SETENV} ${MAKE_ENV} ${GO} install -v ${GO_BUILD_PATTERN}
-.endif
-
-.if !target(do-test)
-do-test:
- ${RUN} cd ${WRKSRC} && ${_ULIMIT_CMD} ${PKGSRC_SETENV} ${TEST_ENV} ${MAKE_ENV} ${GO} test -v ${GO_BUILD_PATTERN}
-.endif
-
-.if !target(do-install)
-do-install:
- ${RUN} cd ${WRKDIR}/.gopath && [ ! -d bin ] || ${PAX} -rw bin ${DESTDIR}${PREFIX}
-.endif
-
-.PHONY: show-go-modules
-show-go-modules: ${WRKDIR}/.extract_done
- ${RUN} cd ${WRKSRC} && ${PKGSRC_SETENV} ${MAKE_ENV} GOPROXY= ${GO} get -d
- ${RUN} cd ${WRKDIR}/.gopath/pkg/mod/cache/download && ${FIND} . -type f -name "*.mod" | ${SED} -e 's/\.\//GO_MODULE_FILES+= /'
- ${RUN} cd ${WRKDIR}/.gopath/pkg/mod/cache/download && ${FIND} . -type f -name "*.zip" | ${SED} -e 's/\.\//GO_MODULE_FILES+= /'
-
-DISTFILES?= ${DEFAULT_DISTFILES}
-.for i in ${GO_MODULE_FILES}
-DISTFILES+= ${i:C/[\/!]/_/g}
-SITES.${i:C/[\/!]/_/g}= -https://proxy.golang.org/${i}
-.endfor
-
-post-extract:
-.for i in ${GO_MODULE_FILES}
- ${MKDIR} ${WRKDIR}/.goproxy/${i:H}
- cp ${DISTDIR}/${DIST_SUBDIR}/${i:C/[\/!]/_/g} ${WRKDIR}/.goproxy/${i}
-.endfor
-
-_VARGROUPS+= go
-_PKG_VARS.go= GO_BUILD_PATTERN
-_USER_VARS.go= GO_VERSION_DEFAULT
-_SYS_VARS.go= GO GO_VERSION GOVERSSUFFIX GOARCH GOCHAR \
- GOOPT GOTOOLDIR GO_PLATFORM
-_DEF_VARS.go= GO14_VERSION GO19_VERSION GO110_VERSION \
- GO111_VERSION INSTALLATION_DIRS MAKE_JOBS_SAFE \
- NOT_FOR_PLATFORM ONLY_FOR_PLATFORM SSP_SUPPORTED \
- WRKSRC
-_USE_VARS.go= GO_PACKAGE_DEP
-_SORTED_VARS.go= INSTALLATION_DIRS *_FOR_PLATFORM
diff --git a/mattermost-server/Makefile b/mattermost-server/Makefile
index b186de4ae2..e550ea45c7 100644
--- a/mattermost-server/Makefile
+++ b/mattermost-server/Makefile
@@ -15,5 +15,5 @@ GO_BUILD_PATTERN= -mod=vendor -trimpath ./cmd/mattermost
USE_LANGUAGES= c # go
CHECK_RELRO_SKIP= bin/mattermost
-.include "../../wip/go/go-module.mk"
+.include "../../lang/go/go-module.mk"
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index