git: 1a0de684fd52 - 2024Q3 - www/gitlab-workhorse: use new feature from go.mk to download go.mod from gitlab
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 21 Jul 2024 06:56:43 UTC
The branch 2024Q3 has been updated by mfechner:
URL: https://cgit.FreeBSD.org/ports/commit/?id=1a0de684fd52093cd3263b0f278f5f93f6623402
commit 1a0de684fd52093cd3263b0f278f5f93f6623402
Author: Matthias Fechner <mfechner@FreeBSD.org>
AuthorDate: 2024-07-03 09:18:42 +0000
Commit: Matthias Fechner <mfechner@FreeBSD.org>
CommitDate: 2024-07-21 05:38:56 +0000
www/gitlab-workhorse: use new feature from go.mk to download go.mod from gitlab
(cherry picked from commit 6fe6efa7b013b5caf76d0734006c5f7f0be5ad53)
---
www/gitlab-workhorse/Makefile | 21 ++-------------------
1 file changed, 2 insertions(+), 19 deletions(-)
diff --git a/www/gitlab-workhorse/Makefile b/www/gitlab-workhorse/Makefile
index ef2d5307bfff..d31a92e81359 100644
--- a/www/gitlab-workhorse/Makefile
+++ b/www/gitlab-workhorse/Makefile
@@ -18,29 +18,12 @@ USES= gmake go:modules,no_targets,1.22
USE_GITLAB= yes
GL_ACCOUNT= gitlab-org
GL_PROJECT= gitlab-foss
+GO_MOD_DIST= gitlab
MAKE_ENV= GOFLAGS="${GO_BUILDFLAGS}"
MAKE_ENV+= ${GO_ENV}
WRKSRC_SUBDIR= workhorse
# found in work/gitlab-foss*/workhorse/go.mod
-#GO_MODULE= gitlab.com/gitlab-org/gitlab/workhorse
-
-# for go dependencies
-# Gitlab hosts there dependencies on their own platform and not on go-proxy
-# so we download the required go.mod file from gitlab
-# lines are taken from go.mk
-# ---------------------------
-FETCH_DEPENDS= ${GO_CMD}:${GO_PORT}
-MASTER_SITES+= https://gitlab.com/gitlab-org/gitlab-foss/-/raw/v${DISTVERSION}/workhorse/
-DISTFILES+= go.mod
-DIST_SUBDIR= go/${PKGORIGIN:S,/,_,g}/${DISTNAME}
-EXTRACT_ONLY+= ${DISTFILES:N*.mod\:*:N*.mod:C/:.*//}
-_USES_fetch+= 800:go-post-fetch
-go-post-fetch:
- @${ECHO_MSG} "===> Fetching ${GO_MODNAME} dependencies";
- @(cd ${DISTDIR}/${DIST_SUBDIR}; \
- [ -e go.mod ] || ${RLN} ${GO_MODFILE} go.mod; \
- ${SETENV} ${GO_ENV} GOPROXY=${GO_GOPROXY} ${GO_CMD} mod download -x all)
-# ---------------------------
+GO_MODULE= gitlab.com/gitlab-org/gitlab/workhorse
PLIST_FILES= bin/gitlab-resize-image \
bin/gitlab-workhorse \