aboutsummaryrefslogtreecommitdiff
path: root/Mk
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2021-03-19 14:32:13 +0000
committerMathieu Arnold <mat@FreeBSD.org>2021-03-19 14:32:13 +0000
commitb088b5dd0e9ba6e3c7e407a15c0fb371b372f403 (patch)
treed63305453ebc1ff2fb4e3608114e0c4af2cc4d2e /Mk
parent4f9b0453a8027735a5366c0e8724c7f6c4ad2487 (diff)
downloadports-b088b5dd0e9ba6e3c7e407a15c0fb371b372f403.tar.gz
ports-b088b5dd0e9ba6e3c7e407a15c0fb371b372f403.zip
Add the same WRKSRC warning for USE_GITLAB than for USE_GITHUB.
Notes
Notes: svn path=/head/; revision=568798
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.port.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 29860cf45a26..657cc7438f65 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -1700,12 +1700,15 @@ CONFIGURE_ENV+= PATH=${PATH}
.if !defined(IGNORE_MASTER_SITE_GITHUB) && defined(USE_GITHUB) && empty(USE_GITHUB:Mnodefault)
.if defined(WRKSRC)
-DEV_WARNING+= "You are using USE_GITHUB and WRKSRC is set which is wrong. Set GH_PROJECT correctly, set WRKSRC_SUBDIR or remove WRKSRC entirely."
+DEV_WARNING+= "You are using USE_GITHUB and WRKSRC is set which is wrong. Set GH_PROJECT correctly or set WRKSRC_SUBDIR and remove WRKSRC entirely."
.endif
WRKSRC?= ${WRKDIR}/${GH_PROJECT_DEFAULT}-${GH_TAGNAME_EXTRACT}
.endif
.if !default(IGNORE_MASTER_SITE_GITLAB) && defined(USE_GITLAB) && empty(USE_GITLAB:Mnodefault)
+.if defined(WRKSRC)
+DEV_WARNING+= "You are using USE_GITLAB and WRKSRC is set which is wrong. Set GL_PROJECT, GL_ACCOUNT correctly, and/or set WRKSRC_SUBDIR and remove WRKSRC entirely."
+.endif
WRKSRC?= ${WRKDIR}/${GL_PROJECT}-${GL_COMMIT}-${GL_COMMIT}
.endif